c2g.CODAAPIPurchaseInvoice_9_0global with sharing class CODAAPIPurchaseInvoice_9_0 The service class relating to Purchase Invoices. Properties
Methods
GetAPIVersionwebservice static String GetAPIVersion() Used to get the latest API version. Return ValueText GetServiceNamewebservice static String GetServiceName() Used to get the name of the service. Return ValueText CreatePurchaseInvoicewebservice static c2g.CODAAPICommon.Reference CreatePurchaseInvoice(c2g.CODAAPICommon_9_0.Context context, c2g.CODAAPIPurchaseInvoiceTypes_9_0.PurchaseInvoice value) This service allows you to create a purchase invoice (also known as payable invoice). See "Payable Invoice Fields" and "What is a Payable Invoice" in the FinancialForce Help for more details. Input Parameters
Return ValueThis web service returns a CODAAPICommon.Reference object. UpdatePurchaseInvoicewebservice static c2g.CODAAPICommon.Reference UpdatePurchaseInvoice(c2g.CODAAPICommon_9_0.Context context, c2g.CODAAPIPurchaseInvoiceTypes_9_0.PurchaseInvoice value) This service allows you to update a purchase invoice. Input Parameters
Return ValueThis web service returns a CODAAPICommon.Reference object. PostPurchaseInvoicewebservice static void PostPurchaseInvoice(c2g.CODAAPICommon_9_0.Context context, c2g.CODAAPICommon.Reference value) This service allows you to post a purchase invoice. Input Parameters
Return ValueThis web service does not return a value. GetPurchaseInvoicewebservice static c2g.CODAAPIPurchaseInvoiceTypes_9_0.PurchaseInvoice GetPurchaseInvoice(c2g.CODAAPICommon_9_0.Context context, c2g.CODAAPICommon.Reference value) This service allows you to retrieve a purchase invoice. Input Parameters
Return ValueThis web service returns a c2g.CODAAPIPurchaseInvoiceTypes_9_0.PurchaseInvoice object. PlaceOnHoldwebservice static void PlaceOnHold(c2g.CODAAPICommon_9_0.Context context, c2g.CODAAPICommon.Reference value) ReleaseForPaymentwebservice static void ReleaseForPayment(c2g.CODAAPICommon_9_0.Context context, c2g.CODAAPICommon.Reference value) BulkCreatePurchaseInvoicewebservice static c2g.CODAAPICommon.Reference[] BulkCreatePurchaseInvoice(c2g.CODAAPICommon_9_0.Context context, c2g.CODAAPIPurchaseInvoiceTypes_9_0.PurchaseInvoice[] values) This service allows you to create purchase invoices in bulk. Input Parameters
Return ValueThis web service returns an array of CODAAPICommon.Reference objects. BulkUpdatePurchaseInvoicewebservice static c2g.CODAAPICommon.Reference[] BulkUpdatePurchaseInvoice(c2g.CODAAPICommon_9_0.Context context, c2g.CODAAPIPurchaseInvoiceTypes_9_0.PurchaseInvoice[] values) This service allows you to update purchase invoices in bulk. It also handles amending posted purchase invoices and their related transactions. Input Parameters
Return ValueThis web service returns an array of CODAAPICommon.Reference objects. Sample Code//Note: This sample code is for demonstration purposes only. It is not intended for //use in a production environment, is not guaranteed against defects or errors, and //is in no way optimized or streamlined. //In addition to making updates, BulkUpdate can be used to amend, as this example shows //using a reference to an existing posted invoice. c2g.CODAAPICommon.Reference postedInvRef = c2g.CODAAPICommon.getRef('a4p1I00000002YwQAI', null); c2g.CODAAPICommon_9_0.Context context = new c2g.CODAAPICommon_9_0.Context(); c2g.CODAAPIPurchaseInvoiceTypes_9_0.PurchaseInvoice invoice = c2g.CODAAPIPurchaseInvoice_9_0.GetPurchaseInvoice(context, postedInvRef); //detail the amendment invoice.InvoiceDescription = 'AmendedDescription'; List<c2g.CODAAPIPurchaseInvoiceTypes_9_0.PurchaseInvoice> invoices = new List<c2g.CODAAPIPurchaseInvoiceTypes_9_0.PurchaseInvoice>(); invoices.add(invoice); //call the API c2g.CODAAPIPurchaseInvoice_9_0.BulkUpdatePurchaseInvoice(context, invoices); BulkPostPurchaseInvoicewebservice static void BulkPostPurchaseInvoice(c2g.CODAAPICommon_9_0.Context context, c2g.CODAAPICommon.Reference[] values) This service allows you to post purchase invoices in bulk. Input Parameters
Return ValueThis web service does not return a value. BulkPlaceOnHoldwebservice static void BulkPlaceOnHold(c2g.CODAAPICommon_9_0.Context context, c2g.CODAAPICommon.Reference[] values) Mass on hold activation of purchase invoices BulkReleaseForPaymentwebservice static void BulkReleaseForPayment(c2g.CODAAPICommon_9_0.Context context, c2g.CODAAPICommon.Reference[] values) Mass release of purchase invoices for payment |