Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Suggested answer

Sales tax not showing in GL accounts and posted sales invoice

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 68,395 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 32,744 Moderator 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.
     

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,252 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,089 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans