SCM API Developer Reference

scmc.PurchaseContractsService

global with sharing class PurchaseContractsService

this class is used to support all the various actions that are performed on a purchase contract.

Methods

cancelPurchaseContract

global static void cancelPurchaseContract(Set<Id> purchaseContractIds)

Cancel specified purchase contracts.

Input Parameters

Name Type Description
purchaseContractIds Set<Id> The IDs of the purchase contracts to be canceled.

Exceptions Thrown

Value Description
DMLException Indicates an issue with a DML statement, such as an "insert" statement missing a required field on a record.

activatePurchaseContract

global static void activatePurchaseContract(Set<Id> purchaseContractIds)

Activate specified purchase contracts and their purchase contract lines.

Input Parameters

Name Type Description
purchaseContractIds Set<Id> The IDs of the purchase contracts to be activated.

Exceptions Thrown

Value Description
DMLException Indicates an issue with a DML statement, such as an "insert" statement missing a required field on a record.
© Copyright 2009–2022 FinancialForce.com, inc. All rights reserved. Various trademarks held by their respective owners.