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–2022 FinancialForce.com, inc. All rights reserved. Various trademarks held by their respective owners.