Files
einvoice/test/assets/eInvoicing-EN16931/test/Invoice-unit-UBL/BR-11.xml
2025-03-17 17:15:14 +00:00

78 lines
2.3 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed under European Union Public Licence (EUPL) version 1.2.
-->
<testSet xmlns="http://difi.no/xsd/vefa/validator/1.0" configuration="tc434-ubl">
<assert>
<scope>BR-11</scope>
</assert>
<test>
<assert>
<description>Verify that a buyer postal address contains a Seller country code</description>
<success>BR-11</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:AccountingCustomerParty>
<cac:Party>
<cac:PostalAddress>
<cac:Country>
<cbc:IdentificationCode>NL</cbc:IdentificationCode>
</cac:Country>
</cac:PostalAddress>
</cac:Party>
</cac:AccountingCustomerParty>
</Invoice>
</test>
<test>
<assert>
<description>Trigger error when a buyer postal address does not contain a Seller country code</description>
<error>BR-11</error>
</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:AccountingCustomerParty>
<cac:Party>
<cac:PostalAddress>
<!-- <cac:Country>
<cbc:IdentificationCode>NL</cbc:IdentificationCode>
</cac:Country> -->
</cac:PostalAddress>
</cac:Party>
</cac:AccountingCustomerParty>
</Invoice>
</test>
<test>
<assert>
<description>Trigger error when a buyer postal address does not contain a Seller country code</description>
<error>BR-11</error>
</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:AccountingCustomerParty>
<cac:Party>
<cac:PostalAddress>
<cac:Country>
<!--<cbc:IdentificationCode>NL</cbc:IdentificationCode>-->
</cac:Country>
</cac:PostalAddress>
</cac:Party>
</cac:AccountingCustomerParty>
</Invoice>
</test>
</testSet>