Table "Deferral Header Archive"
Archive table for deferral header records, storing historical versions of deferral schedules. Maintains deferral schedule history when documents are archived for audit and reference purposes.
Properties
| Name | Value |
|---|---|
| Caption | Deferral Header Archive |
| DataClassification | CustomerContent |
Fields
| Name | Type | Description |
|---|---|---|
| "Deferral Doc. Type" | Enum Microsoft.Finance.Deferral."Deferral Document Type" | Type of source document (Purchase, Sales, or G/L) that initiated this archived deferral. |
| "Document Type" | Integer | Document type ID from the archived source document. |
| "Document No." | Code[20] | Document number from the archived source document. |
| "Line No." | Integer | Line number within the archived source document. |
| "Deferral Code" | Code[10] | Deferral template code used for this archived schedule. |
| "Amount to Defer" | Decimal | Amount that was deferred in the archived document currency. |
| "Amount to Defer (LCY)" | Decimal | Amount that was deferred converted to local currency (LCY) at the time of archiving. |
| "Calc. Method" | Enum Microsoft.Finance.Deferral."Deferral Calculation Method" | Calculation method used for the archived deferral schedule. |
| "Start Date" | Date | Start date used for the archived deferral schedule. |
| "No. of Periods" | Integer | Number of periods defined for the archived deferral schedule. |
| "Schedule Description" | Text[100] | Description of the archived deferral schedule. |
| "Initial Amount to Defer" | Decimal | Original amount to defer before any modifications at the time of archiving. |
| "Currency Code" | Code[10] | Currency code of the archived source document. |
| "Version No." | Integer | Version number of the archived document. |
| "Doc. No. Occurrence" | Integer | Document number occurrence for handling duplicate document numbers. |
| SystemId | Guid | |
| SystemCreatedAt | DateTime | |
| SystemCreatedBy | Guid | |
| SystemModifiedAt | DateTime | |
| SystemModifiedBy | Guid | |
| SystemRowVersion | BigInteger |
Methods
DeleteHeader
Deletes an archived deferral header and all associated lines. Used when cleaning up document archives.
procedure DeleteHeader(DeferralDocType: Integer, DocumentType: Integer, DocumentNo: Code[20], DocNoOcurrence: Integer, VersionNo: Integer, LineNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| DeferralDocType | Integer |
Type of document containing the deferral |
| DocumentType | Integer |
Document type ID |
| DocumentNo | Code[20] |
Document number |
| DocNoOcurrence | Integer |
Document number occurrence for archive |
| VersionNo | Integer |
Version number for archive |
| LineNo | Integer |
Line number within the document |