Table "VAT Posting Parameters"
Temporary table storing VAT posting parameters for VAT entry creation during journal line posting. Contains calculated VAT amounts, currency information, and non-deductible VAT details for posting operations.
Remarks
Used internally during posting processes to transfer VAT calculation results. Key integrations: General journal posting, VAT entry creation, non-deductible VAT processing.
Properties
| Name | Value |
|---|---|
| TableType | Temporary |
| DataClassification | CustomerContent |
Fields
| Name | Type | Description |
|---|---|---|
| "Primary Key" | Code[10] | Primary key field for the temporary table record identification. |
| "Full VAT Amount" | Decimal | Total VAT amount including both deductible and non-deductible portions. |
| "Full VAT Amount ACY" | Decimal | Total VAT amount in additional currency including both deductible and non-deductible portions. |
| "Source Currency Code" | Code[10] | Currency code of the source transaction for currency conversion tracking. |
| "Unrealized VAT" | Boolean | Indicates whether the VAT transaction involves unrealized VAT processing. |
| "Deductible VAT Amount" | Decimal | VAT amount that is deductible and can be claimed from tax authorities. |
| "Deductible VAT Amount ACY" | Decimal | Deductible VAT amount in additional currency. |
| "Non-Deductible VAT Amount" | Decimal | VAT amount that is non-deductible and will be added to expense or asset cost. |
| "Non-Deductible VAT Amount ACY" | Decimal | Non-deductible VAT amount in additional currency. |
| "Non-Deductible VAT %" | Decimal | Percentage of VAT that is non-deductible for this transaction. |
| "Non-Ded. Purchase VAT Account" | Code[20] | G/L account for posting non-deductible purchase VAT amounts. |
| SystemId | Guid | |
| SystemCreatedAt | DateTime | |
| SystemCreatedBy | Guid | |
| SystemModifiedAt | DateTime | |
| SystemModifiedBy | Guid | |
| SystemCreatedByUserName | Text[50] | |
| SystemCreatedByFullName | Text[80] | |
| SystemModifiedByUserName | Text[50] | |
| SystemModifiedByFullName | Text[80] | |
| SystemRowVersion | BigInteger |
Methods
InsertRecord
Initializes and inserts VAT posting parameters record with calculated VAT amounts and posting setup information.
procedure InsertRecord(GenJournalLine: Record "Gen. Journal Line"; VATPostingSetup: Record "VAT Posting Setup"; FullVATAmount: Decimal; FullVATAmountACY: Decimal; SrcCurrCode: Code[10]; UnrealizedVAT: Boolean; DeductibleVATAmount: Decimal; DeductibleVATAmountACY: Decimal; NonDeductibleVATAmount: Decimal; NonDeductibleVATAmountACY: Decimal)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
Source general journal line |
| VATPostingSetup | Table Microsoft.Finance.VAT.Setup."VAT Posting Setup" |
VAT posting setup for the transaction |
| FullVATAmount | Decimal |
Complete VAT amount for the transaction |
| FullVATAmountACY | Decimal |
Complete VAT amount in additional currency |
| SrcCurrCode | Code[10] |
Source currency code |
| UnrealizedVAT | Boolean |
Whether transaction uses unrealized VAT |
| DeductibleVATAmount | Decimal |
Deductible portion of VAT amount |
| DeductibleVATAmountACY | Decimal |
Deductible VAT amount in additional currency |
| NonDeductibleVATAmount | Decimal |
Non-deductible portion of VAT amount |
| NonDeductibleVATAmountACY | Decimal |
Non-deductible VAT amount in additional currency |
Events
OnBeforeInsertVATPostingBuffer
Integration event raised before inserting VAT posting buffer record during VAT posting process. Enables custom validation and modification of VAT posting parameters.
[IntegrationEvent(False,False)]
procedure OnBeforeInsertVATPostingBuffer(var VATPostingParameters: Record "VAT Posting Parameters"; GenJournalLine: Record "Gen. Journal Line"; VATPostingSetup: Record "VAT Posting Setup"; FullVATAmount: Decimal; FullVATAmountACY: Decimal; SrcCurrCode: Code[10]; UnrealizedVAT: Boolean; DeductibleVATAmount: Decimal; DeductibleVATAmountACY: Decimal; NonDeductibleVATAmount: Decimal; NonDeductibleVATAmountACY: Decimal; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| VATPostingParameters | Table Microsoft.Finance.VAT.Calculation."VAT Posting Parameters" |
VAT posting parameters being processed |
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
Source general journal line |
| VATPostingSetup | Table Microsoft.Finance.VAT.Setup."VAT Posting Setup" |
VAT posting setup for the transaction |
| FullVATAmount | Decimal |
Complete VAT amount for the transaction |
| FullVATAmountACY | Decimal |
Complete VAT amount in additional currency |
| SrcCurrCode | Code[10] |
Source currency code |
| UnrealizedVAT | Boolean |
Whether transaction uses unrealized VAT |
| DeductibleVATAmount | Decimal |
Deductible portion of VAT amount |
| DeductibleVATAmountACY | Decimal |
Deductible VAT amount in additional currency |
| NonDeductibleVATAmount | Decimal |
Non-deductible portion of VAT amount |
| NonDeductibleVATAmountACY | Decimal |
Non-deductible VAT amount in additional currency |
| IsHandled | Boolean |
Set to true to skip standard VAT posting buffer insertion |