Added estimate for accounts listing browser, same as the chart of accounts. Requested
[capital-apms-progress.git] / trigger / a-trnamt.p
blob692c7d751b39c63af79f0894c4f231c3cd9d813d
1 TRIGGER PROCEDURE FOR ASSIGN OF NewAcctTrans.Amount
2 OLD VALUE old-amount.
4 FIND NewDocument OF NewAcctTrans NO-LOCK.
5 IF NewDocument.DocumentType <> "RCBK" AND NewDocument.DocumentType <> "PYBK" THEN DO:
7 FIND NewBatch OF NewAcctTrans.
9 ASSIGN NewBatch.Total = NewBatch.Total +
10 IF old-amount = 0 THEN NewAcctTrans.Amount ELSE NewAcctTrans.Amount - old-amount.
11 END.