Skip to main content

Notifications

Business Central forum
Suggested answer

Question about "Amount Including VAT" of Historical Purchase Invoices

Posted on by 10
Hello community, I present my case to you. When registering a purchase order, and observing it in the sales invoice history, the amount including VAT is recalculated.
 
It should be noted that I am manipulating the Amount including VAT, as shown in the image:
 
 
However, when the purchase order is registered, the amount including VAT is displayed as follows in the purchase invoice history, that is, it is not taking the adjustment that I am making.
 
 
 
any ideas?
  • MartinVargas Profile Picture
    MartinVargas 10 on at
    Question about "Amount Including VAT" of Historical Purchase Invoices
    Hi YUN ZHU. Indeed, in my code I affect it with the ":=" .
     
     
     
    So should the VAT be affected by the Statistics?
     
     
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 68,095 Super User 2024 Season 2 on at
    Question about "Amount Including VAT" of Historical Purchase Invoices
    How did you adjust? It seems that you did not use Record.Validate(Any [, Any]) Method in your code, but used ":=", so that only the value of this field will change, but this field is not the only one that affects the posted value when posting.
     
    In addition, the adjustment of taxes is not that simple. You need to modify the following lines.
     
    Hope this can give you some hints.
    Thanks.
    ZHU

Helpful resources

Quick Links

Dynamics 365 Community Update

Welcome to the inaugural Community Platform Update. As part of our commitment to…

Dynamics 365 Community Newsletter - August 2024

Catch up on the latest D365 Community news

Community Spotlight of the Month

Kudos to Mohana Yadav!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 227,971 Super User 2024 Season 2

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans