VAT totalling not accurate


Can you help me guys in VAT Totalling?

Because I’m trying to create a VAT total from the sales line (where in sometimes there’s no vat and with vat).

I created a “CurrReport.CREATETOTALS(VAT)” in the concerned area. but in the footer its not accurate in calculation,. attached file is the screen shot of my report.

Please help

Dont use CurrReport.CREATETOTALS(VAT)"…

take a decimal variable and calculate in Sales Line On After Get record trigger with condition

IF “VAT Posting Group” = XXX THEN

DecimalVarible += VatAmount;

In code you have to write

vatableamt:=vatableamt+“Sales Line”.Line Amount"*;