Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

How to stop Sales Order for any transaction if Net Amount is zero?

(0) ShareShare
ReportReport
Posted on by 1,811

Hii,

If total amount of a sales order is zero then user should not be able to Confirm, Picking, Packing and Invoicing on that Sales Order, even it has one or more lines.

System should show message "Sales Order net amount is zero so cannot proceed."

How we can achieve this? Is there any settings in the Setup area?

If need customization, where I can do that?

Thanks,

*This post is locked for comments

  • Verified answer
    Rana Anees Profile Picture
    Rana Anees 1,811 on at
    RE: How to stop Sales Order for any transaction if Net Amount is zero?

    Thanks All,

    We achieved this requirement by using Sales Order Workflow. We have a customized workflow for Sales Orders.

  • Lhamo Dolma Profile Picture
    Lhamo Dolma 290 on at
    RE: How to stop Sales Order for any transaction if Net Amount is zero?

    Have you looked at writing it on init method of salesTable form? writing a conditional logic after the super? you'll need to find out what the name of your net amount field first by looking at the properties window at design level in AOT and set this field's auto declaration property to Yes.  Do you want that warning message to show up when users click on Confirm, Invoice button etc?

  • Rana Anees Profile Picture
    Rana Anees 1,811 on at
    RE: How to stop Sales Order for any transaction if Net Amount is zero?

    Hii Rik Spoor,

    We need it for Sales Order. We don't have workflow on Sales Orders. Now only possibility seems to be in coding, but I am not getting where to write the code and how to get SO total amount.

    Thanks,

  • Verified answer
    dekaasboer Profile Picture
    dekaasboer 1,530 on at
    RE: How to stop Sales Order for any transaction if Net Amount is zero?

    If you have a purchase order approval workflow you could set-up a extra check wich automatically rejects the workflow if the amount equals zero.

  • Rana Anees Profile Picture
    Rana Anees 1,811 on at
    RE: How to stop Sales Order for any transaction if Net Amount is zero?

    Yes I need to do some customization. In what classes and methods we need customization that I am searching. To make an additional check and show info log before confirming, picking, packing, invoicing if net amount of sales order is zero.

  • Lhamo Dolma Profile Picture
    Lhamo Dolma 290 on at
    RE: How to stop Sales Order for any transaction if Net Amount is zero?

    you might need to write some code for this requirements.

  • Rana Anees Profile Picture
    Rana Anees 1,811 on at
    RE: How to stop Sales Order for any transaction if Net Amount is zero?

    any idea please...

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans