Accounting Apex API Developer Reference

c2g.CODAYearService

global with sharing class CODAYearService

The service class relating to Years and Periods.

Methods

createYearAndGeneratePeriod

global static id createYearAndGeneratePeriod(c2g__codaYear__c dto)

Creates a year and period list from the information passed. If the year already exists an error will be thrown.

Input Parameters

Name Type Description
dto c2g__codaYear__c The data transfer object representing the year to be created. The periods generated will be dependent on the period calculation basis specified.

Return Value

The ID of the year created.

© Copyright 2009–2020 FinancialForce.com, inc. Confidential – all rights reserved. Various trademarks held by their respective owners.