Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check why files does not validate #15

Open
jstaerk opened this issue Mar 16, 2019 · 7 comments

Comments

Projects
None yet
1 participant
@jstaerk
Copy link
Contributor

commented Mar 16, 2019

The attached factur-x
Facture_F20180027-LE_CLIENT_20181231.pdf
file should work flawlessly, and be included in the automatic tests:
How you can help:

  • check if the issue vanishes with the 1.1 release of cen schematron https://github.com/CenPC434/validation/releases
    We deploy in a single jar and the schematron file uses include statements, last time it was sufficient to just copy all included files into one. if that does not help:
  • check if the issue vanishes with the new schematron files (issue #16)
  • add the file to the https://github.com/ZUGFeRD/corpus
  • extract the factur-x.xml and add a automatic test

@jstaerk jstaerk self-assigned this Mar 16, 2019

@jstaerk

This comment has been minimized.

Copy link
Contributor Author

commented Mar 17, 2019

only one error with 1.1 (<svrl:failed-assert test="/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = ('VAT', 'FC')] or /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTaxRepresentativeTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VAT']"
</svrl:failed-assert>), development version of ZUV on http://mustangproject.org/files/ZUV-0.6.1-SNAPSHOT.jar , contradicting spec available, will wait for ZF2 schematron before I try to fix the CEN schematron

@jstaerk

This comment has been minimized.

Copy link
Contributor Author

commented Mar 23, 2019

And the following report when run against ZF2 schematron
<validation> <xml> <info><version>2</version><profile>urn:cen.eu:en16931:2017</profile><duration unit='ms'>5792</duration></info><messages><error location="/*[local-name()='CrossIndustryInvoice']/*[local-name()='SupplyChainTradeTransaction']/*[local-name()='ApplicableHeaderTradeAgreement']/*[local-name()='AdditionalReferencedDocument'][1]" criterion="count(ram:TypeCode)=1"> Das Element 'ram:TypeCode' muss genau 1 mal auftreten.</error> <error location="/*[local-name()='CrossIndustryInvoice']/*[local-name()='SupplyChainTradeTransaction']/*[local-name()='ApplicableHeaderTradeAgreement']/*[local-name()='BuyerTradeParty']/*[local-name()='URIUniversalCommunication']/*[local-name()='URIID']" criterion="document('zugferd2p0_en16931_codedb.xml')//cl[@id=8]/enumeration[@value=$codeValue8]"> Wert von '@schemeID' ist unzulässig.</error> <error location="/*[local-name()='CrossIndustryInvoice']/*[local-name()='SupplyChainTradeTransaction']/*[local-name()='ApplicableHeaderTradeAgreement']/*[local-name()='SellerTradeParty']/*[local-name()='URIUniversalCommunication']/*[local-name()='URIID']" criterion="document('zugferd2p0_en16931_codedb.xml')//cl[@id=8]/enumeration[@value=$codeValue8]"> Wert von '@schemeID' ist unzulässig.</error> </messages><summary status='invalid'/> </xml> </validation>

@jstaerk

This comment has been minimized.

Copy link
Contributor Author

commented Mar 23, 2019

"Wert von '@schemeID' ist unzulässig" seems to refer to the Email schemeID="EM"

@jstaerk

This comment has been minimized.

Copy link
Contributor Author

commented Apr 2, 2019

preview of ZUV available on http://mustangproject.org/files/ZUV-0.7.0-SNAPSHOT.jar, upstreamed request for missing values CL8 values 151, 198, 199, 200, 9901, AN, AQ, AS, AU and EM.

jstaerk pushed a commit that referenced this issue Apr 2, 2019

@jstaerk

This comment has been minimized.

Copy link
Contributor Author

commented Apr 2, 2019

=Extended CL10 and BasicWL_Minimum CL 4?
Updated preview on http://mustangproject.org/files/ZUV-0.7.0b-SNAPSHOT.jar

@jstaerk

This comment has been minimized.

Copy link
Contributor Author

commented Apr 11, 2019

RE the Typecode error: TypeCode refers to a missing typecode for the Tender002 additional document

https://www.ferd-net.de/upload/Dokumente/FACTUR-X_ZUGFeRD_2p0_Teil1_Profil_EN16931_1p03.pdf pg 28 BT124 specified a 0..1 whilst ZUGFeRD-2.0-Spezifikation-TA.pdf pg 11 seems to indicate a 1..1 so I guess this has been changed between FX1 and ZF2?

@jstaerk

This comment has been minimized.

Copy link
Contributor Author

commented May 7, 2019

it now works with the http://www.mustangproject.org/files/ZUV-0.7.0e-SNAPSHOT.jar snapshot and https://www.zugferd-community.net/en/open_community/validation but I still need to find out what change made that possible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.