Knowledgebase: Reports and Letters > Writeback
Minus Amount in Reports
Posted by Linda on 11 July 2008 05:01 PM
Q - I am trying to do a writeback to the Transaction To Us field. I need to add to the debtor's owing, so I need to make the value a negative amount. How can I do this?

A - Here is a code snippet for converting a value to a negative amount in your report. This snippet sets the To Us in a 201 Fees Transaction to "-1500."

// Start on: Debtor

@varAmt% = 1500 where ( @tr.ty = 201) max = 1
@EDITtr.tu = @(0-varAmt)
(0 vote(s))
Not helpful

Comments (0)