web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Unanswered

Reset Sales order on update

(1) ShareShare
ReportReport
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
I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    300,904 Super User 2025 Season 2 on at
    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?
  • Kevin Xia Profile Picture
    Microsoft Employee on at
    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
  • m Profile Picture
    53 on at
    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
  • André Arnaud de Calavon Profile Picture
    300,904 Super User 2025 Season 2 on at
    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
    53 on at
    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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Siv Sagar Profile Picture

Siv Sagar 283 Super User 2025 Season 2

#2
Laurens vd Tang Profile Picture

Laurens vd Tang 196 Super User 2025 Season 2

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 139 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans