Advertisement
tko_pb

pak eko

Feb 15th, 2021
1,231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CASE
  2.     WHEN (c.docstatus <> ALL (ARRAY['CL'::bpchar, 'VO'::bpchar])) AND cl.qtydelivered >= cl.qtyordered AND cl.qtyinvoiced < cl.qtyordered THEN 'Outstanding Invoice'::text
  3.     WHEN (c.docstatus <> ALL (ARRAY['CL'::bpchar, 'VO'::bpchar])) AND (cl.kst_etadate IS NULL OR cl.kst_etddate IS NULL) AND cl.qtydelivered < cl.qtyordered THEN 'Outstanding Delivery'::text
  4.     WHEN (c.docstatus <> ALL (ARRAY['CL'::bpchar, 'VO'::bpchar])) AND (cl.kst_etadate IS NULL OR cl.kst_etddate IS NULL) THEN 'Outstanding PI'::text
  5.     ELSE ''::text
  6. END AS status  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement