Step 1: Exploring the MYOB Acumatica Source Code
To learn whether you can use the code of a predefined workflow in your customization, you need first to explore this code. In this step, you will explore the source code of MYOB Acumatica and search for the event that you can use.
To change the status of a repair work order whose invoice has been paid, you need to
use an event that is fired when the invoice is fully paid and closed. The change of
the invoice's status occurs as a result of the release of a payment. Therefore, to
find the event, you should first learn the code location of the
Release
action on the Payments and Applications (AR302000) form. In this step, you
will locate the Release
action.
To locate the Release
action, do the following:
- In MYOB Acumatica, open the Payments and Applications form.
- To inspect the Release command on the More menu, press Ctrl + Alt, and click Release.
- In the Element Properties dialog box, which opens, learn the name of the graph where the action is defined: ARPaymentEntry.
- Click
The Source Code browser opens.
. - In the Graph Name box, learn the full name of the graph:
PX.Objects.AR.ARPaymentEntry.
You will need this name later to find the graph in the source code.