0

Change to negative value for Document Type "Credit Memo" in a NL("Sum")

Hello,

I want to show a monthly figure of all Sales Orders in a single cell.
Orders and Invoices should have a positive Amount. And Credit Memos and Return Orders should have a negative Amount.

NL("Sum","Sales Header","Amount","Posting Date","01/09/18..30/09/18")

Please ignore the fact about using the Amount-field and different currencies for now.

How do I have to modify the function to sum Orders and Invoices with a positive value and Credit Memos and Return Orders with a negative amount?

 E.g.

Document Type No.   Amount
Order SO001 95.00
Order SO005 11.00
Invoice SI011 55.50
Credit Memo CM004 -10.00
Return Order RO001 -22.00
Total 129.50

Kind regards,
Hannes

5 comments

Please sign in to leave a comment.