Giter VIP home page Giter VIP logo

Comments (6)

apenski avatar apenski commented on May 27, 2024

we've fixed #43 and will publish this with the next release. Nevertheless we need to fix the xrechnung configuration as well, which should use the acceptMatch option

@renzok would you please fix this?

from validator.

thomaspz avatar thomaspz commented on May 27, 2024

I upgraded to validator 1.2.1 but I see no fix of the configuration. The Standard 1.2.2 should be provided on 01.07.2020. That is tomorrow. The actual 01.15a-INVOICE_ubl.xml in master-branch of the testsuite ist still the same than mine, but always the same result "rejected". Has the document format change or is that an issue of the validation? The same with 02_01a-Invoice_ubl-xml.

01.15a-INVOICE_ubl.xml
01 15a-INVOICE_ubl xml-fehlerreport

02.01a-INVOICE_ubl.xml
02 01a-INVOICE_ubl xml-fehlerreport

from validator.

thomaspz avatar thomaspz commented on May 27, 2024

A fast solution for me could be to use the 1.3.3 validation-tool with the actual configuration 1.2.2 2019-12-30. This would work, till the issue is fixed. Would it be o.k. to combine this versions?

from validator.

apenski avatar apenski commented on May 27, 2024

Hi @thomaspz

there is no version 1.3.3. of the validation tool.

Which exact target file do you use? If you used a recent version of 01.15a-INVOICE_ubl.xml (this one) and the xrechnung validator configuration 1.2.2 then you got a reject due to the fact, that the file is xrechnung version 2.0 and the configuration is looking for 1.2. E.g.

 <match>/invoice:Invoice[ starts-with(cbc:CustomizationID,
            'urn:cen.eu:en16931:2017#compliant#urn:xoev-de:kosit:standard:xrechnung_1.2') ]</match>

does not match the file starting with

<?xml version="1.0" encoding="UTF-8"?>
<ubl:Invoice xmlns:ubl="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2"
             xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
             xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2 http://docs.oasis-open.org/ubl/os-UBL-2.1/xsd/maindoc/UBL-Invoice-2.1.xsd">
    <cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:xoev-de:kosit:standard:xrechnung_2.0</cbc:CustomizationID>

You got a reject, since no scenario matches your input!

If you used another file please provide a running sample.

from validator.

thomaspz avatar thomaspz commented on May 27, 2024

I retried with validationtool Version 1.3.1 and Configuration Version validator-configuration-xrechnung_1.2.2_2019-12-30 and teststuite xrechnung-1.2.2-testsuite-2019-12-30.

Example Project : https://github.com/thomaspz/kosit-issue-example

Testclass : ValidationtoolEineXrechnungTest

Testdocument : 01.15a-INVOICE_ubl.xml

Kosit-Validation-Result :

AcceptRecommendation = Reject,

but Result Report contains :

Bewertung: Es wird empfohlen das Dokument anzunehmen und weiter zu verarbeiten.

Where can I determine, if I should procceed the XRechnung document,? The Validation Result has some warnings, but says "proceed the document"; So how could I determine this state in the code or why is the result "rejected" if the report contains "proceed".

from validator.

apenski avatar apenski commented on May 27, 2024

xrechnung-1.2.2-testsuite-2019-12-30 does not have an acceptMatch-configuration as explained in #43.

The tool only evaluates technical validation results like schema an schematron. The configuration report contains business validation logic. Determination whether to accept the file should be based on business validation. But you should update to the recent xrechnung configuration which contains the acceptMatch-configuration

from validator.

Related Issues (20)

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.