Hi everyone,
I am facing this issue in NAV 2009 R2.
I have a field fieldXXX in the sales invoice where the user enters the amount including VAT.
When posting the invoice, the following check is made:
If fieldXXX <> ("Amount Including VAT" - Amount) THEN ERROR('%1 is not equal to total of VAT on lines %2',fieldXXX ,("Amount Including VAT" - Amount) )
The error message shows : fieldXXX=12.63 and ("Amount Including VAT" - Amount) =12.627621
Has anyone faced this issue before? How to correct it?
Thanks in advance
Answers
OK but I have also a similar issue with "Amount Including VAT" for another check:
fieldYYY is another field to check on "Amount Including VAT":
If fieldYY <> "Amount Including VAT" THEN ERROR('%1 is not equal to total on lines %2',fieldYYY ,"Amount Including VAT")
The error message shows 60.35 for fieldYYY and 60.34 for "Amount Including VAT".
Shall I round "Amount Including VAT" before the check too?
My field is filled manually...