Acumatica – Adding custom validation on Release event

By | June 7, 2022

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.

overrideRelease

  • Enter the validation code as shown in below screenshot.

invoiceGraph

  • 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.

Greytrix, with its 24+ years of expertise as the Sage Development partner, extends its mastery to bring Acumatica to modern businesses. Greytrix offers complete end-to-end professional services for Acumatica, ranging from development, support, technical assistance, consulting, and system integrations.