5
Hi,

we think it would be a good idea to integrate the line no to an error shown while Posting.
If the VAT Posting Setup dies not exist, nobody can see the line no. of the General Journal.
If there is a General Journal with a lot of lines it could be difficult to see the the line no. of the wrong line.

It would be very easy to fix it and we made it for our solution before. In AL Code-Times: This is not possible.

For now: There is a hard coded "GET" on VATPostingSetup in the function CalcPmtDiscIfAdjVAT of Codeunit 12. You can easily integrate "If not get then" and make an Error with this TextConst :
"VatPostingSetupNotFoundError":
%1 does not exist in \Gen. Jnl. Batch: '%2' \LineNo.: '%3' \Account No.: '%4'. %5: '%6', %7: '%8'.

Thanks!
STATUS DETAILS
Needs Votes