Accounting Apex API Developer Reference

c2g.CashEntryService

global with sharing class CashEntryService

a service to provide cash entry functionality.

Methods

cancelCashEntries

global 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

Name Type Description
cancelCashEntryInfoList List<c2g.CashEntryService.CancelCashEntryInfo> A list of the information necessary to cancel a cash entry.

Return Value

This 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.CancelCashEntryInfo

global class CancelCashEntryInfo

holds the information necessary to cancel a cash entry.

Properties

Name Type Description
OriginalCashEntryId Id the cash entry to cancel.
PeriodId Id the new period for the cash entry.
Reference String the new reference for the cash entry.
Description String the new description for the cash entry.

Methods

CancelCashEntryInfo

global CancelCashEntryInfo()

Create a new CancelCashEntryInfo.

CancelCashEntryInfo

global CancelCashEntryInfo(Id originalCashEntryId, Id periodId, String reference, String description)

Create a new CancelCashEntryInfo holding the information necessary to cancel a cash entry.

Input Parameters

Name Type Description
originalCashEntryId Id The cash entry to cancel.
periodId Id The new period for the cash entry.
reference String The new reference for the cash entry.
description String The new description for the cash entry.
© Copyright 2009–2022 FinancialForce.com, inc. All rights reserved. Various trademarks held by their respective owners.