Step 6: Testing the Transition

In this step, you will test the transition from the PendingPayment state to the ReadyForAssignment state. Do the following:

  1. Rebuild the PhoneRepairShop_Code project.
  2. In MYOB Acumatica, on the Repair Work Orders (RS301000) form, open the repair work order with the Pending Payment status.
  3. On the form toolbar, click Create Invoice.

    In the Invoice Nbr. box, note the number of the invoice created for the repair work order.

  4. On the Invoices (SO303000) form, open the invoice created in the previous instruction.
  5. On the form toolbar, click Remove Hold and then Release.

    The invoice is assigned the Open status.

  6. On the More menu, click Pay.

    The Payments and Applications (AR302000) form opens. Notice that the Prepayment Percent box contains 10.00, which has been copied from the Repair Work Order Preferences (RS101000) form.

  7. On the Payments and Applications form, change the existing values to the following values, as shown in the following screenshot:
    • Prepayment Percent: 5.00
    • Amount Paid (in the only row of the Documents to Apply tab: 3.00
      Tip: As you have noticed previously, the total amount of the invoice is $50.00. The paid amount ($3.00) is greater than the amount ($2.50) corresponding to the prepayment percent you specified on the form (which is 5%). Thus, $3 is enough to prepay the work order.
    Figure 1. The prepayment for the created invoice


  8. On the form toolbar, click Remove Hold and then Release.

    The prepayment is applied.

  9. On the Repair Work Orders form, open the repair work order for which you created the invoice in Instruction 3.

    Notice that the status of the created order has changed to Ready for Assignment, as shown in the following screenshot.

    Figure 2. The repair work order with the Ready for Assignment status