Formula Numeric CASE WHEN {item.type} = 'Discount'...
# general
m
Formula Numeric CASE WHEN {item.type} = 'Discount' THEN {discountamount} ELSE 0 END