1 TRIGGER PROCEDURE FOR ASSIGN OF NewAcctTrans.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.