Hi, so basically, I'm trying to sum up the Amount Including VAT field on purchase orders based on the type Charge Item for the particular PO No and then show it in my PO report.
After trying for a while, I got this working but found out there's another issue that caused the number of lines in my report to be reduced to 1 due to the code I inserted in the onaftergetrecord trigger of the report section. (screenshot below)
I should have three lines on my PO page, but the report preview shows only a single item line.
The chargeamountothers field, which is the calculation, is accurate, as I have two PO lines that aren't shown here as 5000 + 6000, which amounts to 11000.
This is my code right here in the onafter trigger.
chargeamountother is a decimal variable.
What am I doing wrong here, and what are my options? I have tried creating a new variable record for purchaselines, using it, and trying the reset();
bc21. Any help would be appreciated, as I'm stuck with this issue.