-
-
Notifications
You must be signed in to change notification settings - Fork 130
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
The use of SpecifiedTradeSettlementPaymentMeans several times #385
Comments
If your issue is a question if a mustang generated file is valid(?) please include either the complete source code and/or the complete output so that I can have a look and run it through a validator |
I create the ZUGFeRD file in a custom application (Mustang is not used). I use Mustang (Mustang-CLI-2.11.0.jar) for validation and am wondering about the error message. The error only occurs when I use SpecifiedTradeSettlementPaymentMeans multiple times. This should be possible according to the general ZUGFeRD documentation. |
In the FACTUR-X schemas below the EXTENDED profile the cardinality of SpecifiedTradeSettlementPaymentMeans is [0..1]. |
Ah ok now I see it. It is just a bit confusing as it is described in the documentation and even more so if it is allowed in xRechnung (EN16931). |
…rking on a feature to visualize xml into pdf but the feature did not yet make it and the files were not cleanly removed, thanks for spotting
According to the documentation, SpecifiedTradeSettlementPaymentMeans can be used multiple times to specify multiple banks. If I do this, I get an error message when validating:
<error type="18">schema validation fails:org.xml.sax.SAXParseException; lineNumber: 273; columnNumber: 46; cvc-complex-type.2.4.a: Ungültiger Content wurde beginnend mit Element '{"urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100":SpecifiedTradeSettlementPaymentMeans}' gefunden. '{"urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100":ApplicableTradeTax}' wird erwartet.</error> <error type="4" location="/*[local-name()='CrossIndustryInvoice']/*[local-name()='SupplyChainTradeTransaction']/*[local-name()='ApplicableHeaderTradeSettlement']" criterion="count(ram:SpecifiedTradeSettlementPaymentMeans)<=1">Element 'ram:SpecifiedTradeSettlementPaymentMeans' may occur at maximum 1 times. from /xslt/ZF_221/FACTUR-X_EN16931.xslt)</error>
When I check the same XML via the KoSIT Valitator, there are no problems.
Here is an excerpt of the corresponding passage from the XML:
The text was updated successfully, but these errors were encountered: