Skip to main content

Notifications

Business Central forum
Suggested answer

Question about Released Status - Purchase Order

Posted on by 10
Hello community, I present my case to you. On the Purchase Orders page, when requesting approval and approving it, the Total Amount Incl. VAT is modified. I need to find the trigger or condition that updates this amount since I am altering it at the code level.
 
 
 
Normally, since the purchase order is disapproved, it should be shown with these calculations:
 
 
 
any ideas?
 
 
  • MartinVargas Profile Picture
    MartinVargas 10 on at
    Question about Released Status - Purchase Order
    KasparsSemjonovs Yes, just as I am altering the Total Amount based on the withholding (70) on the subtraction, the amount remains at 1090. The base calculates the VAT: 1090 - 1000 (which is the amount without VAT) so the VAT is 90.
     
    My doubt is that it recalculates the total amount when the purchase order is approved.
  • MartinVargas Profile Picture
    MartinVargas 10 on at
    Question about Released Status - Purchase Order
    YUN ZHUquestion, and where would the IsTotalValid() function be called?
  • Suggested answer
    KasparsSemjonovs Profile Picture
    KasparsSemjonovs 3,649 Super User 2024 Season 2 on at
    Question about Released Status - Purchase Order
    Total is not the problem, seems the problem is from field IVA total (MXN). 
    So check why the IVA amount is changing - in Your example from 160 to 90. 

    I assume it is the VAT. So check if the original VAT Bus. and Prod. posting group in the line and VAT percentage, and check what are they after the approval. Do they change or stay the same?

    Also might be it is localization issue, so please let us know which localization You are using is it Mexico or something else?
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 68,142 Super User 2024 Season 2 on at
    Question about Released Status - Purchase Order
    Hi, as far as I know, the following methods are mainly used, you can investigate in depth.
    table 38 "Purchase Header"
    page 54 "Purchase Order Subform"
     
    Hope this helps.
    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,142 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

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

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans