{"title":"Table 290 VAT Amount Line, extension points 29","url":"https://jonas-paprotka.de/ref/table/290-vat-amount-line/points/","author":"JOP-AL","license":"Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-10-05","object":{"type":"table","id":290,"name":"VAT Amount Line","app":"Base Application","url":"https://jonas-paprotka.de/ref/table/290-vat-amount-line/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/table/290-vat-amount-line/source/","path":"src/Layers/W1/BaseApp/Finance/VAT/Calculation/VATAmountLine.Table.al","commit":"4303e5e584d3aa5d9e98cbc615525a5396ad6ed7","lines":"a line is <source url>#L<line>"},"steps":{"event":"[line, \"event\", name, handled]: raises an event of this object; handled 1 when it has an IsHandled parameter","call":"[line, \"call\", name, arguments]: calls a procedure of this object","ext":"[line, \"ext\", type, id, name, arguments]: calls a procedure of another object, through a variable declared with that type","write":"[line, \"write\", table id, method, 1 when called with true]: Insert, Modify, ModifyAll, Delete, DeleteAll or Rename","validate":"[line, \"validate\", table id, field name]","run":"[line, \"run\", type, id]: Codeunit.Run, Page.Run, Report.Run and their kin"},"objects":{"codeunit:6200":{"name":"Non-Deductible VAT","url":"https://jonas-paprotka.de/ref/codeunit/6200-non-deductible-vat/"},"table:4":{"name":"Currency","url":"https://jonas-paprotka.de/ref/table/4-currency/"},"table:290":{"name":"VAT Amount Line","url":"https://jonas-paprotka.de/ref/table/290-vat-amount-line/"},"table:330":{"name":"Currency Exchange Rate","url":"https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/"},"codeunit:398":{"name":"Sales Tax Calculate","url":"https://jonas-paprotka.de/ref/codeunit/398-sales-tax-calculate/"}},"procs":[{"name":"VAT Amount.OnValidate","line":65,"kind":"trigger","steps":[[72,"ext","codeunit",6200,"ValidateVATAmountInVATAmountLine",1]]},{"name":"Invoice Discount Amount.OnValidate","line":127,"kind":"trigger","steps":[[134,"call","CalcLineAmount",0]]},{"name":"Non-Deductible VAT Amount.OnValidate","line":271,"kind":"trigger","steps":[[273,"ext","codeunit",6200,"ValidateNonDeductibleVATInVATAmountLine",1]]},{"name":"CheckVATDifference","line":359,"kind":"procedure","params":2,"steps":[[363,"call","InitGlobals",2],[379,"event","OnAfterCheckVATDifference",0]]},{"name":"InitGlobals","line":382,"kind":"procedure","access":"local","params":2,"steps":[[387,"ext","table",4,"Initialize",1]]},{"name":"InsertLine","line":396,"kind":"procedure","params":0,"steps":[[405,"event","OnInsertLine",1],[412,"validate",290,"Positive"],[413,"event","OnInsertLineOnAfterValidatePositive",0],[426,"ext","codeunit",6200,"Increment",2],[427,"event","OnInsertLineOnBeforeModify",0],[428,"write",290,"Modify"],[431,"event","OnInsertLineOnBeforeInsert",0],[432,"write",290,"Insert"]]},{"name":"VATAmountText","line":454,"kind":"procedure","params":0,"steps":[[468,"call","CopyFromRec",1],[480,"event","OnAfterVATAmountText",0]]},{"name":"GetTotalLineAmount","line":489,"kind":"procedure","params":2,"steps":[[494,"ext","table",4,"Initialize",1]]},{"name":"GetTotalVATAmount","line":514,"kind":"procedure","params":0,"steps":[[519,"event","OnBeforeGetTotalVATAmount",1]]},{"name":"GetTotalInvDiscBaseAmount","line":543,"kind":"procedure","params":2,"steps":[[548,"ext","table",4,"Initialize",1]]},{"name":"GetTotalVATDiscount","line":590,"kind":"procedure","params":2,"steps":[[595,"ext","table",4,"Initialize",1],[602,"call","CalcLineAmount",0],[609,"ext","table",4,"VATRoundingDirection",0],[611,"ext","table",4,"VATRoundingDirection",0]]},{"name":"SetInvoiceDiscountAmount","line":637,"kind":"procedure","params":4,"steps":[[642,"call","InitGlobals",2],[643,"call","GetTotalInvDiscBaseAmount",2],[655,"validate",290,"Invoice Discount Amount"],[657,"call","CalcVATFields",3],[659,"write",290,"Modify"]]},{"name":"SetInvoiceDiscountPercent","line":674,"kind":"procedure","params":5,"steps":[[678,"call","InitGlobals",2],[685,"validate",290,"Invoice Discount Amount"],[687,"call","CalcVATFields",3],[690,"write",290,"Modify"]]},{"name":"GetCalculatedVAT","line":700,"kind":"procedure","access":"local","params":3,"steps":[[702,"call","InitGlobals",2],[707,"call","CalcLineAmount",0],[708,"ext","table",4,"VATRoundingDirection",0],[712,"call","CalcLineAmount",0],[713,"ext","table",4,"VATRoundingDirection",0]]},{"name":"CalcLineAmount","line":720,"kind":"procedure","params":0,"steps":[[724,"event","OnAfterCalcLineAmount",0]]},{"name":"CalcVATFields","line":733,"kind":"procedure","params":3,"steps":[[735,"event","OnBeforeCalcVATFields",0],[736,"call","InitGlobals",2],[738,"call","GetCalculatedVAT",3],[742,"call","CalcLineAmount",0],[746,"call","CalcLineAmount",0],[750,"call","CalcLineAmount",0],[755,"ext","codeunit",6200,"Update",2],[758,"event","OnAfterCalcVATFields",0]]},{"name":"CalcValueLCY","line":761,"kind":"procedure","access":"local","params":4,"steps":[[765,"ext","table",330,"ExchangeAmtFCYToLCY",4]]},{"name":"GetBaseLCY","line":775,"kind":"procedure","params":3,"steps":[[777,"call","CalcValueLCY",4]]},{"name":"GetAmountLCY","line":787,"kind":"procedure","params":3,"steps":[[790,"call","CalcValueLCY",4],[791,"call","CalcValueLCY",4]]},{"name":"DeductVATAmountLine","line":798,"kind":"procedure","params":1,"steps":[[812,"ext","codeunit",6200,"DeductNonDedValuesFromVATAmountLine",2],[813,"event","OnDeductVATAmountLineOnBeforeModify",0],[814,"write",290,"Modify"]]},{"name":"ApplyNonDeductibleVAT","line":819,"kind":"procedure","access":"internal","params":1,"steps":[[824,"event","OnApplyNonDeductibleVATOnBeforeModify",0],[825,"write",290,"Modify"]]},{"name":"UpdateLines","line":840,"kind":"procedure","params":8,"steps":[[848,"event","OnBeforeUpdateLines",1],[860,"event","OnUpdateLinesOnAfterInitPrevVATAmountLine",0],[862,"call","GetVATBaseDiscountPerc",1],[869,"call","CalcLineAmount",0],[870,"event","OnUpdateLinesOnAfterCalcVATBase",0],[875,"call","CalcLineAmount",0],[877,"ext","table",4,"VATRoundingDirection",0],[881,"call","CalcLineAmount",0],[882,"event","OnUpdateLinesOnAfterCalcVATAmount",0],[884,"event","OnUpdateLinesOnAfterCalcAmountIncludingVATNormalVAT",0],[885,"ext","codeunit",6200,"UpdateNonDeductibleAmountsWithDiffInVATAmountLine",2],[891,"call","CalcLineAmount",0],[895,"ext","table",4,"VATRoundingDirection",0],[901,"call","CalcLineAmount",0],[903,"ext","codeunit",6200,"UpdateNonDeductibleAmountsWithDiffInVATAmountLine",2],[907,"call","CalcLineAmount",0],[913,"ext","codeunit",398,"ReverseCalculateTax",7],[916,"event","OnAfterSalesTaxCalculateReverseCalculateTax",0],[929,"call","CalcLineAmount",0],[930,"event","OnUpdateLinesOnAfterCalcVATBase",0],[936,"ext","table",4,"VATRoundingDirection",0],[937,"event","OnUpdateLinesOnAfterCalcVATAmount",0],[938,"call","CalcLineAmount",0],[939,"event","OnUpdateLinesOnAfterCalcAmountIncludingVATNormalVAT",0],[940,"ext","codeunit",6200,"UpdateNonDeductibleAmountsWithDiffInVATAmountLine",2],[948,"event","OnUpdateLinesOnAfterCalcPreVATAmountline",0],[951,"ext","table",4,"VATRoundingDirection",0],[957,"call","CalcLineAmount",0],[959,"ext","codeunit",6200,"UpdateNonDeductibleAmountsWithDiffInVATAmountLine",2],[963,"event","OnUpdateLinesOnBeforeCalcSalesTaxVatBase",0],[964,"call","CalcLineAmount",0],[965,"event","OnUpdateLinesOnAfterCalcVATBaseSalesTax",0],[970,"ext","codeunit",398,"CalculateTax",7],[972,"event","OnAfterSalesTaxCalculateCalculateTax",0],[979,"ext","table",4,"VATRoundingDirection",0],[986,"write",290,"Modify"]]},{"name":"CopyFromRec","line":990,"kind":"procedure","access":"local","params":1,"steps":[[999,"write",290,"Insert"]]},{"name":"CopyFromPurchInvLine","line":1009,"kind":"procedure","params":1,"steps":[[1020,"event","OnCopyFromPurchInvLineOnAfterSetLineAmount",0],[1029,"ext","codeunit",6200,"CopyNonDedVATFromPurchInvLineToVATAmountLine",2],[1031,"event","OnAfterCopyFromPurchInvLine",0]]},{"name":"CopyFromPurchCrMemoLine","line":1038,"kind":"procedure","params":1,"steps":[[1049,"event","OnCopyFromPurchCrMemoLineOnAfterSetLineAmount",0],[1058,"ext","codeunit",6200,"CopyNonDedVATFromPurchCrMemoLineToVATAmountLine",2],[1060,"event","OnAfterCopyFromPurchCrMemoLine",0]]},{"name":"CopyFromSalesInvLine","line":1067,"kind":"procedure","params":1,"steps":[[1086,"event","OnAfterCopyFromSalesInvLine",0]]},{"name":"CopyFromSalesCrMemoLine","line":1093,"kind":"procedure","params":1,"steps":[[1111,"event","OnAfterCopyFromSalesCrMemoLine",0]]},{"name":"GetVATBaseDiscountPerc","line":1114,"kind":"procedure","access":"local","params":1,"steps":[[1119,"event","OnBeforeGetVATBaseDiscountPerc",1]]}]}