Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

Sales tax not showing in GL accounts and posted sales invoice

(0) ShareShare
ReportReport
Posted on by 4
Hello all,
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 Order
//
Posted sales invoice
//
Thanks in advance
 
  • 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.
    ​​​​​​​
     
    Thanks again for your help.
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 75,595 Super User 2024 Season 2 on at
    Sales tax not showing in GL accounts and posted sales invoice
    Hi, hope the following helps.
     
    If you are posting from the API, please refer to the example below:
     
    Thanks.
    ZHU
  • 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.  
  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 993 Super User 2024 Season 1 on at
    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.

Helpful resources

Quick Links

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,642 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,371 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans