SCM API Developer Reference

scmc.ProductionOrderAPI

global with sharing class ProductionOrderAPI

Copyright (c) 2015 FinancialForce.com, inc. All rights reserved.

Methods

Complete

global 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

Name Type Description
productionOrderId Id The id of the production order to be completed.
lotNumber String A String that indicates the lot number that is assigned to the items created by the production order.
serialNumbers String[] A list of Strings that contains the serial numbers to be assigned to the items produced by the production order. @group Inventory Management

Exceptions Thrown

Value Description
Exception - Exception indicating issues with the completion.

Return Value

Does not return a value.

createProductionOrdersForSalesOrder

global 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

Name Type Description
salesOrderId Id The id of the sales order that indicates what needs to be built.

Exceptions Thrown

Value Description
Exception - Exception indicating issues with the production order completion.

Return Value

A list of Production Orders.

CreateRequisition

global Id CreateRequisition(Id productionOrderId)

Create a requisition to satisfy the requirement to complete the production order.

Input Parameters

Name Type Description
productionOrderId Id The id of the production order that is short items to be produced.

Exceptions Thrown

Value Description
Exception - Exception indicating issues with creating the requisition.

Return Value

The id of the requision that was created.

allocate

global 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

Name Type Description
productionOrderId ID The id of the production order needs to be allocate.

Exceptions Thrown

Value Description
Exception - Exception indicating issues with allocating the production order.

Return Value

There is no return.

reverseAllocate

global 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

Name Type Description
productionOrderId ID The id of the production order needs to be reverse allocated.

Exceptions Thrown

Value Description
Exception - Exception indicating issues with reverse allocating the production order.

Return Value

There is no return.

© Copyright 2009–2022 FinancialForce.com, inc. All rights reserved. Various trademarks held by their respective owners.