Hi,
I tried to create a custom field, in PLSQL developer value is getting correctly. But when I deploy the same in custom field, value is coming incorrectly.
What could be the possible reason, Please help.
Code- in back end
SELECT c.order_no,c.BUY_QTY_DUE SalesQty,c.QTY_ASSIGNED ReservedQty,
CASE WHEN c.QTY_ASSIGNED/*Reserved Qty*/ >= c.BUY_QTY_DUE/*Sales Qty*/
THEN 'Fully Reserved'
WHEN c.QTY_ASSIGNED IN (NULL,0) THEN 'Released'
WHEN c.QTY_ASSIGNED < c.BUY_QTY_DUE THEN 'partially Reserved'
END Status
FROM CUSTOMER_ORDER_LINE c,CUSTOMER_ORDER d
WHERE c.order_no= '&order_no'
AND c.order_no=d.order_no
Code- in custom field- (Read only field)
SELECT CASE WHEN c.QTY_ASSIGNED >= c.BUY_QTY_DUE
THEN 'Fully Reserved'
WHEN c.QTY_ASSIGNED IN (NULL,0) THEN 'Released'
WHEN c.QTY_ASSIGNED < c.BUY_QTY_DUE THEN 'partially Reserved'
END Status
FROM CUSTOMER_ORDER_LINE c,CUSTOMER_ORDER d
WHERE c.order_no= :order_no
AND c.order_no=d.order_no
Result
Please help, how to sort this out,
I have tried giving single quote to ‘0’ , used equal to, like operators etc, still I get this incorrect result.
Thanks in advance