Describe the issue
When Business Central posts a sales invoice, it uses the VAT Registration No. from Company Information to populate the EndpointID schemeID with the 14 chars VAT Registration no like this:
cac:AccountingSupplierParty
cac:Party
<cbc:EndpointID schemeID="0007">SE733078715601</cbc:EndpointID>
This fails validation at our peppol-access point because a Swedish organisation number can only contain 10 chars.
Expected behavior
When posting sales invoices with the e-document extension - It should strip the "Vat Registration No." from SE and 01 chars in order to produce a valid peppol BIS 3.0 .xml file.
Steps to reproduce
In an SE BC 27 or 28 environment:
Setup E-document services, setup an e-document customer card. Personalize the "E-document Services Page" and add "Import process" field and set it to "2.0"
Add the SE733078715601 Vat Reg. No in Company information
Create a sales invoice, add references and sales person - Post
Result: failed validation
Additional context
The non-working workaround:
Go to "Countries/Regions" and add 10 ########## as a valid SE VAT-no.
Replace the 14 chars with 10 chars (removing SE and 01) in the Company Information Vat Registration No. and post another sales invoice.
Result: The <cbc:EndpointID schemeID="0007">7330787156</cbc:EndpointID> is now valid but instead we get validation error on the cbc:companyID field that requires the whole 14 chars for the Swedish VAT No.
</cac:PartyTaxScheme>
cac:PartyLegalEntity
cbc:RegistrationNameCRONUS International Ltd.</cbc:RegistrationName>
cbc:CompanyID7330787156</cbc:CompanyID>
Version:
E-doc core: 28.0.46665.48257
Base Application: 28.0.46665.48257
E-doc connector: Exflow E-invoicing Pro
I will provide a fix for a bug
Describe the issue
When Business Central posts a sales invoice, it uses the VAT Registration No. from Company Information to populate the EndpointID schemeID with the 14 chars VAT Registration no like this:
cac:AccountingSupplierParty
cac:Party
<cbc:EndpointID schemeID="0007">SE733078715601</cbc:EndpointID>
This fails validation at our peppol-access point because a Swedish organisation number can only contain 10 chars.
Expected behavior
When posting sales invoices with the e-document extension - It should strip the "Vat Registration No." from SE and 01 chars in order to produce a valid peppol BIS 3.0 .xml file.
Steps to reproduce
In an SE BC 27 or 28 environment:
Setup E-document services, setup an e-document customer card. Personalize the "E-document Services Page" and add "Import process" field and set it to "2.0"
Add the SE733078715601 Vat Reg. No in Company information
Create a sales invoice, add references and sales person - Post
Result: failed validation
Additional context
The non-working workaround:
Go to "Countries/Regions" and add 10 ########## as a valid SE VAT-no.
Replace the 14 chars with 10 chars (removing SE and 01) in the Company Information Vat Registration No. and post another sales invoice.
Result: The <cbc:EndpointID schemeID="0007">7330787156</cbc:EndpointID> is now valid but instead we get validation error on the cbc:companyID field that requires the whole 14 chars for the Swedish VAT No.
</cac:PartyTaxScheme>
cac:PartyLegalEntity
cbc:RegistrationNameCRONUS International Ltd.</cbc:RegistrationName>
cbc:CompanyID7330787156</cbc:CompanyID>
Version:
E-doc core: 28.0.46665.48257
Base Application: 28.0.46665.48257
E-doc connector: Exflow E-invoicing Pro
I will provide a fix for a bug