{"title":"Codeunit 1620 PEPPOL Validation, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/1620-peppol-validation/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":"codeunit","id":1620,"name":"PEPPOL Validation","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/1620-peppol-validation/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/1620-peppol-validation/source/","path":"src/Layers/W1/BaseApp/Sales/Peppol/PEPPOLValidation.Codeunit.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:1605":{"name":"PEPPOL Management","url":"https://jonas-paprotka.de/ref/codeunit/1605-peppol-management/"},"table:98":{"name":"General Ledger Setup","url":"https://jonas-paprotka.de/ref/table/98-general-ledger-setup/"},"codeunit:27":{"name":"Confirm Management","url":"https://jonas-paprotka.de/ref/codeunit/27-confirm-management/"},"codeunit:2675":{"name":"Allocation Account Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/2675-allocation-account-mgt/"},"table:37":{"name":"Sales Line","url":"https://jonas-paprotka.de/ref/table/37-sales-line/"}},"procs":[{"name":"OnRun","line":30,"kind":"trigger","steps":[[35,"event","OnBeforeOnRun",1],[39,"call","CheckSalesDocument",1],[40,"call","CheckSalesDocumentLines",1]]},{"name":"CheckSalesDocument","line":64,"kind":"procedure","params":1,"steps":[[76,"event","OnBeforeCheckSalesDocument",1],[80,"call","CheckCurrencyCode",1],[97,"call","CheckCountryRegionCode",1],[100,"event","OnCheckSalesDocumentOnBeforeCheckCompanyVATRegNo",1],[109,"call","CheckCountryRegionCode",1],[112,"event","OnCheckSalesDocumentOnBeforeCheckCustomerVATRegNo",1],[128,"event","OnCheckSalesDocumentOnBeforeCheckYourReference",1],[132,"call","CheckShipToAddress",1],[140,"event","OnAfterCheckSalesDocument",0]]},{"name":"CheckSalesDocumentLines","line":147,"kind":"procedure","params":1,"steps":[[155,"call","CheckSalesDocumentLine",1]]},{"name":"CheckSalesDocumentLine","line":163,"kind":"procedure","params":1,"steps":[[172,"event","OnBeforeCheckSalesDocumentLine",1],[184,"ext","codeunit",1605,"GetLineUnitCodeInfo",3],[189,"event","OnCheckSalesDocumentLineOnBeforeCheckEmptyDescription",1],[191,"call","CheckSalesLineTypeAndDescription",1],[196,"ext","table",98,"UseVat",0],[201,"ext","codeunit",27,"GetResponseOrDefault",2]]},{"name":"CheckAllocationAccountExpandedLines","line":206,"kind":"procedure","access":"local","params":1,"steps":[[216,"ext","codeunit",2675,"GenerateAllocationLines",6],[218,"ext","table",37,"GetSalesHeader",0]]},{"name":"CheckSalesInvoice","line":235,"kind":"procedure","params":1,"steps":[[243,"call","CheckSalesDocument",1],[249,"call","CheckSalesDocumentLine",1]]},{"name":"CheckSalesCreditMemo","line":257,"kind":"procedure","params":1,"steps":[[265,"call","CheckSalesDocument",1],[271,"call","CheckSalesDocumentLine",1]]},{"name":"CheckShipToAddress","line":322,"kind":"procedure","access":"local","params":1,"steps":[[327,"event","OnBeforeCheckShipToAddress",1],[335,"call","CheckCountryRegionCode",1]]},{"name":"CheckTaxCategory","line":338,"kind":"procedure","access":"local","params":1,"steps":[[347,"ext","codeunit",1605,"IsStandardVATCategory",1],[349,"ext","codeunit",1605,"IsOutsideScopeVATCategory",1],[354,"ext","codeunit",1605,"IsZeroVatCategory",1]]}]}