March 2020
Intermediate to advanced
534 pages
14h 15m
English
There are a few logical extensions we could add here. The purchase order generation can return a list of responses that linked the source service order line to the purchase order line. We could, therefore, add a field to the service order line to allow us to know which lines have a purchase order.
To do this, we need to add a new field from using the InventTransId EDT and add a relation to PurchLine. We would then add code to our action class to iterate through the response list, as follows:
public boolean PerformAction(ConVMSVehicleServiceTable _serviceOrder){ List responseList = ConVMSPurchOrderGenerateFacade::CreateOrderFromServiceOrder (_serviceOrder); if (responseList.elements() == 0) // this is reversed from the code ...Read now
Unlock full access