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.

About Us
Greytrix – a globally recognized and one of the oldest Sage Development Partner and a Salesforce Product development partner offers a wide variety of integration products and services to the end users as well as to the Partners and Sage PSG across the globe. We offer Consultation, Configuration, Training and support services in out-of-the-box functionality as well as customizations to incorporate custom business rules and functionalities that require apex code incorporation into the Salesforce platform.

Greytrix has some unique solutions for Cloud CRM such as Salesforce Sage integration for Sage X3Sage 100 and Sage 300 (Sage Accpac). We also offer best-in-class Cloud CRM Salesforce customization and development services along with services such as Salesforce Data MigrationIntegrated App developmentCustom App development and Technical Support to business partners and end users.
Salesforce Cloud CRM integration offered by Greytrix works with Lightning web components and supports standard opportunity workflow. Greytrix GUMU™ integration for Sage ERP – Salesforce is a 5-star rated app listed on Salesforce AppExchange.

The GUMU™ Cloud framework by Greytrix forms the backbone of cloud integrations that are managed in real-time for processing and execution of application programs at the click of a button.

For more information on our Salesforce products and services, contact us at salesforce@greytrix.com. We will be glad to assist you.