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 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