Acumatica ERP allows customization to interrupt the standard business logic and add/change the user defined criteria to complete the process as per business requirement. Validation plays an important role to allow or restrict any events and provides user a chance to make the changes prior to applying it on the business level.
In this blog, we will explore the process of adding custom validation on release event considering invoices and memos screen. The release process continues only if the validation passes.
Below example shows the validation of allowing the release event only if the invoice date is current date or the next day. Failing to do so will generate an error message to stop the Release process.
Create a customization project, override a Release method of ARInvoiceEntry, and add the validation.
- Create a customization project and include ARInvoiceEntry under “CODE” section.
- Click on override method option and select the Release method.
- Enter the validation code as shown in below screenshot.
- Publish the Customization to get reflected on Invoice and Memos Screen
This is how we can interrupt an existing event unless it passes user’s business criteria.