CASE WHEN {type} ='Item Receipt' THEN {quantity} E...
# general
s
CASE WHEN {type} ='Item Receipt' THEN {quantity} ELSE 0 END