Skip to content

Commit

Permalink
Merge pull request #172 from OpenPEPPOL/POACC-824
Browse files Browse the repository at this point in the history
Poacc 824
  • Loading branch information
MartinForsberg-Ecru authored Feb 20, 2025
2 parents 3c3d2fa + f9edb67 commit 2b0cc84
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 14 deletions.
1 change: 1 addition & 0 deletions guide/release-notes/v3.0.19.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Release date:: May 2025
== Changes to code lists and validation artefacts

* BUG Missing currencyID check for BT-117 in Peppol BIS Billing 3.0 PEPPOL-EN16931-R051 [minor]
* Rule PEPPOL-COMMON-R042 which tests danish organization numbers, CVR, (ICD 0184) is updated according to the Participant identifier schemes codelists. The identifier must be 8 characters long and no longer prefixed with DK.

== EN 16931 schematrons updated

Expand Down
2 changes: 1 addition & 1 deletion rules/examples/vat-category-E.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
</cac:AccountingSupplierParty>
<cac:AccountingCustomerParty>
<cac:Party>
<cbc:EndpointID schemeID="0184">DK12345678</cbc:EndpointID>
<cbc:EndpointID schemeID="0184">12345678</cbc:EndpointID>
<cac:PostalAddress>
<cbc:StreetName>Anystreet 8</cbc:StreetName>
<cbc:AdditionalStreetName>Back door</cbc:AdditionalStreetName>
Expand Down
2 changes: 1 addition & 1 deletion rules/examples/vat-category-Z.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
</cac:AccountingSupplierParty>
<cac:AccountingCustomerParty>
<cac:Party>
<cbc:EndpointID schemeID="0184">DK12345678</cbc:EndpointID>
<cbc:EndpointID schemeID="0184">12345678</cbc:EndpointID>
<cac:PostalAddress>
<cbc:StreetName>Anystreet 8</cbc:StreetName>
<cbc:AdditionalStreetName>Back door</cbc:AdditionalStreetName>
Expand Down
2 changes: 1 addition & 1 deletion rules/sch/PEPPOL-EN16931-CII.sch
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ Last update: 2024 May release 3.0.17.
<assert id="PEPPOL-COMMON-R041" test="matches(normalize-space(), '^[0-9]{9}$') and u:mod11(normalize-space())" flag="fatal">Norwegian organization number MUST be stated in the correct format.</assert>
</rule>
<rule context="ram:URIID[@schemeID = '0184'] | ram:ID[@schemeID = '0184'] | ram:GlobalID[@schemeID = '0184']">
<assert id="PEPPOL-COMMON-R042" test="(string-length(text()) = 10) and (substring(text(), 1, 2) = 'DK') and (string-length(translate(substring(text(), 3, 8), '1234567890', '')) = 0)" flag="fatal">Danish organization number (CVR) MUST be stated in the correct format.</assert>
<assert id="PEPPOL-COMMON-R042" test="(string-length(text()) = 8) and (string-length(translate(substring(text(), 1, 8), '1234567890', '')) = 0)" flag="fatal">Danish organization number (CVR) MUST be stated in the correct format.</assert>
</rule>
<rule context="ram:URIID[@schemeID = '0208'] | ram:ID[@schemeID = '0208'] | ram:GlobalID[@schemeID = '0208']">
<assert id="PEPPOL-COMMON-R043" test="matches(normalize-space(), '^[0-9]{10}$') and u:mod97-0208(normalize-space())" flag="fatal">Belgian enterprise number MUST be stated in the correct format.</assert>
Expand Down
2 changes: 1 addition & 1 deletion rules/sch/PEPPOL-EN16931-UBL.sch
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ Last update: 2024 November release 3.0.18.
<rule
context="cbc:EndpointID[@schemeID = '0184'] | cac:PartyIdentification/cbc:ID[@schemeID = '0184'] | cbc:CompanyID[@schemeID = '0184']">
<assert id="PEPPOL-COMMON-R042"
test="(string-length(text()) = 10) and (substring(text(), 1, 2) = 'DK') and (string-length(translate(substring(text(), 3, 8), '1234567890', '')) = 0)"
test="(string-length(text()) = 8) and (string-length(translate(substring(text(), 1, 8), '1234567890', '')) = 0)"
flag="fatal">Danish organization number (CVR) MUST be stated in the correct format.</assert>
</rule>
<rule
Expand Down
8 changes: 4 additions & 4 deletions rules/unit-CII-PEPPOL/PEPPOL-COMMON-R042.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@
<ram:ApplicableHeaderTradeAgreement>
<ram:SellerTradeParty>
<ram:SpecifiedLegalOrganization>
<ram:ID schemeID="0184">DK12345678</ram:ID>
<ram:ID schemeID="0184">12345678</ram:ID>
</ram:SpecifiedLegalOrganization>
</ram:SellerTradeParty>
<ram:BuyerTradeParty>
<ram:SpecifiedLegalOrganization>
<ram:ID schemeID="0184">DK12345679</ram:ID>
<ram:ID schemeID="0184">12345679</ram:ID>
</ram:SpecifiedLegalOrganization>
</ram:BuyerTradeParty>
</ram:ApplicableHeaderTradeAgreement>
Expand Down Expand Up @@ -87,7 +87,7 @@
</ram:SellerTradeParty>
<ram:BuyerTradeParty>
<ram:SpecifiedLegalOrganization>
<ram:ID schemeID="0184">DK12345678</ram:ID>
<ram:ID schemeID="0184">12345678</ram:ID>
</ram:SpecifiedLegalOrganization>
</ram:BuyerTradeParty>
</ram:ApplicableHeaderTradeAgreement>
Expand Down Expand Up @@ -116,7 +116,7 @@
</ram:SellerTradeParty>
<ram:BuyerTradeParty>
<ram:SpecifiedLegalOrganization>
<ram:ID schemeID="0184">DK123456789</ram:ID>
<ram:ID schemeID="0184">12345678</ram:ID>
</ram:SpecifiedLegalOrganization>
</ram:BuyerTradeParty>
</ram:ApplicableHeaderTradeAgreement>
Expand Down
12 changes: 6 additions & 6 deletions rules/unit-UBL-PEPPOL/PEPPOL-COMMON-R042.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<cac:Party>
<cac:PartyLegalEntity>
<cbc:RegistrationName>Customer A A/S</cbc:RegistrationName>
<cbc:CompanyID schemeID="0184">DK12345678</cbc:CompanyID>
<cbc:CompanyID schemeID="0184">12345678</cbc:CompanyID>
</cac:PartyLegalEntity>
</cac:Party>
</cac:AccountingCustomerParty>
Expand All @@ -30,7 +30,7 @@
<cac:Party>
<cac:PartyLegalEntity>
<cbc:RegistrationName>Supplier A/S</cbc:RegistrationName>
<cbc:CompanyID schemeID="0184">DK12345678</cbc:CompanyID>
<cbc:CompanyID schemeID="0184">12345678</cbc:CompanyID>
</cac:PartyLegalEntity>
</cac:Party>
</cac:AccountingSupplierParty>
Expand All @@ -46,7 +46,7 @@
<cac:Party>
<cac:PartyLegalEntity>
<cbc:RegistrationName>Customer A A/S</cbc:RegistrationName>
<cbc:CompanyID schemeID="0184">DK12345678</cbc:CompanyID>
<cbc:CompanyID schemeID="0184">12345678</cbc:CompanyID>
</cac:PartyLegalEntity>
</cac:Party>
</cac:AccountingCustomerParty>
Expand All @@ -62,7 +62,7 @@
<cac:Party>
<cac:PartyLegalEntity>
<cbc:RegistrationName>Supplier A/S</cbc:RegistrationName>
<cbc:CompanyID schemeID="0184">DK12345678</cbc:CompanyID>
<cbc:CompanyID schemeID="0184">12345678</cbc:CompanyID>
</cac:PartyLegalEntity>
</cac:Party>
</cac:AccountingSupplierParty>
Expand Down Expand Up @@ -96,7 +96,7 @@
<cac:Party>
<cac:PartyLegalEntity>
<cbc:RegistrationName>Customer A A/S</cbc:RegistrationName>
<cbc:CompanyID schemeID="0184">DK-12345678</cbc:CompanyID>
<cbc:CompanyID schemeID="0184">DK12345678</cbc:CompanyID>
</cac:PartyLegalEntity>
</cac:Party>
</cac:AccountingCustomerParty>
Expand All @@ -112,7 +112,7 @@
<cac:Party>
<cac:PartyLegalEntity>
<cbc:RegistrationName>Supplier A/S</cbc:RegistrationName>
<cbc:CompanyID schemeID="0184">12345678</cbc:CompanyID>
<cbc:CompanyID schemeID="0184">345678</cbc:CompanyID>
</cac:PartyLegalEntity>
</cac:Party>
</cac:AccountingSupplierParty>
Expand Down

0 comments on commit 2b0cc84

Please sign in to comment.