Git Product home page Git Product logo

testset's Introduction

SI-UBL test documents

These are test documents for Simpler invoicing, to use with a validation package.

Generally, the tests are placed in a directory with the name of the SI-UBL version they are meant to test. There are a few tests in the general/ directory that are for any version.

The filenames have the form SI-UBL-<version>-<status>-<rule> where:

  • version is the SI-UBL version this test tests
  • status is whether the document should be ok, give a warning, or give an error
  • rule the rule the document violates, or a description of the test if it does not violate any rules

For instance, the test file SI-UBL-1.1/SI-UBL1.1-error-BII2-T10-R044.xml is a test that violates BII2-T10-R044 from the peppol validation artefacts within SI-UBL 1.1. SI-UBL-1.0/SI-UBL1.0-ok-minimal.xml is a minimal document that should validate under the rules of SI-UBL 1.0.

If you find any faults in these documents, please contact SimplerInvoicing.

testset's People

Contributors

patrickvhl avatar phax avatar rikribbers avatar tjeb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

testset's Issues

Only one CreditNote example

I noticed there is only a single CreditNote example available in the testset (SI-UBL-2.0_BR-NL-8_ok_381.xml). Are there any plans to extend the testset with more CreditNotes?

Some examples do not return expected output - Part 2

Hi, I just ran the most recent version of the testset (34d865a) against the most recent version of the validation files (0f5f0632) and unfortunately there are still some issues:

SI-UBL-2.0_BR-NL-8_ok_381.xml should be valid but returns:

12:0: ERROR: Element '{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}CreditNoteTypeCode': This element is not expected. Expected is one of ( {urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}IssueTime, {urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}TaxPointDate, {urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}Note, {urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}DocumentCurrencyCode, {urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}TaxCurrencyCode, {urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}PricingCurrencyCode, {urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}PaymentCurrencyCode, {urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}PaymentAlternativeCurrencyCode, {urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}AccountingCostCode, {urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}AccountingCost ).

SI-UBL-INV-1.2-warning-CL-T10-R006.xml should be valid with warning but returns fatal error [CL-T10-R006]-Payment means in an invoice MUST be coded using UNCL 4461 BII2 subset

SI-UBL-INV-1.2-warning-CL-T10-R007.xml should be valid with warning but returns fatal error [CL-T10-R007]-Invoice tax categories MUST be coded using UNCL 5305 code list BII2 subset

SI-UBL-1.1-ok-single-item.xml should be valid but returns [SI-V11-INV-R200]-This XML instance is NOT tagged as an SI-UBL 1.1 invoice; please check the CustomizationID value

Can you confirm?

Some examples do not return expected output

Hi,

I just applied the SI-UBL-INV.xsl from the 1.1 release in the validation repo to all 1.1 examples and all return the expected output except the following two:

SI-UBL-1.1/SI-UBL-1.1-ok-rounding-vat-1.xml gives:
[EUGEN-T10-R043]-The total tax amount MUST equal the sum of tax amounts per category.

SI-UBL-1.1/SI-UBL-1.1-ok-extension.xml gives:
[SI-V11-INV-R026]-Currency Identifier MUST be stated in the currency as defined on header level

Some SI-UBL 1.2 error files are valid

Some files in the SI-UBL 1.2 directory that are marked as 'error' are actually valid. When validating against the online test tool they are validated as valid: https://ecosio.com/en/peppol-and-xml-document-validator/.

Tested and validated as SimplerInvoicing Order 1.2.3 or SimplerInvoicing Invoice 1.2.3, depending on the type of invoice.
The following files are incorrectly marked as 'error':

SI-UBL-INV-1.2-error-CL-T10-R003.xml
SI-UBL-INV-1.2-error-CL-T10-R008.xml
SI-UBL-INV-1.2-error-CODE-R004.xml
SI-UBL-INV-1.2-error-OP-T10-R002.xml
SI-UBL-INV-1.2-error-OP-T10-R003.xml
SI-UBL-INV-1.2-error-OP-T10-R004.xml
SI-UBL-INV-1.2-error-OP-T10-R006.xml
SI-UBL-INV-1.2-error-OP-T10-R008.xml
SI-UBL-INV-1.2-error-SI-INV-R025.xml
SI-UBL-PO-1.2-error-BII2-T01-R015.xml
SI-UBL-PO-1.2-error-SI-V12-PO-R200.xml

Error in SI-UBL-2.0_BR-NL-8_ok_381.xml

The new SI-UBL-2.0\SI-UBL-2.0_BR-NL-8_ok_381.xml file contains an XSD error.
Old and invalid:

    <cbc:CreditNoteTypeCode>381</cbc:CreditNoteTypeCode>
    <cbc:IssueDate>2015-01-09</cbc:IssueDate>

corrected:

    <cbc:IssueDate>2015-01-09</cbc:IssueDate>
    <cbc:CreditNoteTypeCode>381</cbc:CreditNoteTypeCode>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.