Skip to main content

Notifications

Announcements

No record found.

Supply Chain Management forum
Unanswered

Reset Sales order on update

Posted on by 53
Hi,
 
I want to know how to clear previous tax and calc new on Sales order. Basically I want to reset everything on existing sales order and update it new values. So it should have new tax, discount, payment, charges, delivery and etc.
 
Please guide on this.

Thanks
  • m Profile Picture
    m 53 on at
    Reset Sales order on update
    I am updating following fields on update:

    SalesTable.CustAccount 
    SalesTable.Payment
     
    We want to reset the tax and delivery fields. How to achieve it through X++.
     
    Another thing is we dont want to use salesTable.Update() method instead we will use .doUpdate() method.

    Thanks
  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 290,277 Super User 2024 Season 2 on at
    Reset Sales order on update
    Hi m,
     
    What exact fields will you update and what fields should be calculated accordingly? You still talk about "update a Sales Order" which is too broad to know exactly what specific fields will be updated. For "update a Sales Order", we might give you about 50 methods to call. For a quantity update, it will be probably only one method.
  • m Profile Picture
    m 53 on at
    Reset Sales order on update
    I have custom class through which I update a Sales Order. i want to make sure, it recalculates tax, discount, misc charges and etc at the time of update.
     
    What code should i write or use for it.
     
    Thank you
  • Kevin Xia Profile Picture
    Kevin Xia Microsoft Employee on at
    Reset Sales order on update
    Hi,
    Can you provide more information (such as business scenarios or requirements, etc.) so that we can better solve the problem for you? At this time, the information you have provided is not sufficient to support us in proposing a solution.
    Best regards,
    Kevin
  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 290,277 Super User 2024 Season 2 on at
    Reset Sales order on update
    Hi m,
     
    Can you elaborate on the exact scenario? I'm not able to understand in what context you need to update the tax details manually. This is usually covered automatically if you have the correct settings in your application.
    What type of update are you referring to?

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,277 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,126 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans