{"title":"Codeunit 37216 PEPPOL30 Sales Validation, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/37216-peppol30-sales-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-11-17","object":{"type":"codeunit","id":37216,"name":"PEPPOL30 Sales Validation","app":"PEPPOL","url":"https://jonas-paprotka.de/ref/codeunit/37216-peppol30-sales-validation/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/37216-peppol30-sales-validation/source/","path":"src/Apps/W1/PEPPOL/App/src/Sales/PEPPOL30SalesValidation.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:37203":{"name":"PEPPOL30 Sales Validation Impl","url":"https://jonas-paprotka.de/ref/codeunit/37203-peppol30-sales-validation-impl/"}},"procs":[{"name":"OnRun","line":15,"kind":"trigger","steps":[[17,"call","ValidateDocument",1],[18,"call","ValidateDocumentLines",1]]},{"name":"ValidateDocument","line":27,"kind":"procedure","params":1,"steps":[[31,"ext","codeunit",37203,"CheckSalesDocument",1]]},{"name":"ValidateDocumentLines","line":39,"kind":"procedure","params":1,"steps":[[43,"ext","codeunit",37203,"CheckSalesDocumentLines",1]]},{"name":"ValidateDocumentLine","line":51,"kind":"procedure","params":1,"steps":[[55,"ext","codeunit",37203,"CheckSalesDocumentLine",1]]},{"name":"ValidatePostedDocument","line":63,"kind":"procedure","params":1,"steps":[[67,"ext","codeunit",37203,"CheckPostedDocument",1]]},{"name":"ValidateLineTypeAndDescription","line":75,"kind":"procedure","params":1,"steps":[[79,"ext","codeunit",37203,"CheckSalesLineTypeAndDescription",1]]},{"name":"CheckCurrencyCode","line":88,"kind":"procedure","params":1,"steps":[[92,"ext","codeunit",37203,"CheckCurrencyCode",1]]},{"name":"CheckCountryRegionCode","line":99,"kind":"procedure","params":1,"steps":[[103,"ext","codeunit",37203,"CheckCountryRegionCode",1]]},{"name":"CheckShipToAddress","line":110,"kind":"procedure","params":1,"steps":[[114,"ext","codeunit",37203,"CheckShipToAddress",1]]},{"name":"CheckTaxCategory","line":121,"kind":"procedure","params":1,"steps":[[125,"ext","codeunit",37203,"CheckTaxCategory",1]]},{"name":"EnsureZeroRate","line":133,"kind":"procedure","params":2,"steps":[[137,"ext","codeunit",37203,"EnsureZeroRate",2]]},{"name":"EnsurePositiveRate","line":145,"kind":"procedure","params":2,"steps":[[149,"ext","codeunit",37203,"EnsurePositiveRate",2]]},{"name":"EnsureSingleOutsideScopeVATBreakdown","line":156,"kind":"procedure","params":1,"steps":[[160,"ext","codeunit",37203,"EnsureSingleOutsideScopeVATBreakdown",1]]},{"name":"RunOnBeforeCheckShipToAddress","line":164,"kind":"procedure","access":"internal","params":2,"steps":[[166,"event","OnBeforeCheckShipToAddress",1]]}]}