Skip to content

Commit

Permalink
Merge pull request #168 from MogensChristensen/patch-5
Browse files Browse the repository at this point in the history
Update DK_Validation_DKR008.xml
  • Loading branch information
MartinForsberg-Ecru authored Feb 17, 2025
2 parents 80cb3c6 + 94cf7de commit e688f1b
Showing 1 changed file with 36 additions and 3 deletions.
39 changes: 36 additions & 3 deletions rules/unit-UBL-DK/DK_Validation_DKR008.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<testSet xmlns="http://difi.no/xsd/vefa/validator/1.0" configuration="peppolbis-en16931-base-3.0-ubl">
<assert>
<description>For Danish Suppliers PaymentID is mandatory and MUST start with 01#, 04# or 15# (kortartkode), and PayeeFinancialAccount/ID (Giro kontonummer) is mandatory and must be 7 characters long, when payment means equals 50 (Giro)</description>
<description>For Danish Suppliers PaymentID is mandatory and MUST start with 01#, 04# or 15# (kortartkode), and PayeeFinancialAccount/ID (Giro kontonummer) is mandatory and must be 7 or 8 haracters long, when payment means equals 50 (Giro)</description>
<scope>DK-R-008</scope>
</assert>

Expand Down Expand Up @@ -37,7 +37,40 @@
</cac:PaymentMeans>
</Invoice>
</test>


<test>
<assert>
<success>DK-R-008</success>
</assert>
<Invoice xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2">
<cac:AccountingSupplierParty>
<cac:Party>
<cac:PostalAddress>
<cac:Country>
<cbc:IdentificationCode>DK</cbc:IdentificationCode>
</cac:Country>
</cac:PostalAddress>
</cac:Party>
</cac:AccountingSupplierParty>
<cac:AccountingCustomerParty>
<cac:Party>
<cac:PostalAddress>
<cac:Country>
<cbc:IdentificationCode>DK</cbc:IdentificationCode>
</cac:Country>
</cac:PostalAddress>
</cac:Party>
</cac:AccountingCustomerParty>
<cac:PaymentMeans>
<cbc:PaymentMeansCode name="Post Giro">50</cbc:PaymentMeansCode>
<cbc:PaymentID>04#1234567890123456</cbc:PaymentID>
<cac:PayeeFinancialAccount>
<cbc:ID>12345678</cbc:ID>
</cac:PayeeFinancialAccount>
</cac:PaymentMeans>
</Invoice>
</test>

<test>
<assert>
<success>DK-R-008</success>
Expand Down Expand Up @@ -231,7 +264,7 @@
<cbc:PaymentMeansCode name="Post Giro">50</cbc:PaymentMeansCode>
<cbc:PaymentID>15#1234567890123456</cbc:PaymentID>
<cac:PayeeFinancialAccount>
<cbc:ID>12345678</cbc:ID>
<cbc:ID>123456789</cbc:ID>
</cac:PayeeFinancialAccount>
</cac:PaymentMeans>
</Invoice>
Expand Down

0 comments on commit e688f1b

Please sign in to comment.