SCM

scmc.PurchaseOrderAPI

global with sharing class PurchaseOrderAPI

This class is used to support the various actions that are performed on a purchase order.

Author

Financial Force, Inc.

Methods

PurchaseOrderAPI

global PurchaseOrderAPI()

Class constructor.

Exceptions Thrown

Value Description
noException This method does not throw an exception.

Return Value

Does not return a value.

deepCopy

global scmc__Purchase_Order__c deepCopy(Id poId)

Create a copy of the specified purchase order including all lines and options. All fields are cloned, including custom fields. The following fields on the header are reset: Purchase_Order_Date__c = System.today() Status__c = 'Open' Delivery_Status__c = 'Not Delivered' Revision__c = 0 Start_Date__c = null End_Date__c = null Applied_Rebate_Amount__c = 0 Total_Amount_Vouchered__c = 0 Total_Quantity_Vouchered__c = 0 The following fields on the line are reset: Status__c = 'Open' Amount_Vouchered__c = 0 Quantity_Received__c = 0 Quantity_Vouchered__c = 0 Requisition_Line_Item__c = null Outbound_Parts_Status__c = 'None Selected' Purchase_Price_Variance__c = 0 Applied_Rebate_Amount__c = 0

Input Parameters

Name Type Description
poId Id The Id of the purchase order to be copied.

Exceptions Thrown

Value Description
noException This method does not throw an exception.

Return Value

The new Purchase Order record.

© Copyright 2009–2018 FinancialForce.com, inc. Confidential – all rights reserved. Various trademarks held by their respective owners.