scmc.ProductionOrderAPIglobal with sharing class ProductionOrderAPI Methods
Completeglobal void Complete(Id productionOrderId, String lotNumber, String[] serialNumbers) Complete specified production order. Lot Number and Serial Numbers are assigned to the resulting products. Costs from items are rolled up from the items used up in the production order and become the cost for the resulting product. Input Parameters
Exceptions Thrown
Return ValueDoes not return a value. createProductionOrdersForSalesOrderglobal List<scmc__Production_Order__c> createProductionOrdersForSalesOrder(Id salesOrderId) Create a production order from a sales order. The sales order usually has items on it that must be configured. Input Parameters
Exceptions Thrown
Return ValueA list of Production Orders. CreateRequisitionglobal Id CreateRequisition(Id productionOrderId) Create a requisition to satisfy the requirement to complete the production order. Input Parameters
Exceptions Thrown
Return ValueThe id of the requision that was created. allocateglobal void allocate(ID productionOrderId) Allocate a production order. Check the status on the production order to determine if the was completely allocated or not. Input Parameters
Exceptions Thrown
Return ValueThere is no return. reverseAllocateglobal void reverseAllocate(ID productionOrderId) Reverse allocate a production order. This puts the production order back back into an Open status and releases any inventory that was associated with the production order. Input Parameters
Exceptions Thrown
Return ValueThere is no return. |