Skip to main content

Notifications

Supply chain | Supply Chain Management, Commerce
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... 291,253 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... 291,253 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?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans