update
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
<?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-01</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify specification identification is present</description>
|
||||
<success>BR-01</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">
|
||||
|
||||
<cbc:CustomizationID>123</cbc:CustomizationID>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when specification identification is not defined.</description>
|
||||
<error>BR-01</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">
|
||||
|
||||
<!-- <cbc:CustomizationID>123</cbc:CustomizationID> -->
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,37 @@
|
||||
<?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-02</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify credit note ID is present</description>
|
||||
<success>BR-02</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">
|
||||
|
||||
<cbc:ID>123</cbc:ID>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when credit note ID is not defined.</description>
|
||||
<error>BR-02</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">
|
||||
|
||||
<!-- <cbc:ID>123</cbc:ID> -->
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
</testSet>
|
@@ -0,0 +1,38 @@
|
||||
<?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-03</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify issue date is present</description>
|
||||
<success>BR-03</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">
|
||||
|
||||
<cbc:IssueDate>123</cbc:IssueDate>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when issue date is not defined.</description>
|
||||
<error>BR-03</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">
|
||||
|
||||
<!-- <cbc:IssueDate>123</cbc:IssueDate> -->
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,38 @@
|
||||
<?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-04</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify credit note type code is present</description>
|
||||
<success>BR-04</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">
|
||||
|
||||
<cbc:CreditNoteTypeCode>123</cbc:CreditNoteTypeCode>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when credit note type code is not defined.</description>
|
||||
<error>BR-04</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">
|
||||
|
||||
<!-- <cbc:CreditNoteTypeCode>123</cbc:CreditNoteTypeCode> -->
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,38 @@
|
||||
<?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-05</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify document currency code is present</description>
|
||||
<success>BR-05</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">
|
||||
|
||||
<cbc:DocumentCurrencyCode>123</cbc:DocumentCurrencyCode>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when document currency code is not defined.</description>
|
||||
<error>BR-05</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">
|
||||
|
||||
<!-- <cbc:DocumentCurrencyCode>123</cbc:DocumentCurrencyCode> -->
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,111 @@
|
||||
<?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-06</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify sellers name is present</description>
|
||||
<success>BR-06</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:AccountingSupplierParty>
|
||||
<cac:Party>
|
||||
<cac:PartyLegalEntity>
|
||||
<cbc:RegistrationName>The Sellercompany ASA</cbc:RegistrationName>
|
||||
</cac:PartyLegalEntity>
|
||||
</cac:Party>
|
||||
</cac:AccountingSupplierParty>
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when sellers name is missing.</description>
|
||||
<error>BR-06</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:AccountingSupplierParty>
|
||||
<cac:Party>
|
||||
<cac:PartyLegalEntity>
|
||||
<cbc:RegistrationName>The Sellercompany ASA</cbc:RegistrationName>
|
||||
</cac:PartyLegalEntity>
|
||||
</cac:Party>
|
||||
</cac:AccountingSupplierParty>
|
||||
-->
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when sellers name is missing</description>
|
||||
<error>BR-06</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:AccountingSupplierParty>
|
||||
<!-- <cac:Party>
|
||||
<cac:PartyLegalEntity>
|
||||
<cbc:RegistrationName>The Sellercompany ASA</cbc:RegistrationName>
|
||||
</cac:PartyLegalEntity>
|
||||
</cac:Party> -->
|
||||
</cac:AccountingSupplierParty>
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when sellers name is missing</description>
|
||||
<error>BR-06</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:AccountingSupplierParty>
|
||||
<cac:Party>
|
||||
<!--
|
||||
<cac:PartyLegalEntity>
|
||||
<cbc:RegistrationName>The Sellercompany ASA</cbc:RegistrationName>
|
||||
</cac:PartyLegalEntity>
|
||||
-->
|
||||
</cac:Party>
|
||||
</cac:AccountingSupplierParty>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when sellers name is missing</description>
|
||||
<error>BR-06</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:AccountingSupplierParty>
|
||||
<cac:Party>
|
||||
<cac:PartyLegalEntity>
|
||||
<!-- <cbc:RegistrationName>The Sellercompany ASA</cbc:RegistrationName> -->
|
||||
</cac:PartyLegalEntity>
|
||||
</cac:Party>
|
||||
</cac:AccountingSupplierParty>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,116 @@
|
||||
<?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-07</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify buyers name is present</description>
|
||||
<success>BR-07</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:AccountingCustomerParty>
|
||||
<cac:Party>
|
||||
<cac:PartyLegalEntity>
|
||||
<cbc:RegistrationName>Buyer Name</cbc:RegistrationName>
|
||||
</cac:PartyLegalEntity>
|
||||
</cac:Party>
|
||||
</cac:AccountingCustomerParty>
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when buyers name is missing.</description>
|
||||
<error>BR-07</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:AccountingCustomerParty>
|
||||
<cac:Party>
|
||||
<cac:PartyLegalEntity>
|
||||
<cbc:RegistrationName>Buyer Name</cbc:RegistrationName>
|
||||
</cac:PartyLegalEntity>
|
||||
</cac:Party>
|
||||
</cac:AccountingCustomerParty>
|
||||
-->
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when buyers name is missing</description>
|
||||
<error>BR-07</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:AccountingCustomerParty>
|
||||
<!--
|
||||
<cac:Party>
|
||||
<cac:PartyLegalEntity>
|
||||
<cbc:RegistrationName>Buyer Name</cbc:RegistrationName>
|
||||
</cac:PartyLegalEntity>
|
||||
</cac:Party>
|
||||
-->
|
||||
</cac:AccountingCustomerParty>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when buyers name is missing</description>
|
||||
<error>BR-07</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:AccountingCustomerParty>
|
||||
<cac:Party>
|
||||
<!--
|
||||
<cac:PartyLegalEntity>
|
||||
<cbc:RegistrationName>Buyer Name</cbc:RegistrationName>
|
||||
</cac:PartyLegalEntity>
|
||||
-->
|
||||
</cac:Party>
|
||||
</cac:AccountingCustomerParty>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when buyers name is missing</description>
|
||||
<error>BR-07</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:AccountingCustomerParty>
|
||||
<cac:Party>
|
||||
<cac:PartyLegalEntity>
|
||||
<!-- <cbc:RegistrationName>Buyer Name</cbc:RegistrationName>-->
|
||||
</cac:PartyLegalEntity>
|
||||
</cac:Party>
|
||||
</cac:AccountingCustomerParty>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,113 @@
|
||||
<?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-08</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify seller postal address is present</description>
|
||||
<success>BR-08</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:AccountingSupplierParty>
|
||||
<cac:Party>
|
||||
<cac:PostalAddress>
|
||||
<cbc:StreetName>Main street 34</cbc:StreetName>
|
||||
<cbc:AdditionalStreetName>Suite 123</cbc:AdditionalStreetName>
|
||||
<cbc:CityName>Big city</cbc:CityName>
|
||||
<cbc:PostalZone>54321</cbc:PostalZone>
|
||||
<cbc:CountrySubentity>RegionA</cbc:CountrySubentity>
|
||||
<cac:Country>
|
||||
<cbc:IdentificationCode listID="ISO3166-1:Alpha2">NO</cbc:IdentificationCode>
|
||||
</cac:Country>
|
||||
</cac:PostalAddress>
|
||||
</cac:Party>
|
||||
</cac:AccountingSupplierParty>
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify seller postal address is present</description>
|
||||
<success>BR-08</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:AccountingSupplierParty>
|
||||
<cac:Party>
|
||||
<cac:PostalAddress></cac:PostalAddress>
|
||||
</cac:Party>
|
||||
</cac:AccountingSupplierParty>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when seller postal address is missing</description>
|
||||
<error>BR-08</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:AccountingSupplierParty>
|
||||
<cac:Party>
|
||||
<cac:PostalAddress/>
|
||||
</cac:Party>
|
||||
</cac:AccountingSupplierParty>
|
||||
-->
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when seller postal address is missing</description>
|
||||
<error>BR-08</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:AccountingSupplierParty>
|
||||
<!-- <cac:Party>
|
||||
<cac:PostalAddress/>
|
||||
</cac:Party> -->
|
||||
</cac:AccountingSupplierParty>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when seller postal address is missing</description>
|
||||
<error>BR-08</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:AccountingSupplierParty>
|
||||
<cac:Party>
|
||||
<!-- <cac:PostalAddress></cac:PostalAddress> -->
|
||||
</cac:Party>
|
||||
</cac:AccountingSupplierParty>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,77 @@
|
||||
<?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-09</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that a seller postal address contains a Seller country code</description>
|
||||
<success>BR-09</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:AccountingSupplierParty>
|
||||
<cac:Party>
|
||||
<cac:PostalAddress>
|
||||
<cac:Country>
|
||||
<cbc:IdentificationCode>NL</cbc:IdentificationCode>
|
||||
</cac:Country>
|
||||
</cac:PostalAddress>
|
||||
</cac:Party>
|
||||
</cac:AccountingSupplierParty>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when a seller postal address does not contain a Seller country code</description>
|
||||
<error>BR-09</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:AccountingSupplierParty>
|
||||
<cac:Party>
|
||||
<cac:PostalAddress>
|
||||
<!-- <cac:Country>
|
||||
<cbc:IdentificationCode>NL</cbc:IdentificationCode>
|
||||
</cac:Country> -->
|
||||
</cac:PostalAddress>
|
||||
</cac:Party>
|
||||
</cac:AccountingSupplierParty>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when a seller postal address does not contain a Seller country code</description>
|
||||
<error>BR-09</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:AccountingSupplierParty>
|
||||
<cac:Party>
|
||||
<cac:PostalAddress>
|
||||
<cac:Country>
|
||||
<!--<cbc:IdentificationCode>NL</cbc:IdentificationCode>-->
|
||||
</cac:Country>
|
||||
</cac:PostalAddress>
|
||||
</cac:Party>
|
||||
</cac:AccountingSupplierParty>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,113 @@
|
||||
<?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-10</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify Buyer postal address is present</description>
|
||||
<success>BR-10</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:AccountingCustomerParty>
|
||||
<cac:Party>
|
||||
<cac:PostalAddress>
|
||||
<cbc:StreetName>Main street 34</cbc:StreetName>
|
||||
<cbc:AdditionalStreetName>Suite 123</cbc:AdditionalStreetName>
|
||||
<cbc:CityName>Big city</cbc:CityName>
|
||||
<cbc:PostalZone>54321</cbc:PostalZone>
|
||||
<cbc:CountrySubentity>RegionA</cbc:CountrySubentity>
|
||||
<cac:Country>
|
||||
<cbc:IdentificationCode listID="ISO3166-1:Alpha2">NO</cbc:IdentificationCode>
|
||||
</cac:Country>
|
||||
</cac:PostalAddress>
|
||||
</cac:Party>
|
||||
</cac:AccountingCustomerParty>
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify Buyer postal address is present</description>
|
||||
<success>BR-10</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:AccountingCustomerParty>
|
||||
<cac:Party>
|
||||
<cac:PostalAddress></cac:PostalAddress>
|
||||
</cac:Party>
|
||||
</cac:AccountingCustomerParty>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when Buyer postal address is missing</description>
|
||||
<error>BR-10</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:AccountingCustomerParty>
|
||||
<cac:Party>
|
||||
<cac:PostalAddress/>
|
||||
</cac:Party>
|
||||
</cac:AccountingCustomerParty>
|
||||
-->
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when Buyer postal address is missing</description>
|
||||
<error>BR-10</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:AccountingCustomerParty>
|
||||
<!-- <cac:Party>
|
||||
<cac:PostalAddress/>
|
||||
</cac:Party> -->
|
||||
</cac:AccountingCustomerParty>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when Buyer postal address is missing</description>
|
||||
<error>BR-10</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:AccountingCustomerParty>
|
||||
<cac:Party>
|
||||
<!-- <cac:PostalAddress></cac:PostalAddress> -->
|
||||
</cac:Party>
|
||||
</cac:AccountingCustomerParty>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,77 @@
|
||||
<?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>
|
||||
<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:AccountingCustomerParty>
|
||||
<cac:Party>
|
||||
<cac:PostalAddress>
|
||||
<cac:Country>
|
||||
<cbc:IdentificationCode>NL</cbc:IdentificationCode>
|
||||
</cac:Country>
|
||||
</cac:PostalAddress>
|
||||
</cac:Party>
|
||||
</cac:AccountingCustomerParty>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when a buyer postal address does not contain a Seller country code</description>
|
||||
<error>BR-11</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:AccountingCustomerParty>
|
||||
<cac:Party>
|
||||
<cac:PostalAddress>
|
||||
<!-- <cac:Country>
|
||||
<cbc:IdentificationCode>NL</cbc:IdentificationCode>
|
||||
</cac:Country> -->
|
||||
</cac:PostalAddress>
|
||||
</cac:Party>
|
||||
</cac:AccountingCustomerParty>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when a buyer postal address does not contain a Seller country code</description>
|
||||
<error>BR-11</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:AccountingCustomerParty>
|
||||
<cac:Party>
|
||||
<cac:PostalAddress>
|
||||
<cac:Country>
|
||||
<!--<cbc:IdentificationCode>NL</cbc:IdentificationCode>-->
|
||||
</cac:Country>
|
||||
</cac:PostalAddress>
|
||||
</cac:Party>
|
||||
</cac:AccountingCustomerParty>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,44 @@
|
||||
<?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-12</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify total line amount in document totals is present</description>
|
||||
<success>BR-12</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:LegalMonetaryTotal>
|
||||
<cbc:LineExtensionAmount currencyID="EUR">100.00</cbc:LineExtensionAmount>
|
||||
</cac:LegalMonetaryTotal>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when total line amount in document totals is missing</description>
|
||||
<error>BR-12</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:LegalMonetaryTotal>
|
||||
<!-- <cbc:LineExtensionAmount currencyID="EUR">100.00</cbc:LineExtensionAmount>-->
|
||||
</cac:LegalMonetaryTotal>
|
||||
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,43 @@
|
||||
<?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-13</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify credit note total amount without VAT in document totals is present</description>
|
||||
<success>BR-13</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:LegalMonetaryTotal>
|
||||
<cbc:TaxExclusiveAmount currencyID="NOK">1200</cbc:TaxExclusiveAmount>
|
||||
</cac:LegalMonetaryTotal>
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when credit note total amount without VAT in document totals is missing</description>
|
||||
<error>BR-13</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:LegalMonetaryTotal>
|
||||
<!-- <cbc:TaxExclusiveAmount currencyID="NOK">1200</cbc:TaxExclusiveAmount> -->
|
||||
</cac:LegalMonetaryTotal>
|
||||
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,43 @@
|
||||
<?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-14</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify credit note total amount with VAT in document totals is present</description>
|
||||
<success>BR-14</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:LegalMonetaryTotal>
|
||||
<cbc:TaxInclusiveAmount currencyID="NOK">1200</cbc:TaxInclusiveAmount>
|
||||
</cac:LegalMonetaryTotal>
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when credit note total amount with VAT in document totals is missing</description>
|
||||
<error>BR-14</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:LegalMonetaryTotal>
|
||||
<!-- <cbc:TaxInclusiveAmount currencyID="NOK">1200</cbc:TaxInclusiveAmount> -->
|
||||
</cac:LegalMonetaryTotal>
|
||||
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,42 @@
|
||||
<?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-15</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify amount due for payment in document totals is present</description>
|
||||
<success>BR-15</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:LegalMonetaryTotal>
|
||||
<cbc:PayableAmount currencyID="NOK">1200</cbc:PayableAmount>
|
||||
</cac:LegalMonetaryTotal>
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when amount due for payment in document totals is missing</description>
|
||||
<error>BR-15</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:LegalMonetaryTotal>
|
||||
<!-- <cbc:PayableAmount currencyID="NOK">1200</cbc:PayableAmount> -->
|
||||
</cac:LegalMonetaryTotal>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,41 @@
|
||||
<?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-16</scope>
|
||||
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that each credit note has an credit note line</description>
|
||||
<success>BR-16</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:CreditNoteLine>
|
||||
</cac:CreditNoteLine>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error if credit note line is missing</description>
|
||||
<error>BR-16</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:CreditNoteLine></cac:CreditNoteLine> -->
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,49 @@
|
||||
<?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-17</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that payee name is present</description>
|
||||
<success>BR-17</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:PayeeParty>
|
||||
<cac:PartyName>
|
||||
<cbc:Name>Payee name</cbc:Name>
|
||||
</cac:PartyName>
|
||||
</cac:PayeeParty>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when payee name is missing</description>
|
||||
<error>BR-17</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:PayeeParty>
|
||||
<!-- <cac:PartyName>
|
||||
<cbc:Name>Payee name</cbc:Name>
|
||||
</cac:PartyName>-->
|
||||
</cac:PayeeParty>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,49 @@
|
||||
<?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-18</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that tax representative name is present</description>
|
||||
<success>BR-18</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:TaxRepresentativeParty>
|
||||
<cac:PartyName>
|
||||
<cbc:Name>Tax handling company AS</cbc:Name>
|
||||
</cac:PartyName>
|
||||
</cac:TaxRepresentativeParty>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when tax representative name is missing</description>
|
||||
<error>BR-18</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:TaxRepresentativeParty>
|
||||
<!-- <cac:PartyName>
|
||||
<cbc:Name>Tax handling company AS</cbc:Name>
|
||||
</cac:PartyName> -->
|
||||
</cac:TaxRepresentativeParty>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,70 @@
|
||||
<?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-19</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that seller tax representative postal address is present</description>
|
||||
<success>BR-19</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:TaxRepresentativeParty>
|
||||
<cac:PostalAddress>
|
||||
<cbc:StreetName>Regent street</cbc:StreetName>
|
||||
<cbc:AdditionalStreetName>Front door</cbc:AdditionalStreetName>
|
||||
<cbc:CityName>Newtown</cbc:CityName>
|
||||
<cbc:PostalZone>101</cbc:PostalZone>
|
||||
<cbc:CountrySubentity>RegionC</cbc:CountrySubentity>
|
||||
<cac:Country>
|
||||
<cbc:IdentificationCode listID="ISO3166-1:Alpha2">NO</cbc:IdentificationCode>
|
||||
</cac:Country>
|
||||
</cac:PostalAddress>
|
||||
</cac:TaxRepresentativeParty>
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify seller tax representative postal address is present</description>
|
||||
<success>BR-19</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:TaxRepresentativeParty>
|
||||
<cac:PostalAddress></cac:PostalAddress>
|
||||
</cac:TaxRepresentativeParty>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when seller tax representative postal address is missing</description>
|
||||
<error>BR-19</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:TaxRepresentativeParty>
|
||||
<!-- <cac:PostalAddress></cac:PostalAddress> -->
|
||||
</cac:TaxRepresentativeParty>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,68 @@
|
||||
<?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-20</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that a seller tax representative postal address contains a country code</description>
|
||||
<success>BR-20</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:TaxRepresentativeParty>
|
||||
<cac:PostalAddress>
|
||||
<cac:Country>
|
||||
<cbc:IdentificationCode>NO</cbc:IdentificationCode>
|
||||
</cac:Country>
|
||||
</cac:PostalAddress>
|
||||
</cac:TaxRepresentativeParty>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when a seller tax representative postal address does not contain a country code</description>
|
||||
<error>BR-20</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:TaxRepresentativeParty>
|
||||
<cac:PostalAddress>
|
||||
<!--<cac:Country>
|
||||
<cbc:IdentificationCode>NO</cbc:IdentificationCode>
|
||||
</cac:Country>-->
|
||||
</cac:PostalAddress>
|
||||
</cac:TaxRepresentativeParty>
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when a seller tax representative postal address does not contain a country code</description>
|
||||
<error>BR-20</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:TaxRepresentativeParty>
|
||||
<cac:PostalAddress>
|
||||
<cac:Country>
|
||||
<!--<cbc:IdentificationCode>NO</cbc:IdentificationCode>-->
|
||||
</cac:Country>
|
||||
</cac:PostalAddress>
|
||||
</cac:TaxRepresentativeParty>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,44 @@
|
||||
<?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-21</scope>
|
||||
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that each credit note line has a line ID</description>
|
||||
<success>BR-21</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:CreditNoteLine>
|
||||
<cbc:ID>1</cbc:ID>
|
||||
</cac:CreditNoteLine>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error if credit note line ID is missing</description>
|
||||
<error>BR-21</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:CreditNoteLine>
|
||||
<!-- <cbc:ID>1</cbc:ID>-->
|
||||
</cac:CreditNoteLine>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,45 @@
|
||||
<?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-22</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that credited quantity is present</description>
|
||||
<success>BR-22</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:CreditNoteLine>
|
||||
<cbc:CreditedQuantity>1</cbc:CreditedQuantity>
|
||||
</cac:CreditNoteLine>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when credited quantity is missing</description>
|
||||
<error>BR-22</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:CreditNoteLine>
|
||||
<!-- <cbc:CreditedQuantity>1</cbc:CreditedQuantity> -->
|
||||
</cac:CreditNoteLine>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,45 @@
|
||||
<?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-23</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that credited quantity unitcode is present</description>
|
||||
<success>BR-23</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:CreditNoteLine>
|
||||
<cbc:CreditedQuantity unitCode="NAR">1</cbc:CreditedQuantity>
|
||||
</cac:CreditNoteLine>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when credited quantity unitcode is missing</description>
|
||||
<error>BR-23</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:CreditNoteLine>
|
||||
<cbc:CreditedQuantity>1</cbc:CreditedQuantity>
|
||||
</cac:CreditNoteLine>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,44 @@
|
||||
<?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-24</scope>
|
||||
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that each credit note line has a line extension amount</description>
|
||||
<success>BR-24</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:CreditNoteLine>
|
||||
<cbc:LineExtensionAmount>123</cbc:LineExtensionAmount>
|
||||
</cac:CreditNoteLine>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error if credit note line extension amount is missing</description>
|
||||
<error>BR-24</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:CreditNoteLine>
|
||||
<!-- <cbc:LineExtensionAmount>123</cbc:LineExtensionAmount> -->
|
||||
</cac:CreditNoteLine>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,48 @@
|
||||
<?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-25</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that item name is present</description>
|
||||
<success>BR-25</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:CreditNoteLine>
|
||||
<cac:Item>
|
||||
<cbc:Name>Laptop computer</cbc:Name>
|
||||
</cac:Item>
|
||||
</cac:CreditNoteLine>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when item name is missing</description>
|
||||
<error>BR-25</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:CreditNoteLine>
|
||||
<cac:Item>
|
||||
<!-- <cbc:Name>Laptop computer</cbc:Name>-->
|
||||
</cac:Item>
|
||||
</cac:CreditNoteLine>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,48 @@
|
||||
<?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-26</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that price amount is present</description>
|
||||
<success>BR-26</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:CreditNoteLine>
|
||||
<cac:Price>
|
||||
<cbc:PriceAmount currencyID="NOK">1273</cbc:PriceAmount>
|
||||
</cac:Price>
|
||||
</cac:CreditNoteLine>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when price amount is missing</description>
|
||||
<error>BR-26</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:CreditNoteLine>
|
||||
<!--<cac:Price>
|
||||
<cbc:PriceAmount currencyID="NOK">1273</cbc:PriceAmount>
|
||||
</cac:Price> -->
|
||||
</cac:CreditNoteLine>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,65 @@
|
||||
<?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-27</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that price amount is zero or above</description>
|
||||
<success>BR-27</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:CreditNoteLine>
|
||||
<cac:Price>
|
||||
<cbc:PriceAmount currencyID="NOK">100</cbc:PriceAmount>
|
||||
</cac:Price>
|
||||
</cac:CreditNoteLine>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that price amount is zero or above</description>
|
||||
<success>BR-27</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:CreditNoteLine>
|
||||
<cac:Price>
|
||||
<cbc:PriceAmount currencyID="NOK">0</cbc:PriceAmount>
|
||||
</cac:Price>
|
||||
</cac:CreditNoteLine>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when price amount is negative</description>
|
||||
<error>BR-27</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:CreditNoteLine>
|
||||
<cac:Price>
|
||||
<cbc:PriceAmount currencyID="NOK">-1</cbc:PriceAmount>
|
||||
</cac:Price>
|
||||
</cac:CreditNoteLine>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,71 @@
|
||||
<?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-28</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that gross price amount is zero or above</description>
|
||||
<success>BR-28</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:CreditNoteLine>
|
||||
<cac:Price>
|
||||
<cac:AllowanceCharge>
|
||||
<cbc:BaseAmount currencyID="NOK">1</cbc:BaseAmount>
|
||||
</cac:AllowanceCharge>
|
||||
</cac:Price>
|
||||
</cac:CreditNoteLine>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that gross price amount is zero or above</description>
|
||||
<success>BR-28</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:CreditNoteLine>
|
||||
<cac:Price>
|
||||
<cac:AllowanceCharge>
|
||||
<cbc:BaseAmount currencyID="NOK">0</cbc:BaseAmount>
|
||||
</cac:AllowanceCharge>
|
||||
</cac:Price>
|
||||
</cac:CreditNoteLine>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when gross price amount is negative</description>
|
||||
<error>BR-28</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:CreditNoteLine>
|
||||
<cac:Price>
|
||||
<cac:AllowanceCharge>
|
||||
<cbc:BaseAmount currencyID="NOK">-1</cbc:BaseAmount>
|
||||
</cac:AllowanceCharge>
|
||||
</cac:Price>
|
||||
</cac:CreditNoteLine>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,64 @@
|
||||
<?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-29</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that if a period has a start date and an end date, the end date is equal to, or later than the start date </description>
|
||||
<success>BR-29</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:InvoicePeriod>
|
||||
<cbc:StartDate>2013-06-01</cbc:StartDate>
|
||||
<cbc:EndDate>2013-06-01</cbc:EndDate>
|
||||
</cac:InvoicePeriod>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that if a period has a start date and an end date, the end date is equal to, or later than the start date </description>
|
||||
<success>BR-29</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:InvoicePeriod>
|
||||
<cbc:StartDate>2013-06-01</cbc:StartDate>
|
||||
<cbc:EndDate>2013-08-01</cbc:EndDate>
|
||||
</cac:InvoicePeriod>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error if a period has a start date and an end date,and the end date is earlier than the start date</description>
|
||||
<error>BR-29</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:InvoicePeriod>
|
||||
<cbc:StartDate>2013-06-01</cbc:StartDate>
|
||||
<cbc:EndDate>2013-05-01</cbc:EndDate>
|
||||
</cac:InvoicePeriod>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,70 @@
|
||||
<?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-30</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that if an credit note line period has a start date and an end date, the
|
||||
end date is equal to, or later than the start date </description>
|
||||
<success>BR-30</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:CreditNoteLine>
|
||||
<cac:InvoicePeriod>
|
||||
<cbc:StartDate>2013-06-01</cbc:StartDate>
|
||||
<cbc:EndDate>2013-06-01</cbc:EndDate>
|
||||
</cac:InvoicePeriod>
|
||||
</cac:CreditNoteLine>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that if an credit note line period has a start date and an end date, the
|
||||
end date is equal to, or later than the start date </description>
|
||||
<success>BR-30</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:CreditNoteLine>
|
||||
<cac:InvoicePeriod>
|
||||
<cbc:StartDate>2013-06-01</cbc:StartDate>
|
||||
<cbc:EndDate>2013-08-01</cbc:EndDate>
|
||||
</cac:InvoicePeriod>
|
||||
</cac:CreditNoteLine>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error if an credit note line period has a start date and an end
|
||||
date,and the end date is earlier than the start date</description>
|
||||
<error>BR-30</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:CreditNoteLine>
|
||||
<cac:InvoicePeriod>
|
||||
<cbc:StartDate>2013-06-01</cbc:StartDate>
|
||||
<cbc:EndDate>2013-05-01</cbc:EndDate>
|
||||
</cac:InvoicePeriod>
|
||||
</cac:CreditNoteLine>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,49 @@
|
||||
<?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-31</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that an allowance amount is present</description>
|
||||
<success>BR-31</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:AllowanceCharge>
|
||||
<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
|
||||
<cbc:Amount>100</cbc:Amount>
|
||||
</cac:AllowanceCharge>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when allowance amount is missing</description>
|
||||
<error>BR-31</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:AllowanceCharge>
|
||||
<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
|
||||
<!-- <cbc:Amount>100</cbc:Amount> -->
|
||||
</cac:AllowanceCharge>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,78 @@
|
||||
<?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-32</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that an allowance VAT category ID is present</description>
|
||||
<success>BR-32</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:AllowanceCharge>
|
||||
<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
|
||||
<cac:TaxCategory>
|
||||
<cbc:ID>S</cbc:ID>
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID>VAT</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:TaxCategory>
|
||||
</cac:AllowanceCharge>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when allowance VAT category ID is missing</description>
|
||||
<error>BR-32</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:AllowanceCharge>
|
||||
<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
|
||||
<!-- <cac:TaxCategory>
|
||||
<cbc:ID>S</cbc:ID>
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID>VAT</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:TaxCategory> -->
|
||||
</cac:AllowanceCharge>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when allowance VAT category ID is missing</description>
|
||||
<error>BR-32</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:AllowanceCharge>
|
||||
<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
|
||||
<cac:TaxCategory>
|
||||
<!-- <cbc:ID>S</cbc:ID> -->
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID>VAT</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:TaxCategory>
|
||||
</cac:AllowanceCharge>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,68 @@
|
||||
<?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-33</scope>
|
||||
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that an allowance reason or reason code is present</description>
|
||||
<success>BR-33</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:AllowanceCharge>
|
||||
<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
|
||||
<cbc:AllowanceChargeReason>Freight</cbc:AllowanceChargeReason>
|
||||
</cac:AllowanceCharge>
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that an allowance reason or reason code is present</description>
|
||||
<success>BR-33</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:AllowanceCharge>
|
||||
<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
|
||||
<cbc:AllowanceChargeReasonCode>94</cbc:AllowanceChargeReasonCode>
|
||||
</cac:AllowanceCharge>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when allowance reason or reason code is missing</description>
|
||||
<error>BR-33</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:AllowanceCharge>
|
||||
<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
|
||||
<!-- <cbc:AllowanceChargeReason>Freight</cbc:AllowanceChargeReason> -->
|
||||
<!-- <cbc:AllowanceChargeReasonCode>94</cbc:AllowanceChargeReasonCode> -->
|
||||
</cac:AllowanceCharge>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,48 @@
|
||||
<?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-36</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that an charge amount is present</description>
|
||||
<success>BR-36</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:AllowanceCharge>
|
||||
<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
|
||||
<cbc:Amount>100</cbc:Amount>
|
||||
</cac:AllowanceCharge>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when charge amount is missing</description>
|
||||
<error>BR-36</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:AllowanceCharge>
|
||||
<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
|
||||
<!-- <cbc:Amount>100</cbc:Amount> -->
|
||||
</cac:AllowanceCharge>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,80 @@
|
||||
<?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-37</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that an charge VAT category ID is present</description>
|
||||
<success>BR-37</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:AllowanceCharge>
|
||||
<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
|
||||
<cac:TaxCategory>
|
||||
<cbc:ID>S</cbc:ID>
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID>VAT</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:TaxCategory>
|
||||
</cac:AllowanceCharge>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when charge VAT category ID is missing</description>
|
||||
<error>BR-37</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:AllowanceCharge>
|
||||
<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
|
||||
<!-- <cac:TaxCategory>
|
||||
<cbc:ID>S</cbc:ID>
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID>VAT</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:TaxCategory> -->
|
||||
</cac:AllowanceCharge>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when charge VAT category ID is missing</description>
|
||||
<error>BR-37</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:AllowanceCharge>
|
||||
<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
|
||||
<cac:TaxCategory>
|
||||
<!-- <cbc:ID>S</cbc:ID> -->
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID>VAT</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:TaxCategory>
|
||||
</cac:AllowanceCharge>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,66 @@
|
||||
<?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-38</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that a charge reason or reason code is present</description>
|
||||
<success>BR-38</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:AllowanceCharge>
|
||||
<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
|
||||
<cbc:AllowanceChargeReason>Freight</cbc:AllowanceChargeReason>
|
||||
</cac:AllowanceCharge>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that a charge reason or reason code is present</description>
|
||||
<success>BR-38</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:AllowanceCharge>
|
||||
<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
|
||||
<cbc:AllowanceChargeReasonCode>94</cbc:AllowanceChargeReasonCode>
|
||||
</cac:AllowanceCharge>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when charge reason or reason code is missing</description>
|
||||
<error>BR-38</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:AllowanceCharge>
|
||||
<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
|
||||
<!-- <cbc:AllowanceChargeReason>Freight</cbc:AllowanceChargeReason> -->
|
||||
<!-- <cbc:AllowanceChargeReasonCode>94</cbc:AllowanceChargeReasonCode> -->
|
||||
</cac:AllowanceCharge>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,53 @@
|
||||
<?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-41</scope>
|
||||
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that an credit note line allowance amount is
|
||||
present</description>
|
||||
<success>BR-41</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:CreditNoteLine>
|
||||
<cac:AllowanceCharge>
|
||||
<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
|
||||
<cbc:Amount currencyID="NOK">100</cbc:Amount>
|
||||
</cac:AllowanceCharge>
|
||||
</cac:CreditNoteLine>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when credit note line allowance amount is
|
||||
missing</description>
|
||||
<error>BR-41</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:CreditNoteLine>
|
||||
<cac:AllowanceCharge>
|
||||
<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
|
||||
<!-- <cbc:Amount currencyID="NOK">100</cbc:Amount> -->
|
||||
</cac:AllowanceCharge>
|
||||
</cac:CreditNoteLine>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,73 @@
|
||||
<?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-42</scope>
|
||||
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that an allowance reason or reason code is present</description>
|
||||
<success>BR-42</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:CreditNoteLine>
|
||||
<cac:AllowanceCharge>
|
||||
<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
|
||||
<cbc:AllowanceChargeReason>Freight</cbc:AllowanceChargeReason>
|
||||
</cac:AllowanceCharge>
|
||||
</cac:CreditNoteLine>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that an allowance reason or reason code is present</description>
|
||||
<success>BR-42</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:CreditNoteLine>
|
||||
<cac:AllowanceCharge>
|
||||
<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
|
||||
<cbc:AllowanceChargeReasonCode>12</cbc:AllowanceChargeReasonCode>
|
||||
</cac:AllowanceCharge>
|
||||
</cac:CreditNoteLine>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when allowance reason or reason code is missing</description>
|
||||
<error>BR-42</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:CreditNoteLine>
|
||||
<cac:AllowanceCharge>
|
||||
<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
|
||||
<!-- <cbc:AllowanceChargeReasonCode>12</cbc:AllowanceChargeReasonCode> -->
|
||||
<!-- <cbc:AllowanceChargeReason>Freight</cbc:AllowanceChargeReason> -->
|
||||
</cac:AllowanceCharge>
|
||||
</cac:CreditNoteLine>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,51 @@
|
||||
<?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-43</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that an credit note line charge amount is
|
||||
present</description>
|
||||
<success>BR-43</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:CreditNoteLine>
|
||||
<cac:AllowanceCharge>
|
||||
<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
|
||||
<cbc:Amount currencyID="NOK">100</cbc:Amount>
|
||||
</cac:AllowanceCharge>
|
||||
</cac:CreditNoteLine>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when credit note line charge amount is
|
||||
missing</description>
|
||||
<error>BR-43</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:CreditNoteLine>
|
||||
<cac:AllowanceCharge>
|
||||
<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
|
||||
<!-- <cbc:Amount currencyID="NOK">100</cbc:Amount> -->
|
||||
</cac:AllowanceCharge>
|
||||
</cac:CreditNoteLine>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,73 @@
|
||||
<?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-44</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that a charge reason or reason code is present</description>
|
||||
|
||||
<success>BR-44</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:CreditNoteLine>
|
||||
<cac:AllowanceCharge>
|
||||
<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
|
||||
<cbc:AllowanceChargeReason>Freight</cbc:AllowanceChargeReason>
|
||||
</cac:AllowanceCharge>
|
||||
</cac:CreditNoteLine>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that a charge reason or reason code is present</description>
|
||||
|
||||
<success>BR-44</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:CreditNoteLine>
|
||||
<cac:AllowanceCharge>
|
||||
<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
|
||||
<cbc:AllowanceChargeReasonCode>1</cbc:AllowanceChargeReasonCode>
|
||||
</cac:AllowanceCharge>
|
||||
</cac:CreditNoteLine>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when a charge reason is missing</description>
|
||||
|
||||
<error>BR-44</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:CreditNoteLine>
|
||||
<cac:AllowanceCharge>
|
||||
<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
|
||||
<!-- <cbc:AllowanceChargeReasonCode>1</cbc:AllowanceChargeReasonCode> -->
|
||||
<!-- <cbc:AllowanceChargeReason>Freight</cbc:AllowanceChargeReason> -->
|
||||
</cac:AllowanceCharge>
|
||||
</cac:CreditNoteLine>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,48 @@
|
||||
<?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-45</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify each VAT breakdown has VAT category taxable amount
|
||||
present</description>
|
||||
<success>BR-45</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:TaxTotal>
|
||||
<cac:TaxSubtotal>
|
||||
<cbc:TaxableAmount currencyID="NOK">1460.5</cbc:TaxableAmount>
|
||||
</cac:TaxSubtotal>
|
||||
</cac:TaxTotal>
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when VAT category taxable amount is missing</description>
|
||||
<error>BR-45</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:TaxTotal>
|
||||
<cac:TaxSubtotal>
|
||||
<!-- <cbc:TaxableAmount currencyID="NOK">1460.5</cbc:TaxableAmount> -->
|
||||
</cac:TaxSubtotal>
|
||||
</cac:TaxTotal>
|
||||
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,47 @@
|
||||
<?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-46</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify each VAT breakdown has VAT category tax amount present</description>
|
||||
<success>BR-46</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:TaxTotal>
|
||||
<cac:TaxSubtotal>
|
||||
<cbc:TaxAmount currencyID="NOK">365.13</cbc:TaxAmount>
|
||||
</cac:TaxSubtotal>
|
||||
</cac:TaxTotal>
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when VAT category tax amount is missing</description>
|
||||
<error>BR-46</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:TaxTotal>
|
||||
<cac:TaxSubtotal>
|
||||
<!-- <cbc:TaxAmount currencyID="NOK">365.13</cbc:TaxAmount> -->
|
||||
</cac:TaxSubtotal>
|
||||
</cac:TaxTotal>
|
||||
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,79 @@
|
||||
<?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-47</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify each VAT breakdown has VAT category ID present</description>
|
||||
<success>BR-47</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:TaxTotal>
|
||||
<cac:TaxSubtotal>
|
||||
<cac:TaxCategory>
|
||||
<cbc:ID>S</cbc:ID>
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID>VAT</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:TaxCategory>
|
||||
</cac:TaxSubtotal>
|
||||
</cac:TaxTotal>
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when VAT category ID is missing</description>
|
||||
<error>BR-47</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:TaxTotal>
|
||||
<cac:TaxSubtotal>
|
||||
<!-- <cac:TaxCategory>
|
||||
<cbc:ID>S</cbc:ID>
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID>VAT</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:TaxCategory> -->
|
||||
</cac:TaxSubtotal>
|
||||
</cac:TaxTotal>
|
||||
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when VAT category ID is missing</description>
|
||||
<error>BR-47</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:TaxTotal>
|
||||
<cac:TaxSubtotal>
|
||||
<cac:TaxCategory>
|
||||
<!-- <cbc:ID>S</cbc:ID> -->
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID>VAT</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:TaxCategory>
|
||||
</cac:TaxSubtotal>
|
||||
</cac:TaxTotal>
|
||||
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,83 @@
|
||||
<?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-48</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify each VAT breakdown has VAT category percentage present, except if
|
||||
VAT is out of scope</description>
|
||||
<success>BR-48</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:TaxTotal>
|
||||
<cac:TaxSubtotal>
|
||||
<cac:TaxCategory>
|
||||
<cbc:ID>S</cbc:ID>
|
||||
<cbc:Percent>25</cbc:Percent>
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID>VAT</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:TaxCategory>
|
||||
</cac:TaxSubtotal>
|
||||
</cac:TaxTotal>
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify each VAT breakdown has VAT category percentage present, except if
|
||||
VAT is out of scope</description>
|
||||
<success>BR-48</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:TaxTotal>
|
||||
<cac:TaxSubtotal>
|
||||
<cac:TaxCategory>
|
||||
<cbc:ID>O</cbc:ID>
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID>VAT</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:TaxCategory>
|
||||
</cac:TaxSubtotal>
|
||||
</cac:TaxTotal>
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when VAT category percentage is missing, except if VAT is out
|
||||
of scope</description>
|
||||
<error>BR-48</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:TaxTotal>
|
||||
<cac:TaxSubtotal>
|
||||
<cac:TaxCategory>
|
||||
<cbc:ID>S</cbc:ID>
|
||||
<!-- <cbc:Percent>25</cbc:Percent> -->
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID>VAT</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:TaxCategory>
|
||||
</cac:TaxSubtotal>
|
||||
</cac:TaxTotal>
|
||||
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,41 @@
|
||||
<?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-49</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that Paymentmeans code is present for all payment instructions</description>
|
||||
<success>BR-49</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:PaymentMeans>
|
||||
<cbc:PaymentMeansCode>31</cbc:PaymentMeansCode>
|
||||
</cac:PaymentMeans>
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when payment means code is missing</description>
|
||||
<error>BR-49</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:PaymentMeans>
|
||||
<!-- <cbc:PaymentMeansCode>31</cbc:PaymentMeansCode> -->
|
||||
</cac:PaymentMeans>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,102 @@
|
||||
<?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-50</scope>
|
||||
</assert>
|
||||
<test id="1">
|
||||
<assert>
|
||||
<description>Verify that a payment account identifier is be present if Credit Transfer identification information is provided in the CreditNote.</description>
|
||||
<success>BR-50</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:PaymentMeans>
|
||||
<cbc:PaymentMeansCode>30</cbc:PaymentMeansCode>
|
||||
<cac:PayeeFinancialAccount>
|
||||
<cbc:ID>123</cbc:ID>
|
||||
</cac:PayeeFinancialAccount>
|
||||
</cac:PaymentMeans>
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test id="2">
|
||||
<assert>
|
||||
<description>Verify that a payment account identifier is be present if Credit Transfer identification information is provided in the CreditNote.</description>
|
||||
<success>BR-50</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:PaymentMeans>
|
||||
<cbc:PaymentMeansCode>58</cbc:PaymentMeansCode>
|
||||
<cac:PayeeFinancialAccount>
|
||||
<cbc:ID>123</cbc:ID>
|
||||
</cac:PayeeFinancialAccount>
|
||||
</cac:PaymentMeans>
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test id="3">
|
||||
<assert>
|
||||
<description>Verify that a payment account identifier is be present if Credit Transfer identification information is provided in the CreditNote.</description>
|
||||
<success>BR-50</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:PaymentMeans>
|
||||
<cbc:PaymentMeansCode>31</cbc:PaymentMeansCode>
|
||||
<!-- <cac:PayeeFinancialAccount>
|
||||
<cbc:ID>123</cbc:ID>
|
||||
</cac:PayeeFinancialAccount>-->
|
||||
</cac:PaymentMeans>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test id="4">
|
||||
<assert>
|
||||
<description>Trigger error if a payment account identifier is not present when Credit Transfer identification information is provided in the CreditNote.</description>
|
||||
<error>BR-50</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:PaymentMeans>
|
||||
<cbc:PaymentMeansCode>30</cbc:PaymentMeansCode>
|
||||
<cac:PayeeFinancialAccount>
|
||||
<!-- <cbc:ID>123</cbc:ID> -->
|
||||
</cac:PayeeFinancialAccount>
|
||||
</cac:PaymentMeans>
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test id="5">
|
||||
<assert>
|
||||
<description>Trigger error if a payment account identifier is not present when Credit Transfer identification information is provided in the CreditNote.</description>
|
||||
<error>BR-50</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:PaymentMeans>
|
||||
<cbc:PaymentMeansCode>58</cbc:PaymentMeansCode>
|
||||
<cac:PayeeFinancialAccount>
|
||||
<!-- <cbc:ID>123</cbc:ID> -->
|
||||
</cac:PayeeFinancialAccount>
|
||||
</cac:PaymentMeans>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,45 @@
|
||||
<?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-51</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that less than 10 digits is given in the card number</description>
|
||||
<success>BR-51</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:PaymentMeans>
|
||||
<cac:CardAccount>
|
||||
<cbc:PrimaryAccountNumberID>12345</cbc:PrimaryAccountNumberID>
|
||||
</cac:CardAccount>
|
||||
</cac:PaymentMeans>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error if more than 10 digits is given in the card number</description>
|
||||
<warning>BR-51</warning>
|
||||
</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:PaymentMeans>
|
||||
<cac:CardAccount>
|
||||
<cbc:PrimaryAccountNumberID>12345678901</cbc:PrimaryAccountNumberID>
|
||||
</cac:CardAccount>
|
||||
</cac:PaymentMeans>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,47 @@
|
||||
<?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-52</scope>
|
||||
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that document id is present for additional documents</description>
|
||||
<success>BR-52</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:AdditionalDocumentReference>
|
||||
<cbc:ID>Doc1</cbc:ID>
|
||||
</cac:AdditionalDocumentReference>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when document ID is missing</description>
|
||||
<error>BR-52</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:AdditionalDocumentReference>
|
||||
<!-- <cbc:ID>Doc1</cbc:ID> -->
|
||||
</cac:AdditionalDocumentReference>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,57 @@
|
||||
<?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-53</scope>
|
||||
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that total VAT amount in accounting currency is provided, when
|
||||
credit note currency != VAT currency</description>
|
||||
<success>BR-53</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">
|
||||
<cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>
|
||||
<cbc:TaxCurrencyCode>NOK</cbc:TaxCurrencyCode>
|
||||
<cac:TaxTotal>
|
||||
<cbc:TaxAmount currencyID="EUR">100</cbc:TaxAmount>
|
||||
</cac:TaxTotal>
|
||||
<cac:TaxTotal>
|
||||
<cbc:TaxAmount currencyID="NOK">800</cbc:TaxAmount>
|
||||
</cac:TaxTotal>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when total VAT amount in accounting currency is missing, and
|
||||
credit note currency != VAT currency</description>
|
||||
<error>BR-53</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">
|
||||
<cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>
|
||||
<cbc:TaxCurrencyCode>NOK</cbc:TaxCurrencyCode>
|
||||
|
||||
<cac:TaxTotal>
|
||||
<cbc:TaxAmount currencyID="EUR">1000</cbc:TaxAmount>
|
||||
</cac:TaxTotal>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,97 @@
|
||||
<?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-54</scope>
|
||||
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that item attributes contain both value and name</description>
|
||||
<success>BR-54</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:CreditNoteLine>
|
||||
<cac:Item>
|
||||
<cac:AdditionalItemProperty>
|
||||
<cbc:Name>Color</cbc:Name>
|
||||
<cbc:Value>Black</cbc:Value>
|
||||
</cac:AdditionalItemProperty>
|
||||
</cac:Item>
|
||||
</cac:CreditNoteLine>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error if item attributes does not contain both name and value</description>
|
||||
<error>BR-54</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:CreditNoteLine>
|
||||
<cac:Item>
|
||||
<cac:AdditionalItemProperty>
|
||||
<!-- <cbc:Name>Color</cbc:Name> -->
|
||||
<cbc:Value>Black</cbc:Value>
|
||||
</cac:AdditionalItemProperty>
|
||||
</cac:Item>
|
||||
</cac:CreditNoteLine>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error if item attributes does not contain both name and value</description>
|
||||
<error>BR-54</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:CreditNoteLine>
|
||||
<cac:Item>
|
||||
<cac:AdditionalItemProperty>
|
||||
<cbc:Name>Color</cbc:Name>
|
||||
<!-- <cbc:Value>Black</cbc:Value> -->
|
||||
</cac:AdditionalItemProperty>
|
||||
</cac:Item>
|
||||
</cac:CreditNoteLine>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error if item attributes does not contain both name and value</description>
|
||||
<error>BR-54</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:CreditNoteLine>
|
||||
<cac:Item>
|
||||
<cac:AdditionalItemProperty>
|
||||
<!-- <cbc:Name>Color</cbc:Name> -->
|
||||
<!-- <cbc:Value>Black</cbc:Value> -->
|
||||
</cac:AdditionalItemProperty>
|
||||
</cac:Item>
|
||||
</cac:CreditNoteLine>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
</testSet>
|
@@ -0,0 +1,65 @@
|
||||
<?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>
|
@@ -0,0 +1,73 @@
|
||||
<?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>
|
||||
<description>Each Seller tax representative party (BG-11) shall have a Seller tax representative VAT identifier (BT-63).</description>
|
||||
<scope>BR-56</scope>
|
||||
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
|
||||
<success>BR-56</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:TaxRepresentativeParty>
|
||||
<cac:PartyTaxScheme>
|
||||
<cbc:CompanyID>EL9999</cbc:CompanyID>
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID>VAT</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:PartyTaxScheme>
|
||||
</cac:TaxRepresentativeParty>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
|
||||
<error>BR-56</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:TaxRepresentativeParty>
|
||||
<!-- <cac:PartyTaxScheme>
|
||||
<cbc:CompanyID>EL9999</cbc:CompanyID>
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID>VAT</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:PartyTaxScheme>-->
|
||||
</cac:TaxRepresentativeParty>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<error>BR-56</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:TaxRepresentativeParty>
|
||||
<cac:PartyTaxScheme>
|
||||
<cbc:CompanyID>EL9999</cbc:CompanyID>
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID>COM</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:PartyTaxScheme>
|
||||
</cac:TaxRepresentativeParty>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,69 @@
|
||||
<?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-57</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that each Deliver to address contain a Deliver to country code</description>
|
||||
<success>BR-57</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:Delivery>
|
||||
<cac:DeliveryLocation>
|
||||
<cac:Address>
|
||||
<cac:Country>
|
||||
<cbc:IdentificationCode listID="ISO3166-1:Alpha2">NO</cbc:IdentificationCode>
|
||||
</cac:Country>
|
||||
</cac:Address>
|
||||
</cac:DeliveryLocation>
|
||||
</cac:Delivery>
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when a Deliver to address does not contain a Deliver to country code</description>
|
||||
<error>BR-57</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:Delivery>
|
||||
<cac:DeliveryLocation>
|
||||
<cac:Address>
|
||||
<!-- <cac:Country>
|
||||
<cbc:IdentificationCode listID="ISO3166-1:Alpha2">NO</cbc:IdentificationCode>
|
||||
</cac:Country> -->
|
||||
</cac:Address>
|
||||
</cac:DeliveryLocation>
|
||||
</cac:Delivery>
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when a Deliver to address does not contain a Deliver to country code</description>
|
||||
<error>BR-57</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:Delivery>
|
||||
<cac:DeliveryLocation>
|
||||
<cac:Address>
|
||||
<cac:Country>
|
||||
<!-- <cbc:IdentificationCode listID="ISO3166-1:Alpha2">NO</cbc:IdentificationCode> -->
|
||||
</cac:Country>
|
||||
</cac:Address>
|
||||
</cac:DeliveryLocation>
|
||||
</cac:Delivery>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,100 @@
|
||||
<?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-61</scope>
|
||||
</assert>
|
||||
<test id="1">
|
||||
<assert>
|
||||
<description>Verify that if the Payment means type is SEPA credit transfer, Local credit transfer or Non-SEPA international credit transfer, the Payment account identifier shall be present.</description>
|
||||
<success>BR-61</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:PaymentMeans>
|
||||
<cbc:PaymentMeansCode>30</cbc:PaymentMeansCode>
|
||||
<cac:PayeeFinancialAccount>
|
||||
<cbc:ID>123</cbc:ID>
|
||||
</cac:PayeeFinancialAccount>
|
||||
</cac:PaymentMeans>
|
||||
</Invoice>
|
||||
</test>
|
||||
<test id="2">
|
||||
<assert>
|
||||
<description>Verify that if the Payment means type is SEPA credit transfer, Local credit transfer or Non-SEPA international credit transfer, the Payment account identifier shall be present.</description>
|
||||
<success>BR-61</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:PaymentMeans>
|
||||
<cbc:PaymentMeansCode>57</cbc:PaymentMeansCode>
|
||||
<cac:PayeeFinancialAccount>
|
||||
<cbc:ID>123</cbc:ID>
|
||||
</cac:PayeeFinancialAccount>
|
||||
</cac:PaymentMeans>
|
||||
</Invoice>
|
||||
</test>
|
||||
<test id="3">
|
||||
<assert>
|
||||
<description>Verify that if the Payment means type is SEPA credit transfer, Local credit transfer or Non-SEPA international credit transfer, the Payment account identifier shall be present.</description>
|
||||
<success>BR-61</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:PaymentMeans>
|
||||
<cbc:PaymentMeansCode>49</cbc:PaymentMeansCode>
|
||||
<!-- <cac:PayeeFinancialAccount>
|
||||
<cbc:ID>123</cbc:ID>
|
||||
</cac:PayeeFinancialAccount> -->
|
||||
</cac:PaymentMeans>
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
<test id="4">
|
||||
<assert>
|
||||
<description>Trigger error if the Payment means type is SEPA credit transfer, Local credit transfer or Non-SEPA international credit transfer, and the Payment account identifier is not present.</description>
|
||||
<error>BR-61</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:PaymentMeans>
|
||||
<cbc:PaymentMeansCode>30</cbc:PaymentMeansCode>
|
||||
<cac:PayeeFinancialAccount>
|
||||
<!-- <cbc:ID>123</cbc:ID> -->
|
||||
</cac:PayeeFinancialAccount>
|
||||
</cac:PaymentMeans>
|
||||
</Invoice>
|
||||
</test>
|
||||
<test id="5">
|
||||
<assert>
|
||||
<description>Trigger error if the Payment means type is SEPA credit transfer, Local credit transfer or Non-SEPA international credit transfer, and the Payment account identifier is not present.</description>
|
||||
<error>BR-61</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:PaymentMeans>
|
||||
<cbc:PaymentMeansCode>58</cbc:PaymentMeansCode>
|
||||
<!-- <cac:PayeeFinancialAccount>
|
||||
<cbc:ID>123</cbc:ID>
|
||||
</cac:PayeeFinancialAccount> -->
|
||||
</cac:PaymentMeans>
|
||||
</Invoice>
|
||||
</test>
|
||||
</testSet>
|
@@ -0,0 +1,46 @@
|
||||
<?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-62</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that the Seller electronic address have a Scheme identifier</description>
|
||||
<success>BR-62</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:AccountingSupplierParty>
|
||||
<cac:Party>
|
||||
<cbc:EndpointID schemeID="NO:ORGNR">123456785</cbc:EndpointID>
|
||||
</cac:Party>
|
||||
</cac:AccountingSupplierParty>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when the Seller electronic address does not have a Scheme identifier</description>
|
||||
<error>BR-62</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:AccountingSupplierParty>
|
||||
<cac:Party>
|
||||
<cbc:EndpointID>123456785</cbc:EndpointID>
|
||||
</cac:Party>
|
||||
</cac:AccountingSupplierParty>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,46 @@
|
||||
<?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-63</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that the Buyer electronic address have a Scheme identifier</description>
|
||||
<success>BR-63</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:AccountingCustomerParty>
|
||||
<cac:Party>
|
||||
<cbc:EndpointID schemeID="NO:ORGNR">123456785</cbc:EndpointID>
|
||||
</cac:Party>
|
||||
</cac:AccountingCustomerParty>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when the Buyer electronic address does not have a Scheme identifier</description>
|
||||
<error>BR-63</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:AccountingCustomerParty>
|
||||
<cac:Party>
|
||||
<cbc:EndpointID>123456785</cbc:EndpointID>
|
||||
</cac:Party>
|
||||
</cac:AccountingCustomerParty>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,50 @@
|
||||
<?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-64</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that the Item standard identifier shall have a Scheme identifier</description>
|
||||
<success>BR-64</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:CreditNoteLine>
|
||||
<cac:Item>
|
||||
<cac:StandardItemIdentification>
|
||||
<cbc:ID schemeID="GTIN">1234567890125</cbc:ID>
|
||||
</cac:StandardItemIdentification>
|
||||
</cac:Item>
|
||||
</cac:CreditNoteLine>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when the Item standard identifier does not have a Scheme identifier</description>
|
||||
<error>BR-64</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:CreditNoteLine>
|
||||
<cac:Item>
|
||||
<cac:StandardItemIdentification>
|
||||
<cbc:ID>1234567890125</cbc:ID>
|
||||
</cac:StandardItemIdentification>
|
||||
</cac:Item>
|
||||
</cac:CreditNoteLine>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,50 @@
|
||||
<?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-65</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that the Item classification identifier have a Scheme identifier</description>
|
||||
<success>BR-65</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:CreditNoteLine>
|
||||
<cac:Item>
|
||||
<cac:CommodityClassification>
|
||||
<cbc:ItemClassificationCode listID="CPV">65434567</cbc:ItemClassificationCode>
|
||||
</cac:CommodityClassification>
|
||||
</cac:Item>
|
||||
</cac:CreditNoteLine>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when the Item classification identifier does not have a Scheme identifier</description>
|
||||
<error>BR-65</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:CreditNoteLine>
|
||||
<cac:Item>
|
||||
<cac:CommodityClassification>
|
||||
<cbc:ItemClassificationCode>65434567</cbc:ItemClassificationCode>
|
||||
</cac:CommodityClassification>
|
||||
</cac:Item>
|
||||
</cac:CreditNoteLine>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,40 @@
|
||||
<?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>
|
||||
<description>Verify that Payment means in a credit note MUST be coded using UNCL4461 code list</description>
|
||||
<scope>BR-CL-16</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<success>BR-CL-16</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:PaymentMeans>
|
||||
<cbc:PaymentMeansCode>31</cbc:PaymentMeansCode>
|
||||
</cac:PaymentMeans>
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<error>BR-CL-16</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:PaymentMeans>
|
||||
<cbc:PaymentMeansCode>99</cbc:PaymentMeansCode>
|
||||
</cac:PaymentMeans>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
</testSet>
|
||||
|
@@ -0,0 +1,51 @@
|
||||
<?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>
|
||||
<description>Verify that credit note tax categories MUST be coded using UNCL 5305 code list</description>
|
||||
<scope>BR-CL-18</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
|
||||
<success>BR-CL-18</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:InvoiceLine>
|
||||
<cac:Item>
|
||||
<cac:ClassifiedTaxCategory>
|
||||
<cbc:ID>AE</cbc:ID>
|
||||
</cac:ClassifiedTaxCategory>
|
||||
</cac:Item>
|
||||
</cac:InvoiceLine>
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<error>BR-CL-18</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:InvoiceLine>
|
||||
<cac:Item>
|
||||
<cac:ClassifiedTaxCategory>
|
||||
<cbc:ID>AA</cbc:ID>
|
||||
</cac:ClassifiedTaxCategory>
|
||||
</cac:Item>
|
||||
</cac:InvoiceLine>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
</testSet>
|
||||
|
@@ -0,0 +1,46 @@
|
||||
<?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>
|
||||
<description>Trigger error if Mime code in attribute is not a valid
|
||||
MIMEMediaType</description>
|
||||
<scope>BR-CL-24</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<success>BR-CL-24</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:AdditionalDocumentReference>
|
||||
<cac:Attachment>
|
||||
<cbc:EmbeddedDocumentBinaryObject mimeCode="application/pdf"
|
||||
>test</cbc:EmbeddedDocumentBinaryObject>
|
||||
</cac:Attachment>
|
||||
</cac:AdditionalDocumentReference>
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<error>BR-CL-24</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:AdditionalDocumentReference>
|
||||
<cac:Attachment>
|
||||
<cbc:EmbeddedDocumentBinaryObject mimeCode="application/pxf"
|
||||
>test</cbc:EmbeddedDocumentBinaryObject>
|
||||
</cac:Attachment>
|
||||
</cac:AdditionalDocumentReference>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,230 @@
|
||||
<?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>
|
||||
<description>Verify that CreditNote total amount without VAT = Σ CreditNote line net amount -
|
||||
Sum of allowances on document level + Sum of charges on document
|
||||
level.</description>
|
||||
<scope>BR-CO-13</scope>
|
||||
</assert>
|
||||
<test id="1">
|
||||
<assert>
|
||||
|
||||
<success>BR-CO-13</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:LegalMonetaryTotal>
|
||||
<cbc:LineExtensionAmount>1000</cbc:LineExtensionAmount>
|
||||
<cbc:TaxExclusiveAmount>1000</cbc:TaxExclusiveAmount>
|
||||
<cbc:AllowanceTotalAmount>100</cbc:AllowanceTotalAmount>
|
||||
<cbc:ChargeTotalAmount>100</cbc:ChargeTotalAmount>
|
||||
</cac:LegalMonetaryTotal>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test id="2">
|
||||
<assert>
|
||||
<success>BR-CO-13</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:LegalMonetaryTotal>
|
||||
<cbc:LineExtensionAmount>1000</cbc:LineExtensionAmount>
|
||||
<cbc:TaxExclusiveAmount>900</cbc:TaxExclusiveAmount>
|
||||
<cbc:AllowanceTotalAmount>100</cbc:AllowanceTotalAmount>
|
||||
</cac:LegalMonetaryTotal>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test id="3">
|
||||
<assert>
|
||||
<success>BR-CO-13</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:LegalMonetaryTotal>
|
||||
<cbc:LineExtensionAmount>1000</cbc:LineExtensionAmount>
|
||||
<cbc:TaxExclusiveAmount>1100</cbc:TaxExclusiveAmount>
|
||||
<cbc:ChargeTotalAmount>100</cbc:ChargeTotalAmount>
|
||||
</cac:LegalMonetaryTotal>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test id="4">
|
||||
<assert>
|
||||
<success>BR-CO-13</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:LegalMonetaryTotal>
|
||||
<cbc:LineExtensionAmount>1000</cbc:LineExtensionAmount>
|
||||
<cbc:TaxExclusiveAmount>1000</cbc:TaxExclusiveAmount>
|
||||
</cac:LegalMonetaryTotal>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test id="5">
|
||||
<assert>
|
||||
<success>BR-CO-13</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:LegalMonetaryTotal>
|
||||
<cbc:LineExtensionAmount>-100</cbc:LineExtensionAmount>
|
||||
<cbc:TaxExclusiveAmount>00</cbc:TaxExclusiveAmount>
|
||||
<cbc:ChargeTotalAmount>100</cbc:ChargeTotalAmount>
|
||||
</cac:LegalMonetaryTotal>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test id="6">
|
||||
<assert>
|
||||
<success>BR-CO-13</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:LegalMonetaryTotal>
|
||||
<cbc:LineExtensionAmount>-1000</cbc:LineExtensionAmount>
|
||||
<cbc:TaxExclusiveAmount>-1000</cbc:TaxExclusiveAmount>
|
||||
<cbc:AllowanceTotalAmount>100</cbc:AllowanceTotalAmount>
|
||||
<cbc:ChargeTotalAmount>100</cbc:ChargeTotalAmount>
|
||||
</cac:LegalMonetaryTotal>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test id="7">
|
||||
<assert>
|
||||
<success>BR-CO-13</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:LegalMonetaryTotal>
|
||||
<cbc:LineExtensionAmount>0</cbc:LineExtensionAmount>
|
||||
<cbc:TaxExclusiveAmount>-100</cbc:TaxExclusiveAmount>
|
||||
<cbc:AllowanceTotalAmount>100</cbc:AllowanceTotalAmount>
|
||||
</cac:LegalMonetaryTotal>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test id="8">
|
||||
<assert>
|
||||
<success>BR-CO-13</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:LegalMonetaryTotal>
|
||||
<cbc:LineExtensionAmount>100.00</cbc:LineExtensionAmount>
|
||||
<cbc:TaxExclusiveAmount>00.0</cbc:TaxExclusiveAmount>
|
||||
<cbc:AllowanceTotalAmount>100</cbc:AllowanceTotalAmount>
|
||||
</cac:LegalMonetaryTotal>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test id="9">
|
||||
<assert>
|
||||
<error>BR-CO-13</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:LegalMonetaryTotal>
|
||||
<cbc:LineExtensionAmount>1000</cbc:LineExtensionAmount>
|
||||
<cbc:TaxExclusiveAmount>1000</cbc:TaxExclusiveAmount>
|
||||
<cbc:AllowanceTotalAmount>100</cbc:AllowanceTotalAmount>
|
||||
<cbc:ChargeTotalAmount>200</cbc:ChargeTotalAmount>
|
||||
</cac:LegalMonetaryTotal>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test id="10">
|
||||
<assert>
|
||||
<error>BR-CO-13</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:LegalMonetaryTotal>
|
||||
<cbc:LineExtensionAmount>-100</cbc:LineExtensionAmount>
|
||||
<cbc:TaxExclusiveAmount>100</cbc:TaxExclusiveAmount>
|
||||
<cbc:AllowanceTotalAmount>100</cbc:AllowanceTotalAmount>
|
||||
<cbc:ChargeTotalAmount>200</cbc:ChargeTotalAmount>
|
||||
</cac:LegalMonetaryTotal>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test id="11">
|
||||
<assert>
|
||||
<error>BR-CO-13</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:LegalMonetaryTotal>
|
||||
<cbc:LineExtensionAmount>1100</cbc:LineExtensionAmount>
|
||||
<cbc:TaxExclusiveAmount>1000.01</cbc:TaxExclusiveAmount>
|
||||
<cbc:AllowanceTotalAmount>100</cbc:AllowanceTotalAmount>
|
||||
</cac:LegalMonetaryTotal>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test id="12">
|
||||
<assert>
|
||||
<error>BR-CO-13</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:LegalMonetaryTotal>
|
||||
<cbc:LineExtensionAmount>1000</cbc:LineExtensionAmount>
|
||||
<cbc:TaxExclusiveAmount>1001</cbc:TaxExclusiveAmount>
|
||||
<cbc:AllowanceTotalAmount>0</cbc:AllowanceTotalAmount>
|
||||
<cbc:ChargeTotalAmount>0</cbc:ChargeTotalAmount>
|
||||
</cac:LegalMonetaryTotal>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test id="13">
|
||||
<assert>
|
||||
<error>BR-CO-13</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:LegalMonetaryTotal>
|
||||
<cbc:LineExtensionAmount>-1000</cbc:LineExtensionAmount>
|
||||
<cbc:TaxExclusiveAmount>-1000</cbc:TaxExclusiveAmount>
|
||||
<cbc:AllowanceTotalAmount>100</cbc:AllowanceTotalAmount>
|
||||
</cac:LegalMonetaryTotal>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
</testSet>
|
@@ -0,0 +1,90 @@
|
||||
<?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-CO-15</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that CreditNote total amount with VAT = CreditNote total amount without VAT + CreditNote total VAT amount, when there exists TaxCurrency != Document Currency</description>
|
||||
<success>BR-CO-15</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">
|
||||
<cbc:DocumentCurrencyCode>DKK</cbc:DocumentCurrencyCode>
|
||||
<cbc:TaxCurrencyCode>EUR</cbc:TaxCurrencyCode>
|
||||
|
||||
<cac:TaxTotal>
|
||||
<cbc:TaxAmount currencyID="DKK">675.00</cbc:TaxAmount>
|
||||
</cac:TaxTotal>
|
||||
<cac:TaxTotal>
|
||||
<cbc:TaxAmount currencyID="EUR">628.62</cbc:TaxAmount>
|
||||
</cac:TaxTotal>
|
||||
<cac:LegalMonetaryTotal>
|
||||
<cbc:TaxExclusiveAmount currencyID="DKK">4000.00</cbc:TaxExclusiveAmount>
|
||||
<cbc:TaxInclusiveAmount currencyID="DKK">4675.00</cbc:TaxInclusiveAmount>
|
||||
<cbc:PayableAmount currencyID="DKK">4675.00</cbc:PayableAmount>
|
||||
</cac:LegalMonetaryTotal>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that CreditNote total amount with VAT = CreditNote total amount without VAT + CreditNote total VAT amount, when there exists TaxCurrency != Document Currency</description>
|
||||
<success>BR-CO-15</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">
|
||||
<cbc:DocumentCurrencyCode>DKK</cbc:DocumentCurrencyCode>
|
||||
<cbc:TaxCurrencyCode>NOK</cbc:TaxCurrencyCode>
|
||||
|
||||
<cac:TaxTotal>
|
||||
<cbc:TaxAmount currencyID="DKK">700.00</cbc:TaxAmount>
|
||||
</cac:TaxTotal>
|
||||
<cac:TaxTotal>
|
||||
<cbc:TaxAmount currencyID="NOK">715</cbc:TaxAmount>
|
||||
</cac:TaxTotal>
|
||||
<cac:LegalMonetaryTotal>
|
||||
<cbc:TaxExclusiveAmount currencyID="DKK">5000.00</cbc:TaxExclusiveAmount>
|
||||
<cbc:TaxInclusiveAmount currencyID="DKK">5700.00</cbc:TaxInclusiveAmount>
|
||||
<cbc:PayableAmount currencyID="DKK">5700.00</cbc:PayableAmount>
|
||||
</cac:LegalMonetaryTotal>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error if an CreditNote total amount with VAT != CreditNote total amount without VAT + CreditNote total VAT amount, when there exists TaxCurrency != Document Currency</description>
|
||||
<error>BR-CO-15</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">
|
||||
<cbc:DocumentCurrencyCode>NOK</cbc:DocumentCurrencyCode>
|
||||
<cbc:TaxCurrencyCode>DKK</cbc:TaxCurrencyCode>
|
||||
|
||||
<cac:TaxTotal>
|
||||
<cbc:TaxAmount currencyID="DKK">700.00</cbc:TaxAmount>
|
||||
</cac:TaxTotal>
|
||||
<cac:TaxTotal>
|
||||
<cbc:TaxAmount currencyID="NOK">715</cbc:TaxAmount>
|
||||
</cac:TaxTotal>
|
||||
<cac:LegalMonetaryTotal>
|
||||
<cbc:TaxExclusiveAmount currencyID="NOK">5000.00</cbc:TaxExclusiveAmount>
|
||||
<cbc:TaxInclusiveAmount currencyID="NOK">5700.00</cbc:TaxInclusiveAmount>
|
||||
<cbc:PayableAmount currencyID="NOK">5700.00</cbc:PayableAmount>
|
||||
</cac:LegalMonetaryTotal>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
</testSet>
|
@@ -0,0 +1,186 @@
|
||||
<?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-CO-15</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that CreditNote total amount with VAT = CreditNote total amount without VAT + CreditNote total VAT amount.</description>
|
||||
<success>BR-CO-15</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">
|
||||
<cbc:DocumentCurrencyCode>NOK</cbc:DocumentCurrencyCode>
|
||||
<cac:TaxTotal>
|
||||
<cbc:TaxAmount currencyID="NOK">300</cbc:TaxAmount>
|
||||
</cac:TaxTotal>
|
||||
|
||||
<cac:LegalMonetaryTotal>
|
||||
<cbc:TaxExclusiveAmount currencyID="NOK">1000</cbc:TaxExclusiveAmount>
|
||||
<cbc:TaxInclusiveAmount currencyID="NOK">1300</cbc:TaxInclusiveAmount>
|
||||
</cac:LegalMonetaryTotal>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that CreditNote total amount with VAT = CreditNote total amount without VAT + CreditNote total VAT amount.</description>
|
||||
<success>BR-CO-15</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">
|
||||
<cbc:DocumentCurrencyCode>NOK</cbc:DocumentCurrencyCode>
|
||||
<cac:TaxTotal>
|
||||
<cbc:TaxAmount currencyID="NOK">300</cbc:TaxAmount>
|
||||
</cac:TaxTotal>
|
||||
|
||||
<cac:LegalMonetaryTotal>
|
||||
<cbc:TaxExclusiveAmount currencyID="NOK">-100</cbc:TaxExclusiveAmount>
|
||||
<cbc:TaxInclusiveAmount currencyID="NOK">200</cbc:TaxInclusiveAmount>
|
||||
</cac:LegalMonetaryTotal>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that CreditNote total amount with VAT = CreditNote total amount without VAT + CreditNote total VAT amount.</description>
|
||||
<success>BR-CO-15</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">
|
||||
<cbc:DocumentCurrencyCode>NOK</cbc:DocumentCurrencyCode>
|
||||
<cac:TaxTotal>
|
||||
<cbc:TaxAmount currencyID="NOK">100</cbc:TaxAmount>
|
||||
</cac:TaxTotal>
|
||||
|
||||
<cac:LegalMonetaryTotal>
|
||||
<cbc:TaxExclusiveAmount currencyID="NOK">-100</cbc:TaxExclusiveAmount>
|
||||
<cbc:TaxInclusiveAmount currencyID="NOK">0.0</cbc:TaxInclusiveAmount>
|
||||
</cac:LegalMonetaryTotal>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that CreditNote total amount with VAT = CreditNote total amount without VAT + CreditNote total VAT amount.</description>
|
||||
<success>BR-CO-15</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">
|
||||
<cbc:DocumentCurrencyCode>NOK</cbc:DocumentCurrencyCode>
|
||||
<cbc:TaxCurrencyCode>NOK</cbc:TaxCurrencyCode>
|
||||
<cac:TaxTotal>
|
||||
<cbc:TaxAmount currencyID="NOK">0</cbc:TaxAmount>
|
||||
</cac:TaxTotal>
|
||||
|
||||
<cac:LegalMonetaryTotal>
|
||||
<cbc:TaxExclusiveAmount currencyID="NOK">0.00</cbc:TaxExclusiveAmount>
|
||||
<cbc:TaxInclusiveAmount currencyID="NOK">0.0</cbc:TaxInclusiveAmount>
|
||||
</cac:LegalMonetaryTotal>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error if CreditNote total amount with VAT != CreditNote total amount without VAT + CreditNote total VAT amount</description>
|
||||
<error>BR-CO-15</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">
|
||||
<cbc:DocumentCurrencyCode>NOK</cbc:DocumentCurrencyCode>
|
||||
<cac:TaxTotal>
|
||||
<cbc:TaxAmount currencyID="NOK">250</cbc:TaxAmount>
|
||||
</cac:TaxTotal>
|
||||
|
||||
<cac:LegalMonetaryTotal>
|
||||
<cbc:TaxExclusiveAmount currencyID="NOK">1000.00</cbc:TaxExclusiveAmount>
|
||||
<cbc:TaxInclusiveAmount currencyID="NOK">1250.01</cbc:TaxInclusiveAmount>
|
||||
</cac:LegalMonetaryTotal>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error if CreditNote total amount with VAT != CreditNote total amount without VAT + CreditNote total VAT amount</description>
|
||||
<error>BR-CO-15</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">
|
||||
<cbc:DocumentCurrencyCode>NOK</cbc:DocumentCurrencyCode>
|
||||
<cac:TaxTotal>
|
||||
<cbc:TaxAmount currencyID="NOK">0</cbc:TaxAmount>
|
||||
</cac:TaxTotal>
|
||||
|
||||
<cac:LegalMonetaryTotal>
|
||||
<cbc:TaxExclusiveAmount currencyID="NOK">1000.00</cbc:TaxExclusiveAmount>
|
||||
<cbc:TaxInclusiveAmount currencyID="NOK">1250.00</cbc:TaxInclusiveAmount>
|
||||
</cac:LegalMonetaryTotal>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error if CreditNote total amount with VAT != CreditNote total amount without VAT + CreditNote total VAT amount</description>
|
||||
<error>BR-CO-15</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">
|
||||
<cbc:DocumentCurrencyCode>NOK</cbc:DocumentCurrencyCode>
|
||||
<cac:TaxTotal>
|
||||
<cbc:TaxAmount currencyID="NOK">100</cbc:TaxAmount>
|
||||
</cac:TaxTotal>
|
||||
|
||||
<cac:LegalMonetaryTotal>
|
||||
<cbc:TaxExclusiveAmount currencyID="NOK">-100.00</cbc:TaxExclusiveAmount>
|
||||
<cbc:TaxInclusiveAmount currencyID="NOK">0.01</cbc:TaxInclusiveAmount>
|
||||
</cac:LegalMonetaryTotal>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error if different tax amounts of the same currency are available</description>
|
||||
<error>BR-CO-15</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">
|
||||
<cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>
|
||||
<cac:TaxTotal>
|
||||
<cbc:TaxAmount currencyID="EUR">700.00</cbc:TaxAmount>
|
||||
</cac:TaxTotal>
|
||||
<cac:TaxTotal>
|
||||
<cbc:TaxAmount currencyID="EUR">715</cbc:TaxAmount>
|
||||
</cac:TaxTotal>
|
||||
<cac:LegalMonetaryTotal>
|
||||
<cbc:TaxExclusiveAmount currencyID="EUR">5000.00</cbc:TaxExclusiveAmount>
|
||||
<cbc:TaxInclusiveAmount currencyID="EUR">5700.00</cbc:TaxInclusiveAmount>
|
||||
<cbc:PayableAmount currencyID="EUR">5700.00</cbc:PayableAmount>
|
||||
</cac:LegalMonetaryTotal>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,132 @@
|
||||
<?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>
|
||||
<description>Verify that rule does not fire on Credit Notes</description>
|
||||
<scope>BR-CO-25</scope>
|
||||
</assert>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that rule does not fire on Credit Notes
|
||||
</description>
|
||||
<success>BR-CO-25</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:PaymentMeans>
|
||||
<cbc:PaymentDueDate>2018-08-08</cbc:PaymentDueDate>
|
||||
</cac:PaymentMeans>
|
||||
|
||||
<cac:LegalMonetaryTotal>
|
||||
<cbc:PayableAmount currencyID="NOK">1000.00</cbc:PayableAmount>
|
||||
</cac:LegalMonetaryTotal>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that rule does not fire on Credit Notes
|
||||
</description>
|
||||
<success>BR-CO-25</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:LegalMonetaryTotal>
|
||||
<cbc:PayableAmount currencyID="NOK">1000.00</cbc:PayableAmount>
|
||||
</cac:LegalMonetaryTotal>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that rule does not fire on Credit Notes
|
||||
</description>
|
||||
<success>BR-CO-25</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:LegalMonetaryTotal>
|
||||
<cbc:PayableAmount currencyID="NOK">0.00</cbc:PayableAmount>
|
||||
</cac:LegalMonetaryTotal>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that rule does not fire on Credit Notes
|
||||
</description>
|
||||
<success>BR-CO-25</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:LegalMonetaryTotal>
|
||||
<cbc:PayableAmount currencyID="NOK">-1000.00</cbc:PayableAmount>
|
||||
</cac:LegalMonetaryTotal>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that rule does not fire on Credit Notes
|
||||
</description>
|
||||
<success>BR-CO-25</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:PaymentTerms>
|
||||
<cbc:Note>Payment terms note</cbc:Note>
|
||||
</cac:PaymentTerms>
|
||||
|
||||
<cac:LegalMonetaryTotal>
|
||||
<cbc:PayableAmount currencyID="NOK">-1000.00</cbc:PayableAmount>
|
||||
</cac:LegalMonetaryTotal>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that rule does not fire on Credit Notes
|
||||
</description>
|
||||
<success>BR-CO-25</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:PaymentTerms>
|
||||
<cbc:Note>Payment terms note</cbc:Note>
|
||||
</cac:PaymentTerms>
|
||||
|
||||
<cac:LegalMonetaryTotal>
|
||||
<cbc:PayableAmount currencyID="NOK">1000.00</cbc:PayableAmount>
|
||||
</cac:LegalMonetaryTotal>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,319 @@
|
||||
<?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>
|
||||
<description>An CreditNote that contains a line, a document level allowance or charge where
|
||||
the item VAT category code is “E” shall contain in the VAT breakdown one VAT category
|
||||
code equal with "E".</description>
|
||||
|
||||
<scope>BR-E-01</scope>
|
||||
</assert>
|
||||
<test id="1">
|
||||
<assert>
|
||||
<success>BR-E-01</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:TaxTotal>
|
||||
<cac:TaxSubtotal>
|
||||
<cac:TaxCategory>
|
||||
<cbc:ID>E</cbc:ID>
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID>VAT</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:TaxCategory>
|
||||
</cac:TaxSubtotal>
|
||||
</cac:TaxTotal>
|
||||
|
||||
<cac:AllowanceCharge>
|
||||
<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
|
||||
<cac:TaxCategory>
|
||||
<cbc:ID>E</cbc:ID>
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID>VAT</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:TaxCategory>
|
||||
</cac:AllowanceCharge>
|
||||
|
||||
<cac:AllowanceCharge>
|
||||
<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
|
||||
<cac:TaxCategory>
|
||||
<cbc:ID>E</cbc:ID>
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID>VAT</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:TaxCategory>
|
||||
</cac:AllowanceCharge>
|
||||
|
||||
<cac:CreditNoteLine>
|
||||
<cac:Item>
|
||||
<cac:ClassifiedTaxCategory>
|
||||
<cbc:ID>E</cbc:ID>
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID>VAT</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:ClassifiedTaxCategory>
|
||||
</cac:Item>
|
||||
</cac:CreditNoteLine>
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test id="2">
|
||||
<assert>
|
||||
<success>BR-E-01</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:TaxTotal>
|
||||
<cac:TaxSubtotal>
|
||||
<cac:TaxCategory>
|
||||
<cbc:ID>E</cbc:ID>
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID>VAT</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:TaxCategory>
|
||||
</cac:TaxSubtotal>
|
||||
</cac:TaxTotal>
|
||||
|
||||
<cac:CreditNoteLine>
|
||||
<cac:Item>
|
||||
<cac:ClassifiedTaxCategory>
|
||||
<cbc:ID>E</cbc:ID>
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID>VAT</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:ClassifiedTaxCategory>
|
||||
</cac:Item>
|
||||
</cac:CreditNoteLine>
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test id="3">
|
||||
<assert>
|
||||
<success>BR-E-01</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:TaxTotal>
|
||||
<cac:TaxSubtotal>
|
||||
<cac:TaxCategory>
|
||||
<cbc:ID>E</cbc:ID>
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID>VAT</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:TaxCategory>
|
||||
</cac:TaxSubtotal>
|
||||
</cac:TaxTotal>
|
||||
|
||||
<cac:AllowanceCharge>
|
||||
<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
|
||||
<cac:TaxCategory>
|
||||
<cbc:ID>E</cbc:ID>
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID>VAT</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:TaxCategory>
|
||||
</cac:AllowanceCharge>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test id="4">
|
||||
<assert>
|
||||
<success>BR-E-01</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:TaxTotal>
|
||||
<cac:TaxSubtotal>
|
||||
<cac:TaxCategory>
|
||||
<cbc:ID>E</cbc:ID>
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID>VAT</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:TaxCategory>
|
||||
</cac:TaxSubtotal>
|
||||
</cac:TaxTotal>
|
||||
|
||||
<cac:AllowanceCharge>
|
||||
<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
|
||||
<cac:TaxCategory>
|
||||
<cbc:ID>E</cbc:ID>
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID>VAT</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:TaxCategory>
|
||||
</cac:AllowanceCharge>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test id="5">
|
||||
<assert>
|
||||
<error>BR-E-01</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:TaxTotal>
|
||||
<cac:TaxSubtotal>
|
||||
<cac:TaxCategory>
|
||||
<cbc:ID>S</cbc:ID>
|
||||
</cac:TaxCategory>
|
||||
</cac:TaxSubtotal>
|
||||
</cac:TaxTotal>
|
||||
|
||||
<cac:CreditNoteLine>
|
||||
<cac:Item>
|
||||
<cac:ClassifiedTaxCategory>
|
||||
<cbc:ID>E</cbc:ID>
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID>VAT</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:ClassifiedTaxCategory>
|
||||
</cac:Item>
|
||||
</cac:CreditNoteLine>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test id="6">
|
||||
<assert>
|
||||
<error>BR-E-01</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:TaxTotal>
|
||||
<cac:TaxSubtotal>
|
||||
<cac:TaxCategory>
|
||||
<cbc:ID>E</cbc:ID>
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID>VAT</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:TaxCategory>
|
||||
</cac:TaxSubtotal>
|
||||
</cac:TaxTotal>
|
||||
|
||||
<cac:TaxTotal>
|
||||
<cac:TaxSubtotal>
|
||||
<cac:TaxCategory>
|
||||
<cbc:ID>E</cbc:ID>
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID>VAT</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:TaxCategory>
|
||||
</cac:TaxSubtotal>
|
||||
</cac:TaxTotal>
|
||||
|
||||
<cac:AllowanceCharge>
|
||||
<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
|
||||
<cac:TaxCategory>
|
||||
<cbc:ID>E</cbc:ID>
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID>VAT</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:TaxCategory>
|
||||
</cac:AllowanceCharge>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test id="7">
|
||||
<assert>
|
||||
<error>BR-E-01</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:TaxTotal>
|
||||
<cac:TaxSubtotal>
|
||||
<cac:TaxCategory>
|
||||
<!-- <cbc:ID>E</cbc:ID> -->
|
||||
</cac:TaxCategory>
|
||||
</cac:TaxSubtotal>
|
||||
</cac:TaxTotal>
|
||||
|
||||
<cac:AllowanceCharge>
|
||||
<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
|
||||
<cac:TaxCategory>
|
||||
<cbc:ID>E</cbc:ID>
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID>VAT</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:TaxCategory>
|
||||
</cac:AllowanceCharge>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test id="8">
|
||||
<assert>
|
||||
<error>BR-E-01</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:TaxTotal>
|
||||
<cac:TaxSubtotal>
|
||||
<cac:TaxCategory>
|
||||
<cbc:ID>E</cbc:ID>
|
||||
<cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme> </cac:TaxCategory>
|
||||
</cac:TaxSubtotal>
|
||||
</cac:TaxTotal> -->
|
||||
|
||||
<cac:CreditNoteLine>
|
||||
<cac:Item>
|
||||
<cac:ClassifiedTaxCategory>
|
||||
<cbc:ID>E</cbc:ID>
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID>VAT</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:ClassifiedTaxCategory>
|
||||
</cac:Item>
|
||||
</cac:CreditNoteLine>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test id="9">
|
||||
<assert>
|
||||
<error>BR-E-01</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:TaxTotal>
|
||||
<!-- <cac:TaxSubtotal>
|
||||
<cac:TaxCategory>
|
||||
<cbc:ID>E</cbc:ID>
|
||||
<cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme> </cac:TaxCategory>
|
||||
</cac:TaxSubtotal> -->
|
||||
</cac:TaxTotal>
|
||||
|
||||
<cac:AllowanceCharge>
|
||||
<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
|
||||
<cac:TaxCategory>
|
||||
<cbc:ID>E</cbc:ID>
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID>VAT</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:TaxCategory>
|
||||
</cac:AllowanceCharge>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,122 @@
|
||||
<?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>
|
||||
<description>VAT category tax amount in VAT breakdown where VAT category code is "Standard rated" = the VAT category taxable amount multiplied by the VAT category rate </description>
|
||||
<scope>BR-S-09</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
|
||||
<success>BR-S-09</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:TaxTotal>
|
||||
<cac:TaxSubtotal>
|
||||
<cbc:TaxAmount>180</cbc:TaxAmount>
|
||||
<cbc:TaxableAmount>1200</cbc:TaxableAmount>
|
||||
<cac:TaxCategory>
|
||||
<cbc:ID>S</cbc:ID>
|
||||
<cbc:Percent>15</cbc:Percent>
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID>VAT</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:TaxCategory>
|
||||
</cac:TaxSubtotal>
|
||||
</cac:TaxTotal>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<success>BR-S-09</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:TaxTotal>
|
||||
<cac:TaxSubtotal>
|
||||
<cbc:TaxAmount>592.45</cbc:TaxAmount>
|
||||
<cbc:TaxableAmount>12342.61</cbc:TaxableAmount>
|
||||
<cac:TaxCategory>
|
||||
<cbc:ID>S</cbc:ID>
|
||||
<cbc:Percent>4.8</cbc:Percent>
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID>VAT</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:TaxCategory>
|
||||
</cac:TaxSubtotal>
|
||||
</cac:TaxTotal>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<success>BR-S-09</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:TaxTotal>
|
||||
<cac:TaxSubtotal>
|
||||
<cbc:TaxAmount>130</cbc:TaxAmount>
|
||||
<cbc:TaxableAmount>1000</cbc:TaxableAmount>
|
||||
<cac:TaxCategory>
|
||||
<cbc:ID>S</cbc:ID>
|
||||
<cbc:Percent>13</cbc:Percent>
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID>VAT</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:TaxCategory>
|
||||
</cac:TaxSubtotal>
|
||||
<cac:TaxSubtotal>
|
||||
<cbc:TaxAmount>47</cbc:TaxAmount>
|
||||
<cbc:TaxableAmount>979.15</cbc:TaxableAmount>
|
||||
<cac:TaxCategory>
|
||||
<cbc:ID>S</cbc:ID>
|
||||
<cbc:Percent>4.8</cbc:Percent>
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID>VAT</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:TaxCategory>
|
||||
</cac:TaxSubtotal>
|
||||
</cac:TaxTotal>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<error>BR-S-09</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:TaxTotal>
|
||||
<cac:TaxSubtotal>
|
||||
<cbc:TaxAmount>180</cbc:TaxAmount>
|
||||
<cbc:TaxableAmount>1100</cbc:TaxableAmount>
|
||||
<cac:TaxCategory>
|
||||
<cbc:ID> S</cbc:ID>
|
||||
<cbc:Percent>15</cbc:Percent>
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID>VAT</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:TaxCategory>
|
||||
</cac:TaxSubtotal>
|
||||
</cac:TaxTotal>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,82 @@
|
||||
<?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>
|
||||
<description>Sellers Party TaxScheme can occur only twice</description>
|
||||
<scope>UBL-SR-42</scope>
|
||||
</assert>
|
||||
<test id="1">
|
||||
<assert>
|
||||
<success>UBL-SR-42</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:AccountingSupplierParty>
|
||||
<cac:Party>
|
||||
<cac:PartyTaxScheme>
|
||||
<cbc:CompanyID>AF1234567890</cbc:CompanyID>
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID>VAT</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:PartyTaxScheme>
|
||||
<cac:PartyTaxScheme>
|
||||
<cbc:CompanyID>123456</cbc:CompanyID>
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID>TAX</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:PartyTaxScheme>
|
||||
</cac:Party>
|
||||
</cac:AccountingSupplierParty>
|
||||
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test id="2">
|
||||
<assert>
|
||||
<error>UBL-SR-42</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:AccountingSupplierParty>
|
||||
<cac:Party>
|
||||
<cac:PartyTaxScheme>
|
||||
<cbc:CompanyID>AF1234567890</cbc:CompanyID>
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID>VAT</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:PartyTaxScheme>
|
||||
<cac:PartyTaxScheme>
|
||||
<cbc:CompanyID>123456</cbc:CompanyID>
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID>TAX</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:PartyTaxScheme>
|
||||
<cac:PartyTaxScheme>
|
||||
<cbc:CompanyID>11112222</cbc:CompanyID>
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID>3rd_OCCURRENCE</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:PartyTaxScheme>
|
||||
<cac:PartyLegalEntity>
|
||||
<cbc:RegistrationName>TESTNAME</cbc:RegistrationName>
|
||||
</cac:PartyLegalEntity>
|
||||
</cac:Party>
|
||||
</cac:AccountingSupplierParty>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,49 @@
|
||||
<?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>
|
||||
<description>x</description>
|
||||
<scope>UBL-SR-43</scope>
|
||||
</assert>
|
||||
|
||||
<test id="1">
|
||||
<assert>
|
||||
<success>UBL-SR-43</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:AdditionalDocumentReference>
|
||||
<cbc:ID>ID</cbc:ID>
|
||||
<cbc:DocumentTypeCode>50</cbc:DocumentTypeCode>
|
||||
</cac:AdditionalDocumentReference>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test id="2">
|
||||
<assert>
|
||||
<description>When not using default namespace</description>
|
||||
<success>UBL-SR-43</success>
|
||||
</assert>
|
||||
<ns:CreditNote
|
||||
xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
|
||||
xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
|
||||
xmlns:ns="urn:oasis:names:specification:ubl:schema:xsd:CreditNote-2">
|
||||
|
||||
<cac:AdditionalDocumentReference>
|
||||
<cbc:ID>ID</cbc:ID>
|
||||
<cbc:DocumentTypeCode>50</cbc:DocumentTypeCode>
|
||||
</cac:AdditionalDocumentReference>
|
||||
|
||||
</ns:CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,154 @@
|
||||
<?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>
|
||||
<description>Payment means can only be repeated if payment is credit transfer</description>
|
||||
<scope>UBL-SR-44</scope>
|
||||
</assert>
|
||||
<test id="1">
|
||||
<assert>
|
||||
<success>UBL-SR-44</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:PaymentMeans>
|
||||
<cbc:PaymentMeansCode name="Credit transfer">30</cbc:PaymentMeansCode>
|
||||
<cbc:PaymentID>Payment1</cbc:PaymentID>
|
||||
<cac:PayeeFinancialAccount>
|
||||
<cbc:ID>IBAN32423940</cbc:ID>
|
||||
<cbc:Name>AccountName</cbc:Name>
|
||||
<cac:FinancialInstitutionBranch>
|
||||
<cbc:ID>BIC324098</cbc:ID>
|
||||
</cac:FinancialInstitutionBranch>
|
||||
</cac:PayeeFinancialAccount>
|
||||
</cac:PaymentMeans>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test id="2">
|
||||
<assert>
|
||||
<success>UBL-SR-44</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:PaymentMeans>
|
||||
<cbc:PaymentMeansCode name="Credit transfer">30</cbc:PaymentMeansCode>
|
||||
<cbc:PaymentID>Payment1</cbc:PaymentID>
|
||||
<cac:PayeeFinancialAccount>
|
||||
<cbc:ID>IBAN32423940</cbc:ID>
|
||||
<cbc:Name>AccountName</cbc:Name>
|
||||
<cac:FinancialInstitutionBranch>
|
||||
<cbc:ID>BIC324098</cbc:ID>
|
||||
</cac:FinancialInstitutionBranch>
|
||||
</cac:PayeeFinancialAccount>
|
||||
</cac:PaymentMeans>
|
||||
|
||||
<cac:PaymentMeans>
|
||||
<cbc:PaymentMeansCode>30</cbc:PaymentMeansCode>
|
||||
<cac:PayeeFinancialAccount>
|
||||
<cbc:ID>BBAN1234645</cbc:ID>
|
||||
<cbc:Name>AccountName2</cbc:Name>
|
||||
<cac:FinancialInstitutionBranch>
|
||||
<cbc:ID>BIC998877</cbc:ID>
|
||||
</cac:FinancialInstitutionBranch>
|
||||
</cac:PayeeFinancialAccount>
|
||||
</cac:PaymentMeans>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test id="3">
|
||||
<assert>
|
||||
<error>UBL-SR-44</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:PaymentMeans>
|
||||
<cbc:PaymentMeansCode>30</cbc:PaymentMeansCode>
|
||||
<cbc:PaymentID>Payment1</cbc:PaymentID>
|
||||
<cac:PayeeFinancialAccount>
|
||||
<cbc:ID>IBAN32423940</cbc:ID>
|
||||
<cbc:Name>AccountName</cbc:Name>
|
||||
<cac:FinancialInstitutionBranch>
|
||||
<cbc:ID>BIC324098</cbc:ID>
|
||||
</cac:FinancialInstitutionBranch>
|
||||
</cac:PayeeFinancialAccount>
|
||||
</cac:PaymentMeans>
|
||||
|
||||
<cac:PaymentMeans>
|
||||
<cbc:PaymentMeansCode>30</cbc:PaymentMeansCode>
|
||||
<cbc:PaymentID>Payment2</cbc:PaymentID>
|
||||
<cac:PayeeFinancialAccount>
|
||||
<cbc:ID>BBAN1234645</cbc:ID>
|
||||
<cbc:Name>AccountName2</cbc:Name>
|
||||
<cac:FinancialInstitutionBranch>
|
||||
<cbc:ID>BIC998877</cbc:ID>
|
||||
</cac:FinancialInstitutionBranch>
|
||||
</cac:PayeeFinancialAccount>
|
||||
</cac:PaymentMeans>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test id="4">
|
||||
<assert>
|
||||
<success>UBL-SR-44</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:PaymentMeans>
|
||||
<cbc:PaymentMeansCode>30</cbc:PaymentMeansCode>
|
||||
<cbc:PaymentID>Payment1</cbc:PaymentID>
|
||||
<cac:PayeeFinancialAccount>
|
||||
<cbc:ID>IBAN32423940</cbc:ID>
|
||||
<cbc:Name>AccountName</cbc:Name>
|
||||
<cac:FinancialInstitutionBranch>
|
||||
<cbc:ID>BIC324098</cbc:ID>
|
||||
</cac:FinancialInstitutionBranch>
|
||||
</cac:PayeeFinancialAccount>
|
||||
</cac:PaymentMeans>
|
||||
|
||||
<cac:PaymentMeans>
|
||||
<cbc:PaymentMeansCode>30</cbc:PaymentMeansCode>
|
||||
<cbc:PaymentID>Payment1</cbc:PaymentID>
|
||||
<cac:PayeeFinancialAccount>
|
||||
<cbc:ID>BBAN98765432</cbc:ID>
|
||||
<cbc:Name>AccountName2</cbc:Name>
|
||||
<cac:FinancialInstitutionBranch>
|
||||
<cbc:ID>BIC998877</cbc:ID>
|
||||
</cac:FinancialInstitutionBranch>
|
||||
</cac:PayeeFinancialAccount>
|
||||
</cac:PaymentMeans>
|
||||
|
||||
<cac:PaymentMeans>
|
||||
<cbc:PaymentMeansCode>30</cbc:PaymentMeansCode>
|
||||
<cbc:PaymentID>Payment1</cbc:PaymentID>
|
||||
<cac:PayeeFinancialAccount>
|
||||
<cbc:ID>BBAN1234645</cbc:ID>
|
||||
<cbc:Name>AccountName3</cbc:Name>
|
||||
<cac:FinancialInstitutionBranch>
|
||||
<cbc:ID>BIC485308</cbc:ID>
|
||||
</cac:FinancialInstitutionBranch>
|
||||
</cac:PayeeFinancialAccount>
|
||||
</cac:PaymentMeans>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,94 @@
|
||||
<?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>
|
||||
<description>Payment means code can occur multiple times, but only with identical code</description>
|
||||
<scope>UBL-SR-47</scope>
|
||||
</assert>
|
||||
<test id="1">
|
||||
<assert>
|
||||
<success>UBL-SR-47</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:PaymentMeans>
|
||||
<cbc:PaymentMeansCode name="Credit transfer">30</cbc:PaymentMeansCode>
|
||||
</cac:PaymentMeans>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test id="2">
|
||||
<assert>
|
||||
<success>UBL-SR-47</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:PaymentMeans>
|
||||
<cbc:PaymentMeansCode name="Credit transfer">30</cbc:PaymentMeansCode>
|
||||
</cac:PaymentMeans>
|
||||
|
||||
<cac:PaymentMeans>
|
||||
<cbc:PaymentMeansCode>30</cbc:PaymentMeansCode>
|
||||
</cac:PaymentMeans>
|
||||
|
||||
<cac:PaymentMeans>
|
||||
<cbc:PaymentMeansCode>30</cbc:PaymentMeansCode>
|
||||
</cac:PaymentMeans>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test id="3">
|
||||
<assert>
|
||||
<error>UBL-SR-47</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:PaymentMeans>
|
||||
<cbc:PaymentMeansCode>30</cbc:PaymentMeansCode>
|
||||
</cac:PaymentMeans>
|
||||
|
||||
<cac:PaymentMeans>
|
||||
<cbc:PaymentMeansCode>31</cbc:PaymentMeansCode>
|
||||
</cac:PaymentMeans>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
<test id="4">
|
||||
<assert>
|
||||
<error>UBL-SR-47</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:PaymentMeans>
|
||||
<cbc:PaymentMeansCode>30</cbc:PaymentMeansCode>
|
||||
</cac:PaymentMeans>
|
||||
|
||||
<cac:PaymentMeans>
|
||||
<cbc:PaymentMeansCode>30</cbc:PaymentMeansCode>
|
||||
</cac:PaymentMeans>
|
||||
|
||||
<cac:PaymentMeans>
|
||||
<cbc:PaymentMeansCode>31</cbc:PaymentMeansCode>
|
||||
</cac:PaymentMeans>
|
||||
|
||||
</CreditNote>
|
||||
</test>
|
||||
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,38 @@
|
||||
<?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-01</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify specification identification is present</description>
|
||||
<success>BR-01</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">
|
||||
|
||||
<cbc:CustomizationID>123</cbc:CustomizationID>
|
||||
|
||||
</Invoice>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when specification identification is not defined.</description>
|
||||
<error>BR-01</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">
|
||||
|
||||
<!-- <cbc:CustomizationID>123</cbc:CustomizationID> -->
|
||||
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,37 @@
|
||||
<?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-02</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify invoice ID is present</description>
|
||||
<success>BR-02</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">
|
||||
|
||||
<cbc:ID>123</cbc:ID>
|
||||
|
||||
</Invoice>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when invoice ID is not defined.</description>
|
||||
<error>BR-02</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">
|
||||
|
||||
<!-- <cbc:ID>123</cbc:ID> -->
|
||||
|
||||
</Invoice>
|
||||
</test>
|
||||
</testSet>
|
@@ -0,0 +1,38 @@
|
||||
<?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-03</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify issue date is present</description>
|
||||
<success>BR-03</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">
|
||||
|
||||
<cbc:IssueDate>123</cbc:IssueDate>
|
||||
|
||||
</Invoice>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when issue date is not defined.</description>
|
||||
<error>BR-03</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">
|
||||
|
||||
<!-- <cbc:IssueDate>123</cbc:IssueDate> -->
|
||||
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,38 @@
|
||||
<?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-04</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify invoice type code is present</description>
|
||||
<success>BR-04</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">
|
||||
|
||||
<cbc:InvoiceTypeCode>123</cbc:InvoiceTypeCode>
|
||||
|
||||
</Invoice>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when invoice type code is not defined.</description>
|
||||
<error>BR-04</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">
|
||||
|
||||
<!-- <cbc:InvoiceTypeCode>123</cbc:InvoiceTypeCode> -->
|
||||
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,38 @@
|
||||
<?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-05</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify document currency code is present</description>
|
||||
<success>BR-05</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">
|
||||
|
||||
<cbc:DocumentCurrencyCode>123</cbc:DocumentCurrencyCode>
|
||||
|
||||
</Invoice>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when document currency code is not defined.</description>
|
||||
<error>BR-05</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">
|
||||
|
||||
<!-- <cbc:DocumentCurrencyCode>123</cbc:DocumentCurrencyCode> -->
|
||||
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
</testSet>
|
111
test/assets/eInvoicing-EN16931/test/Invoice-unit-UBL/BR-06.xml
Normal file
111
test/assets/eInvoicing-EN16931/test/Invoice-unit-UBL/BR-06.xml
Normal file
@@ -0,0 +1,111 @@
|
||||
<?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-06</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify sellers name is present</description>
|
||||
<success>BR-06</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:PartyLegalEntity>
|
||||
<cbc:RegistrationName>The Sellercompany ASA</cbc:RegistrationName>
|
||||
</cac:PartyLegalEntity>
|
||||
</cac:Party>
|
||||
</cac:AccountingSupplierParty>
|
||||
</Invoice>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when sellers name is missing.</description>
|
||||
<error>BR-06</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:AccountingSupplierParty>
|
||||
<cac:Party>
|
||||
<cac:PartyLegalEntity>
|
||||
<cbc:RegistrationName>The Sellercompany ASA</cbc:RegistrationName>
|
||||
</cac:PartyLegalEntity>
|
||||
</cac:Party>
|
||||
</cac:AccountingSupplierParty>
|
||||
-->
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when sellers name is missing</description>
|
||||
<error>BR-06</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:AccountingSupplierParty>
|
||||
<!-- <cac:Party>
|
||||
<cac:PartyLegalEntity>
|
||||
<cbc:RegistrationName>The Sellercompany ASA</cbc:RegistrationName>
|
||||
</cac:PartyLegalEntity>
|
||||
</cac:Party> -->
|
||||
</cac:AccountingSupplierParty>
|
||||
</Invoice>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when sellers name is missing</description>
|
||||
<error>BR-06</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:AccountingSupplierParty>
|
||||
<cac:Party>
|
||||
<!--
|
||||
<cac:PartyLegalEntity>
|
||||
<cbc:RegistrationName>The Sellercompany ASA</cbc:RegistrationName>
|
||||
</cac:PartyLegalEntity>
|
||||
-->
|
||||
</cac:Party>
|
||||
</cac:AccountingSupplierParty>
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when sellers name is missing</description>
|
||||
<error>BR-06</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:AccountingSupplierParty>
|
||||
<cac:Party>
|
||||
<cac:PartyLegalEntity>
|
||||
<!-- <cbc:RegistrationName>The Sellercompany ASA</cbc:RegistrationName> -->
|
||||
</cac:PartyLegalEntity>
|
||||
</cac:Party>
|
||||
</cac:AccountingSupplierParty>
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
|
||||
</testSet>
|
116
test/assets/eInvoicing-EN16931/test/Invoice-unit-UBL/BR-07.xml
Normal file
116
test/assets/eInvoicing-EN16931/test/Invoice-unit-UBL/BR-07.xml
Normal file
@@ -0,0 +1,116 @@
|
||||
<?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-07</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify buyers name is present</description>
|
||||
<success>BR-07</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:PartyLegalEntity>
|
||||
<cbc:RegistrationName>Buyer Name</cbc:RegistrationName>
|
||||
</cac:PartyLegalEntity>
|
||||
</cac:Party>
|
||||
</cac:AccountingCustomerParty>
|
||||
</Invoice>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when buyers name is missing.</description>
|
||||
<error>BR-07</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:PartyLegalEntity>
|
||||
<cbc:RegistrationName>Buyer Name</cbc:RegistrationName>
|
||||
</cac:PartyLegalEntity>
|
||||
</cac:Party>
|
||||
</cac:AccountingCustomerParty>
|
||||
-->
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when buyers name is missing</description>
|
||||
<error>BR-07</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:PartyLegalEntity>
|
||||
<cbc:RegistrationName>Buyer Name</cbc:RegistrationName>
|
||||
</cac:PartyLegalEntity>
|
||||
</cac:Party>
|
||||
-->
|
||||
</cac:AccountingCustomerParty>
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when buyers name is missing</description>
|
||||
<error>BR-07</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:PartyLegalEntity>
|
||||
<cbc:RegistrationName>Buyer Name</cbc:RegistrationName>
|
||||
</cac:PartyLegalEntity>
|
||||
-->
|
||||
</cac:Party>
|
||||
</cac:AccountingCustomerParty>
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when buyers name is missing</description>
|
||||
<error>BR-07</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:PartyLegalEntity>
|
||||
<!-- <cbc:RegistrationName>Buyer Name</cbc:RegistrationName>-->
|
||||
</cac:PartyLegalEntity>
|
||||
</cac:Party>
|
||||
</cac:AccountingCustomerParty>
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
</testSet>
|
113
test/assets/eInvoicing-EN16931/test/Invoice-unit-UBL/BR-08.xml
Normal file
113
test/assets/eInvoicing-EN16931/test/Invoice-unit-UBL/BR-08.xml
Normal file
@@ -0,0 +1,113 @@
|
||||
<?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-08</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify seller postal address is present</description>
|
||||
<success>BR-08</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>
|
||||
<cbc:StreetName>Main street 34</cbc:StreetName>
|
||||
<cbc:AdditionalStreetName>Suite 123</cbc:AdditionalStreetName>
|
||||
<cbc:CityName>Big city</cbc:CityName>
|
||||
<cbc:PostalZone>54321</cbc:PostalZone>
|
||||
<cbc:CountrySubentity>RegionA</cbc:CountrySubentity>
|
||||
<cac:Country>
|
||||
<cbc:IdentificationCode listID="ISO3166-1:Alpha2">NO</cbc:IdentificationCode>
|
||||
</cac:Country>
|
||||
</cac:PostalAddress>
|
||||
</cac:Party>
|
||||
</cac:AccountingSupplierParty>
|
||||
</Invoice>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify seller postal address is present</description>
|
||||
<success>BR-08</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:PostalAddress>
|
||||
</cac:Party>
|
||||
</cac:AccountingSupplierParty>
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when seller postal address is missing</description>
|
||||
<error>BR-08</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:AccountingSupplierParty>
|
||||
<cac:Party>
|
||||
<cac:PostalAddress/>
|
||||
</cac:Party>
|
||||
</cac:AccountingSupplierParty>
|
||||
-->
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when seller postal address is missing</description>
|
||||
<error>BR-08</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:AccountingSupplierParty>
|
||||
<!-- <cac:Party>
|
||||
<cac:PostalAddress/>
|
||||
</cac:Party> -->
|
||||
</cac:AccountingSupplierParty>
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when seller postal address is missing</description>
|
||||
<error>BR-08</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:AccountingSupplierParty>
|
||||
<cac:Party>
|
||||
<!-- <cac:PostalAddress></cac:PostalAddress> -->
|
||||
</cac:Party>
|
||||
</cac:AccountingSupplierParty>
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,77 @@
|
||||
<?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-09</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that a seller postal address contains a Seller country code</description>
|
||||
<success>BR-09</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>NL</cbc:IdentificationCode>
|
||||
</cac:Country>
|
||||
</cac:PostalAddress>
|
||||
</cac:Party>
|
||||
</cac:AccountingSupplierParty>
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when a seller postal address does not contain a Seller country code</description>
|
||||
<error>BR-09</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:AccountingSupplierParty>
|
||||
<cac:Party>
|
||||
<cac:PostalAddress>
|
||||
<!-- <cac:Country>
|
||||
<cbc:IdentificationCode>NL</cbc:IdentificationCode>
|
||||
</cac:Country> -->
|
||||
</cac:PostalAddress>
|
||||
</cac:Party>
|
||||
</cac:AccountingSupplierParty>
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when a seller postal address does not contain a Seller country code</description>
|
||||
<error>BR-09</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:AccountingSupplierParty>
|
||||
<cac:Party>
|
||||
<cac:PostalAddress>
|
||||
<cac:Country>
|
||||
<!--<cbc:IdentificationCode>NL</cbc:IdentificationCode>-->
|
||||
</cac:Country>
|
||||
</cac:PostalAddress>
|
||||
</cac:Party>
|
||||
</cac:AccountingSupplierParty>
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
</testSet>
|
113
test/assets/eInvoicing-EN16931/test/Invoice-unit-UBL/BR-10.xml
Normal file
113
test/assets/eInvoicing-EN16931/test/Invoice-unit-UBL/BR-10.xml
Normal file
@@ -0,0 +1,113 @@
|
||||
<?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-10</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify Buyer postal address is present</description>
|
||||
<success>BR-10</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>
|
||||
<cbc:StreetName>Main street 34</cbc:StreetName>
|
||||
<cbc:AdditionalStreetName>Suite 123</cbc:AdditionalStreetName>
|
||||
<cbc:CityName>Big city</cbc:CityName>
|
||||
<cbc:PostalZone>54321</cbc:PostalZone>
|
||||
<cbc:CountrySubentity>RegionA</cbc:CountrySubentity>
|
||||
<cac:Country>
|
||||
<cbc:IdentificationCode listID="ISO3166-1:Alpha2">NO</cbc:IdentificationCode>
|
||||
</cac:Country>
|
||||
</cac:PostalAddress>
|
||||
</cac:Party>
|
||||
</cac:AccountingCustomerParty>
|
||||
</Invoice>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify Buyer postal address is present</description>
|
||||
<success>BR-10</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:PostalAddress>
|
||||
</cac:Party>
|
||||
</cac:AccountingCustomerParty>
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when Buyer postal address is missing</description>
|
||||
<error>BR-10</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:Party>
|
||||
</cac:AccountingCustomerParty>
|
||||
-->
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when Buyer postal address is missing</description>
|
||||
<error>BR-10</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:Party> -->
|
||||
</cac:AccountingCustomerParty>
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when Buyer postal address is missing</description>
|
||||
<error>BR-10</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:PostalAddress> -->
|
||||
</cac:Party>
|
||||
</cac:AccountingCustomerParty>
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,77 @@
|
||||
<?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>
|
@@ -0,0 +1,44 @@
|
||||
<?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-12</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify total line amount in document totals is present</description>
|
||||
<success>BR-12</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:LegalMonetaryTotal>
|
||||
<cbc:LineExtensionAmount currencyID="EUR">100.00</cbc:LineExtensionAmount>
|
||||
</cac:LegalMonetaryTotal>
|
||||
|
||||
</Invoice>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when total line amount in document totals is missing</description>
|
||||
<error>BR-12</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:LegalMonetaryTotal>
|
||||
<!-- <cbc:LineExtensionAmount currencyID="EUR">100.00</cbc:LineExtensionAmount>-->
|
||||
</cac:LegalMonetaryTotal>
|
||||
|
||||
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,43 @@
|
||||
<?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-13</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify invoice total amount without VAT in document totals is present</description>
|
||||
<success>BR-13</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:LegalMonetaryTotal>
|
||||
<cbc:TaxExclusiveAmount currencyID="NOK">1200</cbc:TaxExclusiveAmount>
|
||||
</cac:LegalMonetaryTotal>
|
||||
</Invoice>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when invoice total amount without VAT in document totals is missing</description>
|
||||
<error>BR-13</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:LegalMonetaryTotal>
|
||||
<!-- <cbc:TaxExclusiveAmount currencyID="NOK">1200</cbc:TaxExclusiveAmount> -->
|
||||
</cac:LegalMonetaryTotal>
|
||||
|
||||
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,43 @@
|
||||
<?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-14</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify invoice total amount with VAT in document totals is present</description>
|
||||
<success>BR-14</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:LegalMonetaryTotal>
|
||||
<cbc:TaxInclusiveAmount currencyID="NOK">1200</cbc:TaxInclusiveAmount>
|
||||
</cac:LegalMonetaryTotal>
|
||||
</Invoice>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when invoice total amount with VAT in document totals is missing</description>
|
||||
<error>BR-14</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:LegalMonetaryTotal>
|
||||
<!-- <cbc:TaxInclusiveAmount currencyID="NOK">1200</cbc:TaxInclusiveAmount> -->
|
||||
</cac:LegalMonetaryTotal>
|
||||
|
||||
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,42 @@
|
||||
<?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-15</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify amount due for payment in document totals is present</description>
|
||||
<success>BR-15</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:LegalMonetaryTotal>
|
||||
<cbc:PayableAmount currencyID="NOK">1200</cbc:PayableAmount>
|
||||
</cac:LegalMonetaryTotal>
|
||||
</Invoice>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when amount due for payment in document totals is missing</description>
|
||||
<error>BR-15</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:LegalMonetaryTotal>
|
||||
<!-- <cbc:PayableAmount currencyID="NOK">1200</cbc:PayableAmount> -->
|
||||
</cac:LegalMonetaryTotal>
|
||||
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,41 @@
|
||||
<?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-16</scope>
|
||||
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that each invoice has an invoice line</description>
|
||||
<success>BR-16</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:InvoiceLine>
|
||||
</cac:InvoiceLine>
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error if invoice line is missing</description>
|
||||
<error>BR-16</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:InvoiceLine></cac:InvoiceLine> -->
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,49 @@
|
||||
<?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-17</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that payee name is present</description>
|
||||
<success>BR-17</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:PayeeParty>
|
||||
<cac:PartyName>
|
||||
<cbc:Name>Payee name</cbc:Name>
|
||||
</cac:PartyName>
|
||||
</cac:PayeeParty>
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when payee name is missing</description>
|
||||
<error>BR-17</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:PayeeParty>
|
||||
<!-- <cac:PartyName>
|
||||
<cbc:Name>Payee name</cbc:Name>
|
||||
</cac:PartyName>-->
|
||||
</cac:PayeeParty>
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,49 @@
|
||||
<?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-18</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that tax representative name is present</description>
|
||||
<success>BR-18</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:TaxRepresentativeParty>
|
||||
<cac:PartyName>
|
||||
<cbc:Name>Tax handling company AS</cbc:Name>
|
||||
</cac:PartyName>
|
||||
</cac:TaxRepresentativeParty>
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when tax representative name is missing</description>
|
||||
<error>BR-18</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:TaxRepresentativeParty>
|
||||
<!-- <cac:PartyName>
|
||||
<cbc:Name>Tax handling company AS</cbc:Name>
|
||||
</cac:PartyName> -->
|
||||
</cac:TaxRepresentativeParty>
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,70 @@
|
||||
<?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-19</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that seller tax representative postal address is present</description>
|
||||
<success>BR-19</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:TaxRepresentativeParty>
|
||||
<cac:PostalAddress>
|
||||
<cbc:StreetName>Regent street</cbc:StreetName>
|
||||
<cbc:AdditionalStreetName>Front door</cbc:AdditionalStreetName>
|
||||
<cbc:CityName>Newtown</cbc:CityName>
|
||||
<cbc:PostalZone>101</cbc:PostalZone>
|
||||
<cbc:CountrySubentity>RegionC</cbc:CountrySubentity>
|
||||
<cac:Country>
|
||||
<cbc:IdentificationCode listID="ISO3166-1:Alpha2">NO</cbc:IdentificationCode>
|
||||
</cac:Country>
|
||||
</cac:PostalAddress>
|
||||
</cac:TaxRepresentativeParty>
|
||||
</Invoice>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify seller tax representative postal address is present</description>
|
||||
<success>BR-19</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:TaxRepresentativeParty>
|
||||
<cac:PostalAddress></cac:PostalAddress>
|
||||
</cac:TaxRepresentativeParty>
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when seller tax representative postal address is missing</description>
|
||||
<error>BR-19</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:TaxRepresentativeParty>
|
||||
<!-- <cac:PostalAddress></cac:PostalAddress> -->
|
||||
</cac:TaxRepresentativeParty>
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,68 @@
|
||||
<?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-20</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that a seller tax representative postal address contains a country code</description>
|
||||
<success>BR-20</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:TaxRepresentativeParty>
|
||||
<cac:PostalAddress>
|
||||
<cac:Country>
|
||||
<cbc:IdentificationCode>NO</cbc:IdentificationCode>
|
||||
</cac:Country>
|
||||
</cac:PostalAddress>
|
||||
</cac:TaxRepresentativeParty>
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when a seller tax representative postal address does not contain a country code</description>
|
||||
<error>BR-20</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:TaxRepresentativeParty>
|
||||
<cac:PostalAddress>
|
||||
<!--<cac:Country>
|
||||
<cbc:IdentificationCode>NO</cbc:IdentificationCode>
|
||||
</cac:Country>-->
|
||||
</cac:PostalAddress>
|
||||
</cac:TaxRepresentativeParty>
|
||||
</Invoice>
|
||||
</test>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when a seller tax representative postal address does not contain a country code</description>
|
||||
<error>BR-20</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:TaxRepresentativeParty>
|
||||
<cac:PostalAddress>
|
||||
<cac:Country>
|
||||
<!--<cbc:IdentificationCode>NO</cbc:IdentificationCode>-->
|
||||
</cac:Country>
|
||||
</cac:PostalAddress>
|
||||
</cac:TaxRepresentativeParty>
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,44 @@
|
||||
<?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-21</scope>
|
||||
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that each invoice line has a line ID</description>
|
||||
<success>BR-21</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:InvoiceLine>
|
||||
<cbc:ID>1</cbc:ID>
|
||||
</cac:InvoiceLine>
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error if invoice line ID is missing</description>
|
||||
<error>BR-21</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:InvoiceLine>
|
||||
<!-- <cbc:ID>1</cbc:ID>-->
|
||||
</cac:InvoiceLine>
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,45 @@
|
||||
<?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-22</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that invoiced quantity is present</description>
|
||||
<success>BR-22</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:InvoiceLine>
|
||||
<cbc:InvoicedQuantity>1</cbc:InvoicedQuantity>
|
||||
</cac:InvoiceLine>
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when invoiced quantity is missing</description>
|
||||
<error>BR-22</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:InvoiceLine>
|
||||
<!-- <cbc:InvoicedQuantity>1</cbc:InvoicedQuantity> -->
|
||||
</cac:InvoiceLine>
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,45 @@
|
||||
<?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-23</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that invoiced quantity unitcode is present</description>
|
||||
<success>BR-23</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:InvoiceLine>
|
||||
<cbc:InvoicedQuantity unitCode="NAR">1</cbc:InvoicedQuantity>
|
||||
</cac:InvoiceLine>
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when invoiced quantity unitcode is missing</description>
|
||||
<error>BR-23</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:InvoiceLine>
|
||||
<cbc:InvoicedQuantity>1</cbc:InvoicedQuantity>
|
||||
</cac:InvoiceLine>
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,44 @@
|
||||
<?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-24</scope>
|
||||
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that each invoice line has a line extension amount</description>
|
||||
<success>BR-24</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:InvoiceLine>
|
||||
<cbc:LineExtensionAmount>123</cbc:LineExtensionAmount>
|
||||
</cac:InvoiceLine>
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error if invoice line extension amount is missing</description>
|
||||
<error>BR-24</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:InvoiceLine>
|
||||
<!-- <cbc:LineExtensionAmount>123</cbc:LineExtensionAmount> -->
|
||||
</cac:InvoiceLine>
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,48 @@
|
||||
<?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-25</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that item name is present</description>
|
||||
<success>BR-25</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:InvoiceLine>
|
||||
<cac:Item>
|
||||
<cbc:Name>Laptop computer</cbc:Name>
|
||||
</cac:Item>
|
||||
</cac:InvoiceLine>
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when item name is missing</description>
|
||||
<error>BR-25</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:InvoiceLine>
|
||||
<cac:Item>
|
||||
<!-- <cbc:Name>Laptop computer</cbc:Name>-->
|
||||
</cac:Item>
|
||||
</cac:InvoiceLine>
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,48 @@
|
||||
<?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-26</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that price amount is present</description>
|
||||
<success>BR-26</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:InvoiceLine>
|
||||
<cac:Price>
|
||||
<cbc:PriceAmount currencyID="NOK">1273</cbc:PriceAmount>
|
||||
</cac:Price>
|
||||
</cac:InvoiceLine>
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when price amount is missing</description>
|
||||
<error>BR-26</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:InvoiceLine>
|
||||
<!--<cac:Price>
|
||||
<cbc:PriceAmount currencyID="NOK">1273</cbc:PriceAmount>
|
||||
</cac:Price> -->
|
||||
</cac:InvoiceLine>
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,65 @@
|
||||
<?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-27</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that price amount is zero or above</description>
|
||||
<success>BR-27</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:InvoiceLine>
|
||||
<cac:Price>
|
||||
<cbc:PriceAmount currencyID="NOK">100</cbc:PriceAmount>
|
||||
</cac:Price>
|
||||
</cac:InvoiceLine>
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that price amount is zero or above</description>
|
||||
<success>BR-27</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:InvoiceLine>
|
||||
<cac:Price>
|
||||
<cbc:PriceAmount currencyID="NOK">0</cbc:PriceAmount>
|
||||
</cac:Price>
|
||||
</cac:InvoiceLine>
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when price amount is negative</description>
|
||||
<error>BR-27</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:InvoiceLine>
|
||||
<cac:Price>
|
||||
<cbc:PriceAmount currencyID="NOK">-1</cbc:PriceAmount>
|
||||
</cac:Price>
|
||||
</cac:InvoiceLine>
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,71 @@
|
||||
<?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-28</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that gross price amount is zero or above</description>
|
||||
<success>BR-28</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:InvoiceLine>
|
||||
<cac:Price>
|
||||
<cac:AllowanceCharge>
|
||||
<cbc:BaseAmount currencyID="NOK">1</cbc:BaseAmount>
|
||||
</cac:AllowanceCharge>
|
||||
</cac:Price>
|
||||
</cac:InvoiceLine>
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that gross price amount is zero or above</description>
|
||||
<success>BR-28</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:InvoiceLine>
|
||||
<cac:Price>
|
||||
<cac:AllowanceCharge>
|
||||
<cbc:BaseAmount currencyID="NOK">0</cbc:BaseAmount>
|
||||
</cac:AllowanceCharge>
|
||||
</cac:Price>
|
||||
</cac:InvoiceLine>
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error when gross price amount is negative</description>
|
||||
<error>BR-28</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:InvoiceLine>
|
||||
<cac:Price>
|
||||
<cac:AllowanceCharge>
|
||||
<cbc:BaseAmount currencyID="NOK">-1</cbc:BaseAmount>
|
||||
</cac:AllowanceCharge>
|
||||
</cac:Price>
|
||||
</cac:InvoiceLine>
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
|
||||
</testSet>
|
@@ -0,0 +1,65 @@
|
||||
<?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-29</scope>
|
||||
</assert>
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that if a period has a start date and an end date, the end date is equal to, or later than the start date </description>
|
||||
<success>BR-29</success>
|
||||
<success>BR-30</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:InvoicePeriod>
|
||||
<cbc:StartDate>2013-06-01</cbc:StartDate>
|
||||
<cbc:EndDate>2013-06-01</cbc:EndDate>
|
||||
</cac:InvoicePeriod>
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Verify that if a period has a start date and an end date, the end date is equal to, or later than the start date </description>
|
||||
<success>BR-29</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:InvoicePeriod>
|
||||
<cbc:StartDate>2013-06-01</cbc:StartDate>
|
||||
<cbc:EndDate>2013-08-01</cbc:EndDate>
|
||||
</cac:InvoicePeriod>
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<assert>
|
||||
<description>Trigger error if a period has a start date and an end date,and the end date is earlier than the start date</description>
|
||||
<error>BR-29</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:InvoicePeriod>
|
||||
<cbc:StartDate>2013-06-01</cbc:StartDate>
|
||||
<cbc:EndDate>2013-05-01</cbc:EndDate>
|
||||
</cac:InvoicePeriod>
|
||||
</Invoice>
|
||||
</test>
|
||||
|
||||
|
||||
</testSet>
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user