Skip to main content

Notifications

AX 2012: Sales Order Posting Custom Validations

It is often a customer requirement to check for custom validations before posting a Sales Order. The best place to put your code for custom validations can be found below:

Validations for Sales Table:

AOT > Classes > SalesFormLetterProvider > checkHeading()

For example,

To check for custom field SalesTable.Blocked, this is how custom validation should be added in checkHeading method. You may refer to Line# to know exactly where I have placed the code.

Untitled

Validations for Sales Line:

AOT > Classes > SalesFormLetterProvider > checkLines()

For example,

To check for custom field SalesLine.Blocked, this is how custom validation should be added in checkLines method. You may refer to Line# to know exactly where I have placed the code.

Untitled


Comments

*This post is locked for comments