Maximiliano
07/25/2023, 11:00 PM((CASE WHEN {type} IN ('Assembly', 'Inventory Item') AND {inventorylocation} = 'ABC' THEN NVL({locationquantityavailable}, 0) ELSE 0 END + CASE WHEN {type} IN ('Assembly', 'Inventory Item') AND {inventorylocation} = 'SSS' THEN NVL({locationquantityavailable}, 0) ELSE 0 END)) + CASE WHEN {type} IN ('Non-inventory Item') THEN NVL({custitem_wer}, 0) ELSE 0 END
and want something like:
((CASE WHEN {type} IN ('Assembly', 'Inventory Item') AND {inventorylocation} = 'ABC' AND TO_NUMBER(TO_CHAR(NOW(), 'HH24')) BETWEEN 12 AND 13 THEN NVL({locationquantityavailable}, 0) ELSE 0 END + CASE WHEN {type} IN ('Assembly', 'Inventory Item') AND {inventorylocation} = 'SSS' THEN NVL({locationquantityavailable}, 0) ELSE 0 END)) + CASE WHEN {type} IN ('Non-inventory Item') THEN NVL({custitem_wer}, 0) ELSE 0 END
Marc
07/25/2023, 11:03 PMDavid B
07/26/2023, 2:43 AM