If VAT% is 0, do not raise error " Purchase VAT Account must have a value in VAT Posting Setup" when Cancel Posted Purchase Invoice.
Because there is no meaning to put VAT Purchase account, if VAT% is 0.
Error message:
If requesting support, please provide the following details to help troubleshooting:
Error message:
Purchase VAT Account must have a value in VAT Posting Setup: VAT Bus. Posting Group=NOVAT, VAT Prod. Posting Group=NOVAT. It cannot be zero or empty.
AL call stack:
"Correct Posted Purch. Invoice"(CodeUnit 1313).TestVATPostingSetup line 6 - Base Application by Microsoft version 26.4.37194.39569
"Correct Posted Purch. Invoice"(CodeUnit 1313).TestPurchaseLines line 50 - Base Application by Microsoft version 26.4.37194.39569
"Correct Posted Purch. Invoice"(CodeUnit 1313).TestCorrectInvoiceIsAllowed line 11 - Base Application by Microsoft version 26.4.37194.39569
"Cancel PstdPurchInv (Yes/No)"(CodeUnit 1325).CancelInvoice line 7 - Base Application by Microsoft version 26.4.37194.39569
"Posted Purchase Invoice"(Page 138)."CancelInvoice - OnAction"(Trigger) line 4 - Base Application by Microsoft version 26.4.37194.39569
Custom dimensions:
[]
