Gosh, I know I’m like the 5th person to ask something similar to this but I was hoping for an IFS guru to help me out there.
I’m developing a custom field with a case clause but am getting the error
“Error in validation of Custom Attribute. The column line_item_no referred to in table t is not an approved persistent Custom Attribute.”
I feel like I’m 95% of the way there with this logic. Can anyone help me get the last 5%?
Arguments: v.order_no,v.line_no,v.rel_no,v.line_item_no
SELECT CASE
WHEN (real_ship_date-promised_delivery_date+4) > 0
THEN 'LATE'
WHEN (real_ship_date-promised_delivery_date+4) <= 0
THEN 'ON TIME'
ELSE 'ON TIME'
END CASE
FROM customer_order_line
WHERE order_no= :order_no
AND line_no = :line_no
AND rel_no = :rel_no
AND line_item_no = :line_item_no