Accumulate with some modifies

vandangvandang Member Posts: 101
Sorry for the tittle is not clear because it is limited!

Could I change the sign ( ie: negative to positive) and after that sum it all. This is my code:

IF InvoicedValueLedgerEntries.FINDSET THEN BEGIN
REPEAT
IF (GLEntry.Amount <> "Adjusted Cost") THEN
ExpectedCost := ABS("Adjusted Cost");
AdjCost := AdjCost + ExpectedCost + "Adjusted Cost";
UNTIL InvoicedValueLedgerEntries.NEXT = 0;

Thanks!

Comments

Sign In or Register to comment.