{"title":"Codeunit 37201 PEPPOL30 Impl., extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/37201-peppol30-impl/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":37201,"name":"PEPPOL30 Impl.","app":"PEPPOL","url":"https://jonas-paprotka.de/ref/codeunit/37201-peppol30-impl/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/37201-peppol30-impl/source/","path":"src/Apps/W1/PEPPOL/App/src/Common/PEPPOL30Impl.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:8703":{"name":"Feature Telemetry","url":"https://jonas-paprotka.de/ref/codeunit/8703-feature-telemetry/"},"codeunit:4100":{"name":"Temp Blob","url":"https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/"},"table:1173":{"name":"Document Attachment","url":"https://jonas-paprotka.de/ref/table/1173-document-attachment/"},"codeunit:4110":{"name":"Base64 Convert","url":"https://jonas-paprotka.de/ref/codeunit/4110-base64-convert/"},"table:77":{"name":"Report Selections","url":"https://jonas-paprotka.de/ref/table/77-report-selections/"},"table:79":{"name":"Company Information","url":"https://jonas-paprotka.de/ref/table/79-company-information/"},"table:290":{"name":"VAT Amount Line","url":"https://jonas-paprotka.de/ref/table/290-vat-amount-line/"},"table:36":{"name":"Sales Header","url":"https://jonas-paprotka.de/ref/table/36-sales-header/"},"table:18":{"name":"Customer","url":"https://jonas-paprotka.de/ref/table/18-customer/"},"table:3":{"name":"Payment Terms","url":"https://jonas-paprotka.de/ref/table/3-payment-terms/"},"table:324":{"name":"VAT Product Posting Group","url":"https://jonas-paprotka.de/ref/table/324-vat-product-posting-group/"},"table:37":{"name":"Sales Line","url":"https://jonas-paprotka.de/ref/table/37-sales-line/"},"table:39":{"name":"Purchase Line","url":"https://jonas-paprotka.de/ref/table/39-purchase-line/"}},"procs":[{"name":"GetGeneralInfo","line":109,"kind":"procedure","params":12,"steps":[[114,"ext","codeunit",8703,"LogUsage",3],[114,"call","GetPeppolTelemetryTok",0],[119,"call","GetInvoiceTypeCode",0],[120,"call","GetUNCL1001ListID",0],[125,"call","GetSalesDocCurrencyCode",1],[126,"call","GetISO4217ListID",0],[128,"call","GetISO4217ListID",0]]},{"name":"GetGeneralInfoBIS","line":132,"kind":"procedure","params":8,"steps":[[136,"call","GetInvoiceTypeCode",0],[139,"call","GetSalesDocCurrencyCode",1]]},{"name":"GetContractDocRefInfo","line":161,"kind":"procedure","params":5,"steps":[[165,"call","GetUNCL1001ListID",0]]},{"name":"GetAdditionalDocRefInfo","line":169,"kind":"procedure","params":10,"steps":[[186,"ext","codeunit",4100,"CreateOutStream",1],[187,"ext","table",1173,"ExportToStream",1],[188,"ext","codeunit",4100,"CreateInStream",1],[192,"ext","codeunit",4110,"ToBase64",1]]},{"name":"GeneratePDFAttachmentAsAdditionalDocRef","line":241,"kind":"procedure","params":7,"steps":[[253,"call","GeneratePDFAsTempBlob",2],[258,"ext","codeunit",4110,"ToBase64",1],[258,"ext","codeunit",4100,"CreateInStream",0]]},{"name":"GeneratePDFAsTempBlob","line":262,"kind":"procedure","access":"local","params":2,"steps":[[274,"ext","table",77,"GetPdfReportForCust",4],[281,"ext","table",77,"GetPdfReportForCust",4],[285,"ext","codeunit",4100,"HasValue",0]]},{"name":"GeneratePDFAsTempBlob","line":288,"kind":"procedure","access":"local","params":2,"steps":[[300,"ext","table",77,"GetPdfReportForVend",4],[308,"ext","table",77,"GetPdfReportForVend",4],[310,"ext","table",77,"GetPdfReportForVend",4],[317,"ext","table",77,"GetPdfReportForVend",4],[321,"ext","codeunit",4100,"HasValue",0]]},{"name":"GetAccountingSupplierPartyInfo","line":324,"kind":"procedure","params":3,"steps":[[326,"call","GetAccountingSupplierPartyInfoByFormat",4]]},{"name":"GetAccountingSupplierPartyInfoBIS","line":329,"kind":"procedure","params":3,"steps":[[331,"call","GetAccountingSupplierPartyInfoByFormat",4]]},{"name":"GetAccountingSupplierPartyInfoByFormat","line":348,"kind":"procedure","access":"local","params":4,"steps":[[355,"call","GetGLNSchemeIDByFormat",1],[357,"ext","table",79,"GetVATRegistrationNumber",0],[361,"call","UseVATSchemeID",1],[362,"ext","table",79,"FormatVATRegistrationNo",2],[364,"call","GetVATScheme",1]]},{"name":"GetAccountingSupplierPartyPostalAddr","line":370,"kind":"procedure","params":8,"steps":[[392,"call","GetCountryISOCode",1],[393,"call","GetISO3166_1Alpha2",0]]},{"name":"GetAccountingSupplierPartyTaxScheme","line":396,"kind":"procedure","params":3,"steps":[[401,"ext","table",79,"FormatVATRegistrationNo",2],[401,"ext","table",79,"GetVATRegistrationNumber",0],[402,"call","GetVATScheme",1]]},{"name":"GetSellerSupplierPartyTaxScheme","line":418,"kind":"procedure","params":4,"steps":[[420,"call","FormatSelfBilledVendorVATRegistrationNo",2],[421,"call","GetVATSchemeByFormat",2]]},{"name":"GetTaxTotalInfo","line":431,"kind":"procedure","params":4,"steps":[[435,"call","GetPurchaseDocCurrencyCode",1]]},{"name":"GetTaxSubtotalInfo","line":442,"kind":"procedure","params":12,"steps":[[447,"call","GetPurchaseDocCurrencyCode",1],[449,"call","GetPurchaseDocCurrencyCode",1],[451,"call","GetPurchaseDocCurrencyCode",1],[454,"ext","table",290,"GetAmountLCY",3],[456,"call","GetPurchaseDocCurrencyCode",1]]},{"name":"GetAccountingSupplierPartyTaxSchemeBIS","line":466,"kind":"procedure","params":4,"steps":[[468,"call","GetTaxCategoryO",0],[470,"call","GetAccountingSupplierPartyTaxScheme",3]]},{"name":"GetAccountingSupplierPartyLegalEntity","line":476,"kind":"procedure","params":6,"steps":[[478,"call","GetAccountingSupplierPartyLegalEntityByFormat",7]]},{"name":"GetAccountingSupplierPartyLegalEntityBIS","line":483,"kind":"procedure","params":6,"steps":[[485,"call","GetAccountingSupplierPartyLegalEntityByFormat",7]]},{"name":"GetAccountingSupplierPartyLegalEntityByFormat","line":490,"kind":"procedure","access":"local","params":7,"steps":[[499,"call","GetGLNSchemeIDByFormat",1],[501,"ext","table",79,"GetVATRegistrationNumber",0],[505,"call","UseVATSchemeID",1],[506,"ext","table",79,"FormatVATRegistrationNo",2],[508,"call","GetVATSchemeByFormat",2],[512,"call","GetCountryISOCode",1],[513,"call","GetISO3166_1Alpha2",0]]},{"name":"GetAccountingSupplierPartyContact","line":516,"kind":"procedure","params":6,"steps":[[522,"call","GetSalesperson",2]]},{"name":"GetAccountingCustomerPartyInfo","line":535,"kind":"procedure","params":6,"steps":[[537,"call","GetAccountingCustomerPartyInfoByFormat",7]]},{"name":"GetAccountingCustomerPartyInfoBIS","line":542,"kind":"procedure","params":6,"steps":[[544,"call","GetAccountingCustomerPartyInfoByFormat",7]]},{"name":"GetAccountingCustomerPartyInfoByFormat","line":562,"kind":"procedure","access":"local","params":7,"steps":[[569,"call","GetGLNSchemeIDByFormat",1],[571,"ext","table",36,"GetCustomerVATRegistrationNumber",0],[575,"call","UseVATSchemeID",1],[576,"ext","table",18,"FormatVATRegistrationNo",2],[578,"call","GetVATScheme",1],[582,"call","GetGLNSchemeIDByFormat",1]]},{"name":"GetAccountingCustomerPartyPostalAddr","line":586,"kind":"procedure","params":8,"steps":[[593,"call","GetCountryISOCode",1],[594,"call","GetISO3166_1Alpha2",0]]},{"name":"GetAccountingCustomerPartyTaxScheme","line":597,"kind":"procedure","params":4,"steps":[[599,"call","GetAccountingCustomerPartyTaxSchemeByFormat",5]]},{"name":"GetAccountingCustomerPartyTaxSchemeBIS","line":603,"kind":"procedure","params":4,"steps":[[605,"call","GetAccountingCustomerPartyTaxSchemeByFormat",5]]},{"name":"GetAccountingCustomerPartyTaxSchemeBIS30","line":617,"kind":"procedure","params":5,"steps":[[619,"call","GetTaxCategoryO",0],[621,"call","GetAccountingCustomerPartyTaxSchemeByFormat",5]]},{"name":"GetAccountingCustomerPartyTaxSchemeByFormat","line":625,"kind":"procedure","access":"local","params":5,"steps":[[630,"ext","table",18,"FormatVATRegistrationNo",2],[630,"ext","table",36,"GetCustomerVATRegistrationNumber",0],[632,"ext","table",36,"GetCustomerVATRegistrationNumber",0],[636,"call","GetVATSchemeByFormat",2]]},{"name":"GetAccountingCustomerPartyLegalEntity","line":640,"kind":"procedure","params":4,"steps":[[642,"call","GetAccountingCustomerPartyLegalEntityByFormat",5]]},{"name":"GetAccountingCustomerPartyLegalEntityBIS","line":646,"kind":"procedure","params":4,"steps":[[648,"call","GetAccountingCustomerPartyLegalEntityByFormat",5]]},{"name":"GetAccountingCustomerPartyLegalEntityByFormat","line":652,"kind":"procedure","access":"local","params":5,"steps":[[660,"call","GetGLNSchemeIDByFormat",1],[662,"ext","table",36,"GetCustomerVATRegistrationNumber",0],[666,"call","UseVATSchemeID",1],[667,"ext","table",18,"FormatVATRegistrationNo",2],[669,"call","GetVATSchemeByFormat",2]]},{"name":"GetPayeePartyInfo","line":691,"kind":"procedure","params":5,"steps":[[700,"ext","table",79,"GetVATRegistrationNumber",0],[701,"call","GetVATScheme",1]]},{"name":"GetGLNDeliveryInfo","line":719,"kind":"procedure","params":4,"steps":[[723,"call","GetGLNForHeader",1]]},{"name":"GetDeliveryAddress","line":744,"kind":"procedure","params":8,"steps":[[755,"call","GetCountryISOCode",1],[764,"call","GetCountryISOCode",1],[766,"call","GetISO3166_1Alpha2",0]]},{"name":"GetPaymentMeansInfo","line":769,"kind":"procedure","params":8,"steps":[[772,"call","GetUNCL4461ListID",0]]},{"name":"GetPaymentTermsInfo","line":824,"kind":"procedure","params":2,"steps":[[832,"ext","table",3,"TranslateDescription",2]]},{"name":"GetPaymentTermsInfo","line":838,"kind":"procedure","params":2,"steps":[[846,"ext","table",3,"TranslateDescription",2]]},{"name":"GetAllowanceChargeInfo","line":852,"kind":"procedure","params":12,"steps":[[861,"call","GetUNCL4465ListID",0],[864,"call","GetSalesDocCurrencyCode",1]]},{"name":"GetAllowanceChargeInfoBIS","line":871,"kind":"procedure","params":12,"steps":[[873,"call","GetAllowanceChargeInfo",12],[876,"call","GetTaxCategoryO",0]]},{"name":"GetTaxExchangeRateInfo","line":880,"kind":"procedure","params":8,"steps":[[885,"call","GetSalesDocCurrencyCode",1],[888,"call","GetSalesDocCurrencyCode",1],[889,"call","GetISO4217ListID",0],[891,"call","GetISO4217ListID",0]]},{"name":"GetTaxTotalInfo","line":897,"kind":"procedure","params":4,"steps":[[901,"call","GetSalesDocCurrencyCode",1]]},{"name":"GetTaxSubtotalInfo","line":904,"kind":"procedure","params":12,"steps":[[909,"call","GetSalesDocCurrencyCode",1],[911,"call","GetSalesDocCurrencyCode",1],[913,"call","GetSalesDocCurrencyCode",1],[916,"ext","table",290,"GetAmountLCY",3],[918,"call","GetSalesDocCurrencyCode",1]]},{"name":"GetTaxTotalInfoLCY","line":928,"kind":"procedure","params":4,"steps":[[934,"call","GetSalesDocCurrencyCode",1]]},{"name":"GetLegalMonetaryInfo","line":951,"kind":"procedure","params":19,"steps":[[956,"call","GetLegalMonetaryDocAmounts",12],[962,"call","GetSalesDocCurrencyCode",1],[967,"call","GetSalesDocCurrencyCode",1],[970,"call","GetSalesDocCurrencyCode",1],[973,"call","GetSalesDocCurrencyCode",1],[976,"call","GetSalesDocCurrencyCode",1]]},{"name":"GetLegalMonetaryInfo","line":980,"kind":"procedure","params":19,"steps":[[985,"call","GetLegalMonetaryDocAmounts",12],[991,"call","GetPurchaseDocCurrencyCode",1],[996,"call","GetPurchaseDocCurrencyCode",1],[999,"call","GetPurchaseDocCurrencyCode",1],[1002,"call","GetPurchaseDocCurrencyCode",1],[1005,"call","GetPurchaseDocCurrencyCode",1]]},{"name":"GetLegalMonetaryDocAmounts","line":1009,"kind":"procedure","params":12,"steps":[[1012,"call","GetSalesDocCurrencyCode",1],[1015,"call","GetSalesDocCurrencyCode",1],[1018,"call","GetSalesDocCurrencyCode",1],[1021,"call","GetSalesDocCurrencyCode",1],[1022,"call","GetSalesDocCurrencyCode",1]]},{"name":"GetLegalMonetaryDocAmounts","line":1028,"kind":"procedure","params":12,"steps":[[1031,"call","GetPurchaseDocCurrencyCode",1],[1034,"call","GetPurchaseDocCurrencyCode",1],[1037,"call","GetPurchaseDocCurrencyCode",1],[1040,"call","GetPurchaseDocCurrencyCode",1]]},{"name":"GetLineGeneralInfo","line":1046,"kind":"procedure","params":8,"steps":[[1057,"call","GetSalesDocCurrencyCode",1]]},{"name":"GetLineGeneralInfo","line":1061,"kind":"procedure","params":8,"steps":[[1070,"call","GetPurchaseDocCurrencyCode",1]]},{"name":"GetLineUnitCodeInfo","line":1083,"kind":"procedure","params":3,"steps":[[1088,"call","GetUNECERec20ListID",0]]},{"name":"GetLineUnitCodeInfo","line":1109,"kind":"procedure","params":3,"steps":[[1114,"call","GetUNECERec20ListID",0]]},{"name":"GetLineDeliveryPostalAddr","line":1148,"kind":"procedure","params":7,"steps":[[1156,"call","GetISO3166_1Alpha2",0]]},{"name":"GetLineAllowanceChargeInfo","line":1164,"kind":"procedure","params":6,"steps":[[1179,"call","GetSalesDocCurrencyCode",1]]},{"name":"GetLineTaxTotal","line":1182,"kind":"procedure","params":4,"steps":[[1185,"call","GetSalesDocCurrencyCode",1]]},{"name":"GetLineItemInfo","line":1188,"kind":"procedure","params":8,"steps":[[1208,"call","GetISO3166_1Alpha2",0]]},{"name":"GetLineItemInfo","line":1211,"kind":"procedure","params":8,"steps":[[1231,"call","GetISO3166_1Alpha2",0]]},{"name":"GetLineItemClassifiedTaxCategory","line":1243,"kind":"procedure","params":5,"steps":[[1253,"call","GetTaxCategoryE",0]]},{"name":"GetLineItemClassifiedTaxCategory","line":1261,"kind":"procedure","params":5,"steps":[[1271,"call","GetTaxCategoryE",0]]},{"name":"GetLineItemClassifiedTaxCategoryBIS","line":1279,"kind":"procedure","params":5,"steps":[[1281,"call","GetLineItemClassifiedTaxCategory",5],[1283,"call","GetTaxCategoryO",0]]},{"name":"GetLineItemClassifiedTaxCategoryBIS","line":1287,"kind":"procedure","params":5,"steps":[[1289,"call","GetLineItemClassifiedTaxCategory",5],[1291,"call","GetTaxCategoryO",0]]},{"name":"GetLinePriceInfo","line":1313,"kind":"procedure","params":6,"steps":[[1323,"call","GetSalesDocCurrencyCode",1],[1325,"call","GetLineUnitCodeInfo",3]]},{"name":"GetLinePriceInfo","line":1328,"kind":"procedure","params":6,"steps":[[1338,"call","GetPurchaseDocCurrencyCode",1],[1340,"call","GetLineUnitCodeInfo",3]]},{"name":"GetTaxTotals","line":1420,"kind":"procedure","params":2,"steps":[[1439,"ext","table",290,"InsertLine",0],[1441,"write",290,"Modify"],[1443,"call","InsertZeroAmountVATAmtLine",2]]},{"name":"GetTaxTotals","line":1446,"kind":"procedure","params":2,"steps":[[1465,"ext","table",290,"InsertLine",0],[1467,"write",290,"Modify"],[1469,"call","InsertZeroAmountVATAmtLine",2]]},{"name":"GetTaxCategories","line":1472,"kind":"procedure","params":2,"steps":[[1485,"write",324,"Insert"]]},{"name":"GetTaxCategories","line":1488,"kind":"procedure","params":2,"steps":[[1501,"write",324,"Insert"]]},{"name":"GetInvoiceRoundingLine","line":1504,"kind":"procedure","params":2,"steps":[[1509,"call","IsRoundingLine",2],[1511,"write",37,"Insert"]]},{"name":"GetInvoiceRoundingLine","line":1515,"kind":"procedure","params":2,"steps":[[1520,"call","IsRoundingLine",2],[1522,"write",39,"Insert"]]},{"name":"GetTaxExemptionReason","line":1526,"kind":"procedure","params":3,"steps":[[1529,"call","GetTaxCategoryE",0],[1529,"call","GetTaxCategoryG",0],[1529,"call","GetTaxCategoryK",0],[1529,"call","GetTaxCategoryO",0],[1529,"call","GetTaxCategoryAE",0]]},{"name":"GetGLNSchemeIDByFormat","line":1580,"kind":"procedure","access":"local","params":1,"steps":[[1583,"call","GetGLNSchemeID",0]]},{"name":"GetVATSchemeByFormat","line":1592,"kind":"procedure","access":"local","params":2,"steps":[[1594,"call","UseVATSchemeID",1],[1596,"call","GetVATScheme",1]]},{"name":"IsZeroVatCategory","line":1677,"kind":"procedure","params":1,"steps":[[1680,"call","GetTaxCategoryZ",0],[1681,"call","GetTaxCategoryE",0],[1682,"call","GetTaxCategoryAE",0],[1683,"call","GetTaxCategoryK",0],[1684,"call","GetTaxCategoryG",0],[1685,"call","GetTaxCategoryO",0]]},{"name":"IsStandardVATCategory","line":1694,"kind":"procedure","params":1,"steps":[[1696,"call","GetTaxCategoryS",0]]},{"name":"IsOutsideScopeVATCategory","line":1704,"kind":"procedure","params":1,"steps":[[1706,"call","GetTaxCategoryO",0]]},{"name":"FormatVATRegistrationNo","line":1709,"kind":"procedure","access":"internal","params":4,"steps":[[1713,"ext","table",79,"GetVATRegistrationNumber",0],[1717,"call","UseVATSchemeID",1],[1718,"ext","table",79,"FormatVATRegistrationNo",2]]},{"name":"TransferHeaderToSalesHeader","line":1763,"kind":"procedure","params":2,"steps":[[1768,"call","RecRefTransferFields",2]]},{"name":"TransferLineToSalesLine","line":1773,"kind":"procedure","params":2,"steps":[[1778,"call","RecRefTransferFields",2]]},{"name":"RecRefTransferFields","line":1783,"kind":"procedure","params":2,"steps":[[1797,"call","CopyField",2]]},{"name":"GetAllowanceChargeInfoPaymentDiscount","line":1831,"kind":"procedure","params":12,"steps":[[1840,"call","GetUNCL4465ListID",0],[1843,"call","GetSalesDocCurrencyCode",1]]},{"name":"GetBuyerCustomerPartyPostalAddr","line":1850,"kind":"procedure","params":8,"steps":[[1872,"call","GetCountryISOCode",1],[1873,"call","GetISO3166_1Alpha2",0]]},{"name":"GetSellerSupplierPartyContact","line":1876,"kind":"procedure","params":5,"steps":[[1880,"call","GetContact",2]]},{"name":"GetGeneralInfoBIS","line":1888,"kind":"procedure","params":9,"steps":[[1896,"call","GetPurchaseDocCurrencyCode",1]]},{"name":"GeneratePDFAttachmentAsAdditionalDocRef","line":1900,"kind":"procedure","params":7,"steps":[[1912,"call","GeneratePDFAsTempBlob",2],[1917,"ext","codeunit",4110,"ToBase64",1],[1917,"ext","codeunit",4100,"CreateInStream",0]]},{"name":"GetBuyerCustomerPartyContact","line":1921,"kind":"procedure","params":4,"steps":[[1925,"call","GetSalesperson",2]]},{"name":"GetSellerSupplierPartyInfoBIS","line":1931,"kind":"procedure","params":4,"steps":[[1939,"call","GetGLNSchemeIDByFormat",1],[1942,"call","FormatVATRegistrationNo",4],[1944,"call","GetVATSchemeByFormat",2]]},{"name":"GetSelfBilledSellerSupplierPartyInfo","line":1961,"kind":"procedure","params":4,"steps":[[1969,"call","GetGLNSchemeIDByFormat",1],[1971,"call","FormatSelfBilledVendorVATRegistrationNo",2],[1972,"call","GetVATSchemeByFormat",2]]},{"name":"FormatSelfBilledVendorVATRegistrationNo","line":1988,"kind":"procedure","access":"local","params":2,"steps":[[1993,"call","UseVATSchemeID",1],[1994,"ext","table",79,"FormatVATRegistrationNo",2]]},{"name":"GetSellerSupplierPartyPostalAddr","line":1998,"kind":"procedure","params":8,"steps":[[2005,"call","GetCountryISOCode",1],[2006,"call","GetISO3166_1Alpha2",0]]},{"name":"GetDeliveryAddress","line":2009,"kind":"procedure","params":8,"steps":[[2016,"call","GetCountryISOCode",1],[2017,"call","GetISO3166_1Alpha2",0]]},{"name":"InsertZeroAmountVATAmtLine","line":2029,"kind":"procedure","access":"local","params":2,"steps":[[2031,"validate",290,"Positive"],[2034,"write",290,"Modify"],[2038,"write",290,"Insert"]]}]}