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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

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

(0) ShareShare
ReportReport
Posted on by 1,813

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

  • Rana Anees Profile Picture
    1,813 on at

    any idea please...

  • Lhamo Dolma Profile Picture
    292 on at

    you might need to write some code for this requirements.

  • Rana Anees Profile Picture
    1,813 on at

    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.

  • Verified answer
    dekaasboer Profile Picture
    1,530 on at

    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
    1,813 on at

    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,

  • Lhamo Dolma Profile Picture
    292 on at

    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?

  • Verified answer
    Rana Anees Profile Picture
    1,813 on at

    Thanks All,

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

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Prashant Singh Profile Picture

Prashant Singh 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans