Share via


Codeunit "Non-Deductible VAT"

ID 6200
Namespace: Microsoft.Finance.VAT.Calculation

Provides an interface of the Non-Deductible VAT functionality.

Properties

Name Value
Access Public

Methods

IsNonDeductibleVATEnabled

Returns true if the Non-Deductible VAT functionality is enabled

procedure IsNonDeductibleVATEnabled(): Boolean

Returns

Type Description
Boolean

if the feature is fully enabled

ShowNonDeductibleVATInLines

Returns true if Non-Deductible VAT fields must be shown in document lines

procedure ShowNonDeductibleVATInLines(): Boolean

Returns

Type Description
Boolean

If Non-Deductible VAT fields are visible in documents

GetNonDeductibleVATAmount

Returns the non-deductible VAT amount of the current purchase line

procedure GetNonDeductibleVATAmount(PurchaseLine: Record "Purchase Line"): Decimal

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"

Returns

Type Description
Decimal

The non-deductible VAT amount

GetNonDeductibleVATPct

Returns the non-deductible VAT percent for the combination of a VAT Business group, VAT Product group and a certain posting type

procedure GetNonDeductibleVATPct(VATBusPostGroupCode: Code[20], VATProdPostGroupCode: Code[20], GeneralPostingType: Enum "General Posting Type")

Parameters

Name Type Description
VATBusPostGroupCode Code[20]

The VAT business posting group code

VATProdPostGroupCode Code[20]

The VAT product posting group code

GeneralPostingType Enum Microsoft.Foundation.Enums."General Posting Type"

The sales or purchase

GetNonDeductibleVATPct

Returns the non-deductible VAT percent of the current VAT posting setup

procedure GetNonDeductibleVATPct(VATPostingSetup: Record "VAT Posting Setup"): Decimal

Parameters

Name Type Description
VATPostingSetup Table Microsoft.Finance.VAT.Setup."VAT Posting Setup"

The current VAT posting setup

Returns

Type Description
Decimal

The non-deductible VAT percent

GetNonDeductibleVATAmount

Returns the non-deductible VAT amount of the current general journal line

procedure GetNonDeductibleVATAmount(GenJournalLine: Record "Gen. Journal Line"): Decimal

Parameters

Name Type Description
GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"

The current general journal line

Returns

Type Description
Decimal

The non-deductible VAT amount

GetNonDeductibleVATPct

Returns the non-deductible VAT percent for deferrals

procedure GetNonDeductibleVATPct(VATBusPostGroupCode: Code[20], VATProdPostGroupCode: Code[20], DeferralDocType: Enum "Deferral Document Type"): Decimal

Parameters

Name Type Description
VATBusPostGroupCode Code[20]

VAT business posting group code

VATProdPostGroupCode Code[20]

VAT product posting group code

DeferralDocType Enum Microsoft.Finance.Deferral."Deferral Document Type"

Deferral document type

Returns

Type Description
Decimal

The non-deductible VAT percent

GetNonDeductibleVATAccForDeferrals

Returns the Non-Deductible VAT account for deferrals

procedure GetNonDeductibleVATAccForDeferrals(DeferralDocType: Enum "Deferral Document Type", PostingGLAccountNo: Code[20], VATPostingSetup: Record "VAT Posting Setup"): Code[20]

Parameters

Name Type Description
DeferralDocType Enum Microsoft.Finance.Deferral."Deferral Document Type"

Deferral document type

PostingGLAccountNo Code[20]

Default posting G/L account number

VATPostingSetup Table Microsoft.Finance.VAT.Setup."VAT Posting Setup"

VAT Posting Setup

Returns

Type Description
Code[20]

The G/L account number

GetNonDeductibleVATAmountForItemCost

Get the Non-Deductible VAT amount to add to the item cost

procedure GetNonDeductibleVATAmountForItemCost(PurchaseLine: Record "Purchase Line"): Decimal

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"

The current purchase line

Returns

Type Description
Decimal

The Non-Deductible VAT Amount

GetNonDeductibleAmount

Get Non-Deductible VAT amount

procedure GetNonDeductibleAmount(Amount: Decimal, NonDeductiblePercent: Decimal, AmountRoundingPrecision: Decimal, var Rounding: Decimal): Decimal

Parameters

Name Type Description
Amount Decimal

The base amount

NonDeductiblePercent Decimal

The Non-Deductible VAT percent

AmountRoundingPrecision Decimal

Amount rounding precision to apply after multiplication

Rounding Decimal

The remainining rounding difference after multiplication

Returns

Type Description
Decimal

The Non-Deductible VAT Amount

GetNonDeductibleVATBaseBothCurrencies

Returns the non-deductible VAT base from the VAT entry in both LCY and ACY

procedure GetNonDeductibleVATBaseBothCurrencies(var NonDedVATBase: Decimal, var NonDedVATBaseACY: Decimal, VATEntry: Record "VAT Entry")

Parameters

Name Type Description
NonDedVATBase Decimal

The Non-Deductible VAT base

NonDedVATBaseACY Decimal

The Non-Deductible VAT base in additional currency

VATEntry Table Microsoft.Finance.VAT.Ledger."VAT Entry"

The current purchase line

SetNonDeductiblePct

Sets the non-deductible VAT percent in the purchase line

procedure SetNonDeductiblePct(var PurchaseLine: Record "Purchase Line")

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"

The current purchase line

SetNonDedVATAmountInPurchLine

Set the Non-Deductible VAT amount in the purchase line

procedure SetNonDedVATAmountInPurchLine(var PurchaseLine: Record "Purchase Line", NonDeductibleVATAmount: Decimal)

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"

The current purchase line

NonDeductibleVATAmount Decimal

The Non-Deductible VAT amount to set

SetNonDedVATAmountDiffInPurchLine

Set the Non-Deductible VAT difference of the VAT amount line to the purchase line with factor multiplication

procedure SetNonDedVATAmountDiffInPurchLine(var PurchaseLine: Record "Purchase Line", var VATAmountLineRemainder: Record "VAT Amount Line", var VATDifference: Decimal, VATAmountLine: Record "VAT Amount Line", Currency: Record Currency, Part: Decimal, Total: Decimal)

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"

The current purchase line

VATAmountLineRemainder Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"

Remainder from rounding to add to the next line

VATDifference Decimal

The Non-Deductible VAT difference to set

VATAmountLine Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"

The current VAT amount line

Currency Table Microsoft.Finance.Currency.Currency

The currency code of the document

Part Decimal

The numerator for the factor calculation

Total Decimal

The denominator for factor calculation

SetNonDeductibleVATAmount

Set Non-Deductible VAT base in the VAT Entry

procedure SetNonDeductibleVATAmount(var VATEntry: Record "VAT Entry", NonDedVATAmount: Decimal, NonDedVATAmountACY: Decimal)

Parameters

Name Type Description
VATEntry Table Microsoft.Finance.VAT.Ledger."VAT Entry"

The current VAT Entry to be updated

NonDedVATAmount Decimal

Non-Deductible VAT amount

NonDedVATAmountACY Decimal

Non-Deductible VAT amount in additional currency

SetNonDeductibleVATBase

Set Non-Deductible VAT amount in the VAT Entry

procedure SetNonDeductibleVATBase(var VATEntry: Record "VAT Entry", NonDedVATBase: Decimal, NonDedVATBaseACY: Decimal)

Parameters

Name Type Description
VATEntry Table Microsoft.Finance.VAT.Ledger."VAT Entry"

The current VAT Entry to be updated

NonDedVATBase Decimal

Non-Deductible VAT base

NonDedVATBaseACY Decimal

Non-Deductible VAT base in additional currency

SetNonDeductibleVAT

Set Non-Deductible VAT amounts in the invoice posting buffer

procedure SetNonDeductibleVAT(var InvoicePostingBuffer: Record "Invoice Posting Buffer" temporary, TotalNonDedVATBase: Decimal, TotalNonDedVATAmount: Decimal, TotalNonDedVATBaseACY: Decimal, TotalNonDedVATAmountACY: Decimal, TotalNonDedVATDiff: Decimal)

Parameters

Name Type Description
InvoicePostingBuffer Table Microsoft.Finance.ReceivablesPayables."Invoice Posting Buffer"

The current invoice posting buffer to be updated

TotalNonDedVATBase Decimal

Total Non-Deductible VAT base

TotalNonDedVATAmount Decimal

Total Non-Deductible VAT amount

TotalNonDedVATBaseACY Decimal

Total Non-Deductible VAT base in additional currency

TotalNonDedVATAmountACY Decimal

Total Non-Deductible VAT amount in additional currency

TotalNonDedVATDiff Decimal

Total Non-Deductible VAT difference

SetNonDedVATInVATEntry

Set Non-Deductible VAT amounts in the VAT entry

procedure SetNonDedVATInVATEntry(var VATEntry: Record "VAT Entry", NonDedBase: Decimal, NonDedVATAmount: Decimal, SrcCurrNonDedBaseAmount: Decimal, SrcCurrNonDedVATAmount: Decimal, NonDedVATDiff: Decimal, NonDedVATDiffACY: Decimal)

Parameters

Name Type Description
VATEntry Table Microsoft.Finance.VAT.Ledger."VAT Entry"

The current VAT Entry to be updated

NonDedBase Decimal

The Non-Deductible VAT base

NonDedVATAmount Decimal

The Non-Deductible VAT amount

SrcCurrNonDedBaseAmount Decimal

The Non-Deductible VAT base in additional currency

SrcCurrNonDedVATAmount Decimal

The Non-Deductible VAT amount in additional currency

NonDedVATDiff Decimal

The Non-Deductible VAT difference

NonDedVATDiffACY Decimal

The Non-Deductible VAT difference in additional currency

Init

Initialize the Non-Deductible VAT amount from purchase line

procedure Init(var NonDedVATBase: Decimal, var NonDedVATAmount: Decimal, var NonDedVATBaseACY: Decimal, var NonDedVATAmountACY: Decimal, var NonDedVATDiff: Decimal, PurchaseLine: Record "Purchase Line", PurchaseLineACY: Record "Purchase Line")

Parameters

Name Type Description
NonDedVATBase Decimal

Non-Deductible VAT Base

NonDedVATAmount Decimal

Non-Deductible VAT Amount

NonDedVATBaseACY Decimal

Non-Deductible VAT Base in additional currency

NonDedVATAmountACY Decimal

Non-Deductible VAT Amount in additional currency

NonDedVATDiff Decimal

Non-Deductible VAT Difference

PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"

The current purchase line

PurchaseLineACY Table Microsoft.Purchases.Document."Purchase Line"

The current purchase line in additional currency

InitNonDeductibleVATDiff

Clears Non-Deductible VAT difference in the purchase line

procedure InitNonDeductibleVATDiff(var PurchaseLine: Record "Purchase Line")

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"

The current purchase line

Update

Updates the non-deductible VAT base and amount in the purchase line with rounding

procedure Update(var PurchaseLine: Record "Purchase Line", var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary, Currency: Record Currency)

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"

The current purchase line

TempVATAmountLineRemainder Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"

Remainder from rounding to add to the next line

Currency Table Microsoft.Finance.Currency.Currency

The currency code of the purchase document

Update

Updates the non-deductible VAT base and amount in the purchase line

procedure Update(var PurchaseLine: Record "Purchase Line", Currency: Record Currency)

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"

The current purchase line

Currency Table Microsoft.Finance.Currency.Currency

The currency code of the purchase document

Update

Update the non-deductible VAT base and amount in the purchase line with factor multiplication

procedure Update(var PurchaseLine: Record "Purchase Line", Part: Decimal, Total: Decimal, AmountRoundingPrecision: Decimal)

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"

The current purchase line

Part Decimal

The numerator for the factor calculation

Total Decimal

The denominator for factor calculation

AmountRoundingPrecision Decimal

Amount rounding precision to apply after multiplication

Update

Updates total Non-Deductible VAT amounts in the invoice posting buffer

procedure Update(var TotalNonDedVATBase: Decimal, var TotalNonDedVATAmount: Decimal, var TotalNonDedVATBaseACY: Decimal, var TotalNonDedVATAmountACY: Decimal, var TotalNonDedVATDiff: Decimal, InvoicePostingBuffer: Record "Invoice Posting Buffer" temporary)

Parameters

Name Type Description
TotalNonDedVATBase Decimal

Total Non-Deductible VAT base

TotalNonDedVATAmount Decimal

Total Non-Deductible VAT amount

TotalNonDedVATBaseACY Decimal

Total Non-Deductible VAT base in additional currency

TotalNonDedVATAmountACY Decimal

Total Non-Deductible VAT amount in additional currency

TotalNonDedVATDiff Decimal

Total Non-Deductible VAT difference

InvoicePostingBuffer Table Microsoft.Finance.ReceivablesPayables."Invoice Posting Buffer"

The current invoice posting buffer to update totals

Update

Update Non-Deductible VAT amounts in the VAT amount line

procedure Update(var VATAmountLine: Record "VAT Amount Line", Currency: Record Currency)

Parameters

Name Type Description
VATAmountLine Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"

The current VAT amount line

Currency Table Microsoft.Finance.Currency.Currency

The currency code of the document

Update

Update Non-Deductible VAT amounts in the invoice posting buffer with rounding

procedure Update(var InvoicePostingBuffer: Record "Invoice Posting Buffer" temporary, var RemainderInvoicePostingBuffer: Record "Invoice Posting Buffer" temporary, AmountRoundingPrecision: Decimal)

Parameters

Name Type Description
InvoicePostingBuffer Table Microsoft.Finance.ReceivablesPayables."Invoice Posting Buffer"

The current invoice posting buffer

RemainderInvoicePostingBuffer Table Microsoft.Finance.ReceivablesPayables."Invoice Posting Buffer"

Remainder from rounding to add to the next line

AmountRoundingPrecision Decimal

Amount rounding precision to apply for rounding

DivideNonDeductibleVATInPurchaseLine

Divide Non-Deductible VAT amounts of VAT amount line for the purchase line

procedure DivideNonDeductibleVATInPurchaseLine(var PurchaseLine: Record "Purchase Line", var VATAmountLineRemainder: Record "VAT Amount Line", VATAmountLine: Record "VAT Amount Line", Currency: Record Currency, Part: Decimal, Total: Decimal)

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"

The current purchase line

VATAmountLineRemainder Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"

Remainder from rounding to add to the next line

VATAmountLine Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"

The current VAT amount line to divide

Currency Table Microsoft.Finance.Currency.Currency

The currency code of the purchase document

Part Decimal

The numerator for the factor calculation

Total Decimal

The denominator for factor calculation

ValidateVATAmountInVATAmountLine

Update Non-Deductible VAT amounts on VAT amount validation in the VAT amount line

procedure ValidateVATAmountInVATAmountLine(var VATAmountLine: Record "VAT Amount Line")

Parameters

Name Type Description
VATAmountLine Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"

The current VAT amount line

ValidateNonDeductibleVATInVATAmountLine

Update Non-Deductible VAT amounts on Non-Deductible VAT amount validation in the VAT amount line

procedure ValidateNonDeductibleVATInVATAmountLine(var VATAmountLine: Record "VAT Amount Line")

Parameters

Name Type Description
VATAmountLine Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"

The current VAT amount line

UpdateNonDeductibleAmountsWithDiffInVATAmountLine

Update Non-Deductible VAT amounts in the VAT amount line with VAT difference

procedure UpdateNonDeductibleAmountsWithDiffInVATAmountLine(var VATAmountLine: Record "VAT Amount Line", Currency: Record Currency)

Parameters

Name Type Description
VATAmountLine Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"

The current VAT amount line

Currency Table Microsoft.Finance.Currency.Currency

The currency code of the document

GetNonDedVATAmountFromVATAmountLine

Get Non-Deductible VAT Amount from VAT amount line with factor multiplication

procedure GetNonDedVATAmountFromVATAmountLine(var VATAmountLineRemainder: Record "VAT Amount Line", VATAmountLine: Record "VAT Amount Line", Currency: Record Currency, Part: Decimal, Total: Decimal): Decimal

Parameters

Name Type Description
VATAmountLineRemainder Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"

Remainder from rounding to add to the next line

VATAmountLine Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"

The current VAT amount line

Currency Table Microsoft.Finance.Currency.Currency

The currency code of the document

Part Decimal

The numerator for the factor calculation

Total Decimal

The denominator for factor calculation

Returns

Type Description
Decimal

The Non-Deductible VAT Amount

AddNonDedAmountsOfPurchLineToVATAmountLine

Adds the Non-Deductible VAT amounts to the VAT amount line from the purchase line with factor multiplication

procedure AddNonDedAmountsOfPurchLineToVATAmountLine(var VATAmountLine: Record "VAT Amount Line", var VATAmountLineRemainder: Record "VAT Amount Line", PurchaseLine: Record "Purchase Line", Currency: Record Currency, Part: Decimal, Total: Decimal)

Parameters

Name Type Description
VATAmountLine Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"

The current VAT amount line

VATAmountLineRemainder Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"

Remainder from rounding to add to the next line

PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"

The current purchase line

Currency Table Microsoft.Finance.Currency.Currency

The currency code of the document

Part Decimal

The numerator for the factor calculation

Total Decimal

The denominator for factor calculation

CopyNonDedVATFromPurchInvLineToVATAmountLine

Copy Non-Deductible VAT amounts from the purchase invoice line to VAT amount line

procedure CopyNonDedVATFromPurchInvLineToVATAmountLine(var VATAmountLine: Record "VAT Amount Line", PurchInvLine: Record "Purch. Inv. Line")

Parameters

Name Type Description
VATAmountLine Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"

The current VAT amount line

PurchInvLine Table Microsoft.Purchases.History."Purch. Inv. Line"

The current purchase invoice line

CopyNonDedVATFromPurchCrMemoLineToVATAmountLine

Copy Non-Deductible VAT amounts from the purchase credit memo line to VAT amount line

procedure CopyNonDedVATFromPurchCrMemoLineToVATAmountLine(var VATAmountLine: Record "VAT Amount Line", PurchCrMemoLine: Record "Purch. Cr. Memo Line")

Parameters

Name Type Description
VATAmountLine Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"

The current VAT amount line

PurchCrMemoLine Table Microsoft.Purchases.History."Purch. Cr. Memo Line"

The current purchase credit memo line

CopyNonDedVATAmountFromGenJnlLineToGLEntry

Copy Non-Deductible VAT amount from general journal line to G/L entry

procedure CopyNonDedVATAmountFromGenJnlLineToGLEntry(var GLEntry: Record "G/L Entry", GenJournalLine: Record "Gen. Journal Line")

Parameters

Name Type Description
GLEntry Table Microsoft.Finance.GeneralLedger.Ledger."G/L Entry"

The current G/L entry

GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"

The current general journal line

CopyNonDedVATFromGenJnlLineToFALedgEntry

Copy Non-Deductible VAT from general journal line to FA ledger Entry

procedure CopyNonDedVATFromGenJnlLineToFALedgEntry(var FALedgEntry: Record "FA Ledger Entry", GenJnlLine: Record "Gen. Journal Line")

Parameters

Name Type Description
FALedgEntry Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"

The current FA ledger entry

GenJnlLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"

The current general journal line

CopyNonDedVATFromGenJnlLineToJobJnlLine

procedure CopyNonDedVATFromGenJnlLineToJobJnlLine(var JobJnlLine: Record "Job Journal Line", GenJnlLine: Record "Gen. Journal Line")

Parameters

Name Type Description
JobJnlLine Table Microsoft.Projects.Project.Journal."Job Journal Line"
GenJnlLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"

CheckPrepmtWithNonDeductubleVATInPurchaseLine

Throws an error if purchase line contains prepayment and Non-Deductible VAT

procedure CheckPrepmtWithNonDeductubleVATInPurchaseLine(PurchaseLine: Record "Purchase Line")

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"

The current purchase line

CheckPrepmtVATPostingSetup

Throws the error about prepayment not compatible with Non-Deductible VAT if VAT Posting Setup contains Non-Deductible VAT

procedure CheckPrepmtVATPostingSetup(VATPostingSetup: Record "VAT Posting Setup")

Parameters

Name Type Description
VATPostingSetup Table Microsoft.Finance.VAT.Setup."VAT Posting Setup"

CheckUnrealizedVATWithNonDeductibleVATInVATPostingSetup

Throws an error if current VAT posting setup contains unrealized VAT and Non-Deductible VAT

procedure CheckUnrealizedVATWithNonDeductibleVATInVATPostingSetup(VATPostingSetup: Record "VAT Posting Setup")

Parameters

Name Type Description
VATPostingSetup Table Microsoft.Finance.VAT.Setup."VAT Posting Setup"

The current VAT posting setup

CheckVATPostingSetupChangeIsAllowed

Check that a certain change of the VAT Posting Setup is allowed

procedure CheckVATPostingSetupChangeIsAllowed(VATPostingSetup: Record "VAT Posting Setup")

Parameters

Name Type Description
VATPostingSetup Table Microsoft.Finance.VAT.Setup."VAT Posting Setup"

CheckNonDeductibleVATPctIsAllowed

Check that a Non-Deductible VAT % is allowed in the purchase line

procedure CheckNonDeductibleVATPctIsAllowed(PurchaseLine: Record "Purchase Line")

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"

CheckNonDeductibleVATAmountDiff

Throws an error if the total Non-Deductible VAT difference is not allowed

procedure CheckNonDeductibleVATAmountDiff(var TempVATAmountLine: Record "VAT Amount Line" temporary, xTempVATAmountLine: Record "VAT Amount Line" temporary, AllowVATDifference: Boolean, Currency: Record Currency)

Parameters

Name Type Description
TempVATAmountLine Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"
xTempVATAmountLine Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"
AllowVATDifference Boolean
Currency Table Microsoft.Finance.Currency.Currency

DeductNonDedValuesFromVATAmountLine

Deduct the Non-Deductible VAT amounts from the VAT amount line

procedure DeductNonDedValuesFromVATAmountLine(var TotalVATAmountLine: Record "VAT Amount Line", VATAmountLineDeduct: Record "VAT Amount Line")

Parameters

Name Type Description
TotalVATAmountLine Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"

The VAT amount line to be deducted

VATAmountLineDeduct Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"

The VAT amount line to be deducted

Reverse

Reverse the Non-Deductible VAT base and amount in the purchase line

procedure Reverse(var PurchaseLine: Record "Purchase Line")

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"

The current purchase line

Reverse

Reverse the Non-Deductible VAT base and amount in the invoice posting buffer

procedure Reverse(var InvoicePostingBuffer: Record "Invoice Posting Buffer" temporary)

Parameters

Name Type Description
InvoicePostingBuffer Table Microsoft.Finance.ReceivablesPayables."Invoice Posting Buffer"

The current invoice posting buffer

Reverse

Reverse Non-Deductible amount in G/L Entry

procedure Reverse(var GLEntry: Record "G/L Entry", GLEntryToReverse: Record "G/L Entry")

Parameters

Name Type Description
GLEntry Table Microsoft.Finance.GeneralLedger.Ledger."G/L Entry"

The G/L Entry to set the reversed amount

GLEntryToReverse Table Microsoft.Finance.GeneralLedger.Ledger."G/L Entry"

The G/L Entry to take the value from

Reverse

Reverse Non-Deductible amount in the VAT Entry

procedure Reverse(var VATEntry: Record "VAT Entry")

Parameters

Name Type Description
VATEntry Table Microsoft.Finance.VAT.Ledger."VAT Entry"

The VAT Entry to set the reversed amount

Increment

Increment the Non-Deductible VAT amounts in the VAT amount line

procedure Increment(var TotalVATAmountLine: Record "VAT Amount Line", VATAmountLine: Record "VAT Amount Line")

Parameters

Name Type Description
TotalVATAmountLine Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"

The VAT amount line to be incremented

VATAmountLine Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"

The current VAT amount line

Increment

Increment Non-Deductible VAT amounts in the purchase line

procedure Increment(var TotalPurchaseLine: Record "Purchase Line", PurchaseLine: Record "Purchase Line")

Parameters

Name Type Description
TotalPurchaseLine Table Microsoft.Purchases.Document."Purchase Line"

The purchase line to be incremented

PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"

The current purchase line

Increment

Increment Non-Deductible VAT amounts in the invoice posting buffer

procedure Increment(var TotalInvoicePostingBuffer: Record "Invoice Posting Buffer" temporary, InvoicePostingBuffer: Record "Invoice Posting Buffer" temporary)

Parameters

Name Type Description
TotalInvoicePostingBuffer Table Microsoft.Finance.ReceivablesPayables."Invoice Posting Buffer"

The invoice posting buffer to be incremented

InvoicePostingBuffer Table Microsoft.Finance.ReceivablesPayables."Invoice Posting Buffer"

The current invoice posting buffer

IsNonDedFALedgEntryInFirstAcquisition

Identifies if the current FA ledger entry is a Non-Deductible VAT entry in the first acquisition

procedure IsNonDedFALedgEntryInFirstAcquisition(FALedgEntry: Record "FA Ledger Entry"): Boolean

Parameters

Name Type Description
FALedgEntry Table Microsoft.FixedAssets.Ledger."FA Ledger Entry"

Returns

Type Description
Boolean

Returns true if the current FA ledger entry is a Non-Deductible VAT entry in the first acquisition

RoundNonDeductibleVAT

Round Non-Deductible VAT amounts after exchanging to the local currency

procedure RoundNonDeductibleVAT(PurchaseHeader: Record "Purchase Header", var PurchaseLine: Record "Purchase Line", TotalPurchaseLine: Record "Purchase Line", TotalPurchaseLineLCY: Record "Purchase Line")

Parameters

Name Type Description
PurchaseHeader Table Microsoft.Purchases.Document."Purchase Header"

The current purchase header

PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"

The current purchase line

TotalPurchaseLine Table Microsoft.Purchases.Document."Purchase Line"

The total purchase line with remainders

TotalPurchaseLineLCY Table Microsoft.Purchases.Document."Purchase Line"

The total purchase line in additional curency with remainders

ClearNonDeductibleVAT

Clear Non-Deductible VAT in the purchase line

procedure ClearNonDeductibleVAT(var PurchaseLine: Record "Purchase Line")

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"

The current purchase line

ClearNonDeductibleVAT

Clear Non-Deductible VAT in the invoice posting buffer

procedure ClearNonDeductibleVAT(var InvoicePostingBuffer: Record "Invoice Posting Buffer" temporary)

Parameters

Name Type Description
InvoicePostingBuffer Table Microsoft.Finance.ReceivablesPayables."Invoice Posting Buffer"

The current invoice posting buffer

ClearNonDedVATACYInVATEntry

Clear Non-Deductible VAT amounts in additional currency in VAT entry

procedure ClearNonDedVATACYInVATEntry(var VATEntry: Record "VAT Entry")

Parameters

Name Type Description
VATEntry Table Microsoft.Finance.VAT.Ledger."VAT Entry"

The current VAT entry

ValidateNonDedVATPctInGenJnlLine

Validate the Non-Deductible VAT percent in the general journal line

procedure ValidateNonDedVATPctInGenJnlLine(var GenJournalLine: Record "Gen. Journal Line")

Parameters

Name Type Description
GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"

The current general journal line

ValidateBalNonDedVATPctInGenJnlLine

Validate the Non-Deductible VAT percent in the general journal line for the balance account

procedure ValidateBalNonDedVATPctInGenJnlLine(var GenJournalLine: Record "Gen. Journal Line")

Parameters

Name Type Description
GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"

The current general journal line

Calculate

Calculate Non-Deductible VAT amounts in the general journal line

procedure Calculate(var GenJournalLine: Record "Gen. Journal Line", Currency: Record Currency)

Parameters

Name Type Description
GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"

The current journal line

Currency Table Microsoft.Finance.Currency.Currency

The currency code of the document

CalculateBalAcc

Calculate Non-Deductible VAT amounts in the general journal line for the balance account

procedure CalculateBalAcc(var GenJournalLine: Record "Gen. Journal Line", Currency: Record Currency)

Parameters

Name Type Description
GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"

The current journal line

Currency Table Microsoft.Finance.Currency.Currency

The currency code of the document

Calculate

Calculate Non-Deductible VAT amounts in the invoice posting buffer

procedure Calculate(var InvoicePostingBuffer: Record "Invoice Posting Buffer" temporary)

Parameters

Name Type Description
InvoicePostingBuffer Table Microsoft.Finance.ReceivablesPayables."Invoice Posting Buffer"

The current invoice posting buffer

Calculate

Calculate Non-Deductible VAT per unit

procedure Calculate(var NonDeductibleBaseAmount: Decimal, var NonDeductibleVATAmount: Decimal, var NonDeductibleVATAmtPerUnit: Decimal, var NonDeductibleVATAmtPerUnitLCY: Decimal, var NDVATAmountRounding: Decimal, var NDVATBaseRounding: Decimal, PurchHeader: Record "Purchase Header", PurchaseLine: Record "Purchase Line")

Parameters

Name Type Description
NonDeductibleBaseAmount Decimal

The calculated total Non-Deductible base

NonDeductibleVATAmount Decimal

The calculated total Non-Deductible amount

NonDeductibleVATAmtPerUnit Decimal

The calculated Non-Deductible VAT amount per unit

NonDeductibleVATAmtPerUnitLCY Decimal

The calculated Non-Deductible VAT amount per unit in local currency

NDVATAmountRounding Decimal

The remaining rounding difference of Non-Deductible VAT amount

NDVATBaseRounding Decimal

The remaining rounding difference of Non-Deductible VAT base

PurchHeader Table Microsoft.Purchases.Document."Purchase Header"

The current purchase header

PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"

The current purchase line with LCY amounts

Copy

Copy Non-Deductible VAT from the purchase line to the invoice posting buffer

procedure Copy(var InvoicePostingBuffer: Record "Invoice Posting Buffer" temporary, PurchaseLine: Record "Purchase Line")

Parameters

Name Type Description
InvoicePostingBuffer Table Microsoft.Finance.ReceivablesPayables."Invoice Posting Buffer"

The current invoice posting buffer

PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"

The current purchase line

Copy

Copy Non-Deductible VAT from the general journal line to the VAT Entry

procedure Copy(var VATEntry: Record "VAT Entry", GenJournalLine: Record "Gen. Journal Line")

Parameters

Name Type Description
VATEntry Table Microsoft.Finance.VAT.Ledger."VAT Entry"

The current VAT Entry

GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"

The current general journal line

Copy

Copy Non-Deductible VAT from the invoice posting buffer to the general journal line

procedure Copy(var GenJournalLine: Record "Gen. Journal Line", InvoicePostingBuffer: Record "Invoice Posting Buffer" temporary)

Parameters

Name Type Description
GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"

The current general journal line

InvoicePostingBuffer Table Microsoft.Finance.ReceivablesPayables."Invoice Posting Buffer"

The current invoice posting buffer

ExchangeAccGLJournalLine

Exchange Non-Deductible VAT fields with the balance side in general journaal line

procedure ExchangeAccGLJournalLine(var GenJournalLine: Record "Gen. Journal Line", CopiedGenJournalLine: Record "Gen. Journal Line")

Parameters

Name Type Description
GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"

The current general journal line

CopiedGenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"

The current general journal line

AdjustVATAmountsFromGenJnlLine

Adjust VAT amounts with Non-Deductible VAT from general journal line

procedure AdjustVATAmountsFromGenJnlLine(var VATAmount: Decimal, var BaseAmount: Decimal, var VATAmountACY: Decimal, var BaseAmountACY: Decimal, var GenJournalLine: Record "Gen. Journal Line")

Parameters

Name Type Description
VATAmount Decimal

The VAT amount to be adjusted

BaseAmount Decimal

The VAT base to be adjusted

VATAmountACY Decimal

The VAT amount in additional currency to be adjusted

BaseAmountACY Decimal

The VAT base in additional currency to be adjusted

GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"

The current general journal line

AdjustRoundingForInvoicePostingBufferUpdate

Adjust rounding for invoice posting buffer

procedure AdjustRoundingForInvoicePostingBufferUpdate(var RoundingInvoicePostingBuffer: Record "Invoice Posting Buffer" temporary, var CurrInvoicePostingBuffer: Record "Invoice Posting Buffer" temporary)

Parameters

Name Type Description
RoundingInvoicePostingBuffer Table Microsoft.Finance.ReceivablesPayables."Invoice Posting Buffer"

The invoice posting buffer for rounding

CurrInvoicePostingBuffer Table Microsoft.Finance.ReceivablesPayables."Invoice Posting Buffer"

The current invoice posting buffer

UseNonDeductibleVATAmountForFixedAssetCost

Returns true if the Non-Deductible VAT amount must be added to the fixed asset cost

procedure UseNonDeductibleVATAmountForFixedAssetCost(): Boolean

Returns

Type Description
Boolean

If the Non-Deductible amount must be added to the fixed asset cost

UseNonDeductibleVATAmountForJobCost

Returns true if the Non-Deductible VAT amount must be added to the job cost

procedure UseNonDeductibleVATAmountForJobCost(): Boolean

Returns

Type Description
Boolean

If the Non-Deductible amount must be added to the job cost

ApplyRoundingForFinalPostingFromInvoicePostingBuffer

Apply rounding for the final posting from the invoice posting buffer

procedure ApplyRoundingForFinalPostingFromInvoicePostingBuffer(var RoundingInvoicePostingBuffer: Record "Invoice Posting Buffer" temporary, var CurrInvoicePostingBuffer: Record "Invoice Posting Buffer" temporary)

Parameters

Name Type Description
RoundingInvoicePostingBuffer Table Microsoft.Finance.ReceivablesPayables."Invoice Posting Buffer"

The invoice posting buffer for rounding

CurrInvoicePostingBuffer Table Microsoft.Finance.ReceivablesPayables."Invoice Posting Buffer"

The current invoice posting buffer

Events

OnBeforeGetNonDeductibleVATPctForPurchLine

[IntegrationEvent(False,False)]
internal procedure OnBeforeGetNonDeductibleVATPctForPurchLine(var NonDeductibleVATPct: Decimal, PurchaseLine: Record "Purchase Line", var IsHandled: Boolean)

Parameters

Name Type Description
NonDeductibleVATPct Decimal
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
IsHandled Boolean

OnBeforeGetNonDedVATPctForGenJnlLine

[IntegrationEvent(False,False)]
internal procedure OnBeforeGetNonDedVATPctForGenJnlLine(var NonDeductibleVATPct: Decimal, GenJournalLine: Record "Gen. Journal Line", var IsHandled: Boolean)

Parameters

Name Type Description
NonDeductibleVATPct Decimal
GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"
IsHandled Boolean

OnBeforeGetBalNonDedVATPctForGenJnlLine

[IntegrationEvent(False,False)]
internal procedure OnBeforeGetBalNonDedVATPctForGenJnlLine(var NonDeductibleVATPct: Decimal, GenJournalLine: Record "Gen. Journal Line", var IsHandled: Boolean)

Parameters

Name Type Description
NonDeductibleVATPct Decimal
GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"
IsHandled Boolean

OnBeforeGetNonDeductibleVATPctForDeferrals

[IntegrationEvent(False,False)]
internal procedure OnBeforeGetNonDeductibleVATPctForDeferrals(var NonDeductibleVATPct: Decimal, VATBusPostGroupCode: Code[20], VATProdPostGroupCode: Code[20], DeferralDocType: Enum "Deferral Document Type", var IsHandled: Boolean)

Parameters

Name Type Description
NonDeductibleVATPct Decimal
VATBusPostGroupCode Code[20]
VATProdPostGroupCode Code[20]
DeferralDocType Enum Microsoft.Finance.Deferral."Deferral Document Type"
IsHandled Boolean

OnBeforeCalcNonDedAmountsInGenJnlLine

[IntegrationEvent(False,False)]
internal procedure OnBeforeCalcNonDedAmountsInGenJnlLine(var GenJournalLine: Record "Gen. Journal Line", Currency: Record Currency, var IsHandled: Boolean)

Parameters

Name Type Description
GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"
Currency Table Microsoft.Finance.Currency.Currency
IsHandled Boolean

OnBeforeCalcBalNonDedAmountsInGenJnlLine

[IntegrationEvent(False,False)]
internal procedure OnBeforeCalcBalNonDedAmountsInGenJnlLine(var GenJournalLine: Record "Gen. Journal Line", Currency: Record Currency, var IsHandled: Boolean)

Parameters

Name Type Description
GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"
Currency Table Microsoft.Finance.Currency.Currency
IsHandled Boolean

OnBeforeGetNonDeductibleVATPct

[IntegrationEvent(False,False)]
internal procedure OnBeforeGetNonDeductibleVATPct(var NonDeductibleVATPct: Decimal, VATPostingSetup: Record "VAT Posting Setup", GeneralPostingType: Enum "General Posting Type", var IsHandled: Boolean)

Parameters

Name Type Description
NonDeductibleVATPct Decimal
VATPostingSetup Table Microsoft.Finance.VAT.Setup."VAT Posting Setup"
GeneralPostingType Enum Microsoft.Foundation.Enums."General Posting Type"
IsHandled Boolean

OnBeforeUpdateNonDeductibleAmountsWithRoundingInPurchLine

[IntegrationEvent(False,False)]
internal procedure OnBeforeUpdateNonDeductibleAmountsWithRoundingInPurchLine(var PurchaseLine: Record "Purchase Line", var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary, Currency: Record Currency, var IsHandled: Boolean)

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
TempVATAmountLineRemainder Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"
Currency Table Microsoft.Finance.Currency.Currency
IsHandled Boolean

OnBeforeUpdateNonDeductibleAmountsInPurchLine

[IntegrationEvent(False,False)]
internal procedure OnBeforeUpdateNonDeductibleAmountsInPurchLine(var PurchaseLine: Record "Purchase Line", Currency: Record Currency, var IsHandled: Boolean)

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
Currency Table Microsoft.Finance.Currency.Currency
IsHandled Boolean

OnBeforeUpdateNonDeductibleAmountsWithFactorInPurchLine

[IntegrationEvent(False,False)]
internal procedure OnBeforeUpdateNonDeductibleAmountsWithFactorInPurchLine(var PurchaseLine: Record "Purchase Line", Part: Decimal, Total: Decimal, AmountRoundingPrecision: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
Part Decimal
Total Decimal
AmountRoundingPrecision Decimal
IsHandled Boolean

OnBeforeDivideNonDeductibleVATInPurchaseLine

[IntegrationEvent(False,False)]
internal procedure OnBeforeDivideNonDeductibleVATInPurchaseLine(var PurchaseLine: Record "Purchase Line", var VATAmountLineRemainder: Record "VAT Amount Line", VATAmountLine: Record "VAT Amount Line", Currency: Record Currency, Part: Decimal, Total: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
VATAmountLineRemainder Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"
VATAmountLine Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"
Currency Table Microsoft.Finance.Currency.Currency
Part Decimal
Total Decimal
IsHandled Boolean

OnBeforeValidateVATAmountInVATAmountLine

[IntegrationEvent(False,False)]
internal procedure OnBeforeValidateVATAmountInVATAmountLine(var VATAmountLine: Record "VAT Amount Line", var IsHandled: Boolean)

Parameters

Name Type Description
VATAmountLine Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"
IsHandled Boolean

OnBeforeValidateNonDeductibleVATInVATAmountLine

[IntegrationEvent(False,False)]
internal procedure OnBeforeValidateNonDeductibleVATInVATAmountLine(var VATAmountLine: Record "VAT Amount Line", var IsHandled: Boolean)

Parameters

Name Type Description
VATAmountLine Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"
IsHandled Boolean

OnBeforeUpdateNonDeductibleAmountsInVATAmountLine

[IntegrationEvent(False,False)]
internal procedure OnBeforeUpdateNonDeductibleAmountsInVATAmountLine(var VATAmountLine: Record "VAT Amount Line", Currency: Record Currency, var IsHandled: Boolean)

Parameters

Name Type Description
VATAmountLine Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"
Currency Table Microsoft.Finance.Currency.Currency
IsHandled Boolean

OnBeforeUpdateNonDeductibleAmountsWithDiffInVATAmountLine

[IntegrationEvent(False,False)]
internal procedure OnBeforeUpdateNonDeductibleAmountsWithDiffInVATAmountLine(var VATAmountLine: Record "VAT Amount Line", Currency: Record Currency, var IsHandled: Boolean)

Parameters

Name Type Description
VATAmountLine Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"
Currency Table Microsoft.Finance.Currency.Currency
IsHandled Boolean

OnBeforeAdjustVATAmountsFromGenJnlLine

[IntegrationEvent(False,False)]
internal procedure OnBeforeAdjustVATAmountsFromGenJnlLine(var VATAmount: Decimal, var BaseAmount: Decimal, var VATAmountACY: Decimal, var BaseAmountACY: Decimal, var GenJournalLine: Record "Gen. Journal Line", var IsHandled: Boolean)

Parameters

Name Type Description
VATAmount Decimal
BaseAmount Decimal
VATAmountACY Decimal
BaseAmountACY Decimal
GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"
IsHandled Boolean

OnBeforeSetNonDedVATAmountInPurchLine

[IntegrationEvent(False,False)]
internal procedure OnBeforeSetNonDedVATAmountInPurchLine(var PurchaseLine: Record "Purchase Line", NonDeductibleVATAmount: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
NonDeductibleVATAmount Decimal
IsHandled Boolean

OnBeforeSetNonDedVATAmountDiffInPurchLine

[IntegrationEvent(False,False)]
internal procedure OnBeforeSetNonDedVATAmountDiffInPurchLine(var PurchaseLine: Record "Purchase Line", var VATAmountLineRemainder: Record "VAT Amount Line", var VATDifference: Decimal, VATAmountLine: Record "VAT Amount Line", Currency: Record Currency, Part: Decimal, Total: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
VATAmountLineRemainder Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"
VATDifference Decimal
VATAmountLine Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"
Currency Table Microsoft.Finance.Currency.Currency
Part Decimal
Total Decimal
IsHandled Boolean

OnBeforeGetNonDedVATAmountFromVATAmountLine

[IntegrationEvent(False,False)]
internal procedure OnBeforeGetNonDedVATAmountFromVATAmountLine(var NonDeductibleVATAmount: Decimal, var VATAmountLineRemainder: Record "VAT Amount Line", VATAmountLine: Record "VAT Amount Line", Currency: Record Currency, Part: Decimal, Total: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
NonDeductibleVATAmount Decimal
VATAmountLineRemainder Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"
VATAmountLine Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"
Currency Table Microsoft.Finance.Currency.Currency
Part Decimal
Total Decimal
IsHandled Boolean

OnBeforeAddNonDedAmountsOfPurchLineToVATAmountLine

[IntegrationEvent(False,False)]
internal procedure OnBeforeAddNonDedAmountsOfPurchLineToVATAmountLine(var VATAmountLine: Record "VAT Amount Line", var VATAmountLineRemainder: Record "VAT Amount Line", PurchaseLine: Record "Purchase Line", Currency: Record Currency, Part: Decimal, Total: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
VATAmountLine Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"
VATAmountLineRemainder Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
Currency Table Microsoft.Finance.Currency.Currency
Part Decimal
Total Decimal
IsHandled Boolean

OnBeforeCopyNonDedVATFromPurchInvLineToVATAmountLine

[IntegrationEvent(False,False)]
internal procedure OnBeforeCopyNonDedVATFromPurchInvLineToVATAmountLine(var VATAmountLine: Record "VAT Amount Line", PurchInvLine: Record "Purch. Inv. Line", var IsHandled: Boolean)

Parameters

Name Type Description
VATAmountLine Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"
PurchInvLine Table Microsoft.Purchases.History."Purch. Inv. Line"
IsHandled Boolean

OnBeforeCopyNonDedVATFromPurchCrMemoLineToVATAmountLine

[IntegrationEvent(False,False)]
internal procedure OnBeforeCopyNonDedVATFromPurchCrMemoLineToVATAmountLine(var VATAmountLine: Record "VAT Amount Line", PurchCrMemoLine: Record "Purch. Cr. Memo Line", var IsHandled: Boolean)

Parameters

Name Type Description
VATAmountLine Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"
PurchCrMemoLine Table Microsoft.Purchases.History."Purch. Cr. Memo Line"
IsHandled Boolean

OnBeforeCheckVATPostingSetupChangeIsAllowed

[IntegrationEvent(False,False)]
internal procedure OnBeforeCheckVATPostingSetupChangeIsAllowed(VATPostingSetup: Record "VAT Posting Setup", var IsHandled: Boolean)

Parameters

Name Type Description
VATPostingSetup Table Microsoft.Finance.VAT.Setup."VAT Posting Setup"
IsHandled Boolean

OnBeforeCheckNonDeductibleVATPctIsAllowed

[IntegrationEvent(False,False)]
internal procedure OnBeforeCheckNonDeductibleVATPctIsAllowed(PurchaseLine: Record "Purchase Line", var IsHandled: Boolean)

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
IsHandled Boolean

See also