c2g.PurchaseCreditNotePostAndMatchServiceglobal inherited sharing class PurchaseCreditNotePostAndMatchService the service class relating to the post and match feature within payable credit notes. MethodsPurchaseCreditNotePostAndMatchServiceglobal PurchaseCreditNotePostAndMatchService() postAndMatchglobal static Id postAndMatch(Id creditNoteId) Posts the selected payable credit note and then matches it with the corresponding payable invoice. Input Parameters
Return ValueThis service returns the Id of the payable credit note. 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. Id creditNoteId = ‘a1i28000000DYKZ’ PurchaseCreditNotePostAndMatchService.postAndMatch(creditNoteId); |