AmortizationOptions Class

Options class to set parameter value for Amortization Accounting Seed API methods.

AmortizationOptions Properties

The following are properties of the AmortizationOptions class.

amortizationMethod

Amortization method being used as defined in label field on AcctSeed__Binding__mdt custom metadata records.

Type: String
Required: True

endDate

Ending date of amortization (Accounting periods must exist for this date). Used by the default Straight Line - Daily method.

Type: Date
Required: False

sourceDocument

The Id of the source document record being Amortized. Currenty supported source document types include Billings and Payables.

Type: Id
Required: True

startDate

Starting date of amortization (Accounting periods must exist for this date).

Type: Date
Required: True

numberOfPeriods

The total number of accounting periods that the amount is amortized over. There must be enough accounting periods after the start date. Used by the default Straight Line - Monthly and Straight Line - Prorated Monthly methods.

Type: Integer
Required: False

amount

Amount used if performing custom Amortization. If not specified the amount is derived from the Source Document Sub-Total.

Type: Decimal
Required: False

creditGlAccount

Credit GL Account record Id.

Type: Id (AcctSeed__GL_Account__c)
Required: False

debitGlAccount

Debit GL Account record Id.

Type: Id (AcctSeed__GL_Account__c)
Required: False

description

Description

Type: String
Required: False

glVariable1

GL Account Variable 1 Id

Type: Id (AcctSeed__Accounting_Variable__c)
Required: False

glVariable2

GL Account Variable 2 Id

Type: Id (AcctSeed__Accounting_Variable__c)
Required: False

glVariable3

GL Account Variable 3 Id

Type: Id (AcctSeed__Accounting_Variable__c)
Required: False

glVariable4

GL Account Variable 4 Id

Type: Id (AcctSeed__Accounting_Variable__c)
Required: False

product

Product Id

Type: Id (Product2)
Required: False

project

Project Id

Type: Id (AcctSeed__Project__c)
Required: False

projectTask

Project Task Id

Type: Id (AcctSeed__Project_Task__c)
Required: False

amortizeDefaultRevenuePrepaidExpense

This will default to the value from Amortize_Default_Revenue_Prepaid_Expense__c field from Accounting_Settings__c. When enabled, the amount to be amortized is the sum of all billing/payable lines which post to the ‘Default Deferred Revenue GL Account’ and ‘Deferred Expense GL Account’ respectively.

Type: Boolean
Required: False

accrualCash

Indicate on which Ledger(s) to create and post this record. (‘Accrual’, ‘Cash’, ‘Accrual and Cash’)

Type: String
Required: False