{"title":"Table 325 VAT Posting Setup, extension points 29","url":"https://jonas-paprotka.de/ref/table/325-vat-posting-setup/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":325,"name":"VAT Posting Setup","app":"Base Application","url":"https://jonas-paprotka.de/ref/table/325-vat-posting-setup/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/table/325-vat-posting-setup/source/","path":"src/Layers/W1/BaseApp/Finance/VAT/Setup/VATPostingSetup.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:15":{"name":"G/L Account","url":"https://jonas-paprotka.de/ref/table/15-g-l-account/"},"codeunit:48":{"name":"PostingSetupManagement","url":"https://jonas-paprotka.de/ref/codeunit/48-postingsetupmanagement/"},"table:63":{"name":"Account Use Buffer","url":"https://jonas-paprotka.de/ref/table/63-account-use-buffer/"}},"procs":[{"name":"VAT Calculation Type.OnValidate","line":61,"kind":"trigger","steps":[[63,"call","FailIfVATPostingSetupHasVATEntries",0]]},{"name":"VAT %.OnValidate","line":78,"kind":"trigger","steps":[[80,"call","TestNotSalesTax",1],[81,"call","CheckVATIdentifier",0]]},{"name":"Unrealized VAT Type.OnValidate","line":94,"kind":"trigger","steps":[[96,"call","TestNotSalesTax",1],[102,"ext","codeunit",6200,"CheckUnrealizedVATWithNonDeductibleVATInVATPostingSetup",1]]},{"name":"Adjust for Payment Discount.OnValidate","line":114,"kind":"trigger","steps":[[116,"call","TestNotSalesTax",1]]},{"name":"Sales VAT Account.OnValidate","line":133,"kind":"trigger","steps":[[135,"call","TestNotSalesTax",1],[137,"call","CheckGLAcc",1]]},{"name":"Sales VAT Unreal. Account.OnValidate","line":149,"kind":"trigger","steps":[[151,"call","TestNotSalesTax",1],[153,"call","CheckGLAcc",1]]},{"name":"Purchase VAT Account.OnValidate","line":165,"kind":"trigger","steps":[[167,"call","TestNotSalesTax",1],[169,"call","CheckGLAcc",1]]},{"name":"Purch. VAT Unreal. Account.OnValidate","line":181,"kind":"trigger","steps":[[183,"call","TestNotSalesTax",1],[185,"call","CheckGLAcc",1]]},{"name":"Reverse Chrg. VAT Acc..OnValidate","line":197,"kind":"trigger","steps":[[199,"call","TestNotSalesTax",1],[201,"call","CheckGLAcc",1]]},{"name":"Reverse Chrg. VAT Unreal. Acc..OnValidate","line":213,"kind":"trigger","steps":[[215,"call","TestNotSalesTax",1],[217,"call","CheckGLAcc",1]]},{"name":"VAT Identifier.OnValidate","line":228,"kind":"trigger","steps":[[230,"call","GetVATPtc",0],[231,"ext","codeunit",6200,"CheckVATPostingSetupChangeIsAllowed",1]]},{"name":"Non-Deductible VAT %.OnValidate","line":311,"kind":"trigger","steps":[[313,"call","TestNotSalesTax",1],[315,"ext","codeunit",6200,"CheckVATPostingSetupChangeIsAllowed",1]]},{"name":"Non-Ded. Purchase VAT Account.OnValidate","line":327,"kind":"trigger","steps":[[329,"call","TestNotSalesTax",1],[330,"call","CheckGLAcc",1]]},{"name":"Allow Non-Deductible VAT.OnValidate","line":341,"kind":"trigger","steps":[[343,"ext","codeunit",6200,"CheckVATPostingSetupChangeIsAllowed",1]]},{"name":"OnDelete","line":363,"kind":"trigger","steps":[[365,"call","CheckSetupUsage",2]]},{"name":"OnRename","line":368,"kind":"trigger","steps":[[370,"call","CheckSetupUsage",2]]},{"name":"OnInsert","line":373,"kind":"trigger","steps":[[376,"call","GetVATPtc",0]]},{"name":"CheckGLAcc","line":410,"kind":"procedure","params":1,"steps":[[416,"ext","table",15,"CheckGLAcc",0]]},{"name":"CheckSetupUsage","line":420,"kind":"procedure","access":"local","params":2,"steps":[[426,"event","OnBeforeCheckSetupUsage",1]]},{"name":"GetSalesAccount","line":485,"kind":"procedure","params":1,"steps":[[490,"event","OnBeforeGetSalesAccount",1],[496,"ext","codeunit",48,"LogVATPostingSetupFieldError",2],[501,"ext","codeunit",48,"LogVATPostingSetupFieldError",2]]},{"name":"GetPurchAccount","line":512,"kind":"procedure","params":1,"steps":[[517,"event","OnBeforeGetPurchAccount",1],[523,"ext","codeunit",48,"LogVATPostingSetupFieldError",2],[528,"ext","codeunit",48,"LogVATPostingSetupFieldError",2]]},{"name":"GetRevChargeAccount","line":539,"kind":"procedure","params":1,"steps":[[543,"ext","codeunit",48,"LogVATPostingSetupFieldError",2],[548,"ext","codeunit",48,"LogVATPostingSetupFieldError",2]]},{"name":"SuggestSetupAccounts","line":570,"kind":"procedure","params":0,"steps":[[576,"call","SuggestVATAccounts",1]]},{"name":"SuggestVATAccounts","line":583,"kind":"procedure","access":"local","params":1,"steps":[[586,"call","SuggestAccount",2],[588,"call","SuggestAccount",2],[592,"call","SuggestAccount",2],[594,"call","SuggestAccount",2],[599,"call","SuggestAccount",2],[601,"call","SuggestAccount",2]]},{"name":"SuggestAccount","line":605,"kind":"procedure","access":"local","params":2,"steps":[[619,"ext","table",63,"UpdateBuffer",2],[626,"ext","table",63,"UpdateBuffer",2]]}]}