AND ( case
when :P22011_TYPE='ALL' then 'TRUE'
when :P22011_TYPE='PENDING' then
(CASE WHEN (Quantity - Quantity_received) > 0 THEN 'TRUE' ELSE 'FALSE' END)
else 'TRUE'
end
) = 'TRUE'
========================================
Note:
------
0 to 0 up = All
without 0 = Pending
Tags:
Oracle Apex (NPG)