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

66 lines
2.0 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-55</scope>
</assert>
<test>
<assert>
<description>Verify that each preceding credit note references has in ID</description>
<success>BR-55</success>
</assert>
<CreditNote
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:CreditNote-2">
<cac:BillingReference>
<cac:InvoiceDocumentReference>
<cbc:ID>InvoiceRef</cbc:ID>
</cac:InvoiceDocumentReference>
</cac:BillingReference>
</CreditNote>
</test>
<test>
<assert>
<description>Trigger error when a preceding credit note references does not have in ID</description>
<error>BR-55</error>
</assert>
<CreditNote
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:CreditNote-2">
<cac:BillingReference>
<cac:InvoiceDocumentReference>
<!-- <cbc:ID>InvoiceRef</cbc:ID> -->
</cac:InvoiceDocumentReference>
</cac:BillingReference>
</CreditNote>
</test>
<test>
<assert>
<description>Trigger error when a preceding credit note references does not have in ID</description>
<error>BR-55</error>
</assert>
<CreditNote
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:CreditNote-2">
<cac:BillingReference>
<!-- <cac:InvoiceDocumentReference>
<cbc:ID>InvoiceRef</cbc:ID>
</cac:InvoiceDocumentReference> -->
</cac:BillingReference>
</CreditNote>
</test>
</testSet>