I am posting a sales order using AL program its working fine but when I post the same sales order it is not showing the sales tax amount and also it not posting to the GL accounts. Please find the attached screenshot of sales order and posted sales invoice for your reference.
Sales tax not showing in GL accounts and posted sales invoice
Thanks for the reply @YUN ZHU,
We are following the same method as you suggested.
While posting the invoice from sales order it is replacing SalesLine."Amount Including VAT" value with SalesLine.Amount so the sales tax showing 0 in the invoice. Rest of it all the things are working fine.
Please suggest what we are doing wrong.
Note: We are getting the sales tax amount from some external source.
Please find the attached screenshot for your reference. In this "Amount Including VAT"has been changed. It was 300.42.
Sales tax not showing in GL accounts and posted sales invoice
We are getting sales order and invoice data from a third party POS system in json format. After parsing the json data I create the sales order using an API written in AL programing. After that I am posting the same sales order using the AL programming. What I am missing while posting the sales order.
Sales tax not showing in GL accounts and posted sales invoice
So the tax is the only thing that does not hit the G/L accountss?
I assume that all other transactions hit the G/L as expected?
Do you have any customizations in your system?
If you do this issue is most likely caused by that.
I have never seen the standard system calculate tax on a sales order for the tax then to disappear in the posting process.
And what exactly do you mean when you say that the posting is ok when done in AL?
It should be exactly the same code that is executed regardless of the posting being done through code or through the user interface.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.