c2g.CashEntryServiceglobal with sharing class CashEntryService a service to provide cash entry functionality. MethodscancelCashEntriesglobal static List<Id> cancelCashEntries(List<c2g.CashEntryService.CancelCashEntryInfo> cancelCashEntryInfoList) This method cancels cash entries and returns a list of IDs of the new cancelling cash entries created. Use CashEntryCancelCashEntry (Cancel Cash Entries) custom permission to grant permissions on this method. Input Parameters
Return ValueThis service returns a list of Id 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. c2g.CashEntryService.CancelCashEntryInfo cancelCashEntryInfo = new c2g.CashEntryService.CancelCashEntryInfo(); cancelCashEntryInfo.OriginalCashEntryId = 'a0g24000000PdIK'; cancelCashEntryInfo.PeriodId = 'a1f24000000PdIK'; cancelCashEntryInfo.Reference = 'New Reference'; cancelCashEntryInfo.Description = 'New Description'; List<Id> cancelingCashEntryIdList = c2g.CashEntryService.cancelCashEntries(new List<c2g.CashEntryService.CancelCashEntryInfo>{cancelCashEntryInfo}); c2g.CashEntryService.CancelCashEntryInfoglobal class CancelCashEntryInfo holds the information necessary to cancel a cash entry. Properties
Methods
CancelCashEntryInfoglobal CancelCashEntryInfo(Id originalCashEntryId, Id periodId, String reference, String description) Create a new CancelCashEntryInfo holding the information necessary to cancel a cash entry. Input Parameters
|