-
-
Notifications
You must be signed in to change notification settings - Fork 158
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
Setting allowances and charges generate invalid xml #660
Comments
sounds similar to #640 do you have source code and/or xml for me to reproduce as |
|
This is my code, which I use to generate a allowance:
Try not setting the category code. |
@FrankHossfeld but that way you set allowance on the invoice level, meaning it's global allowance not related to any line item. What i'm doing is setting allowance for specific line item |
@FrankHossfeld did you have the same error before? can you explain how you fixed it? |
With the latest update (2.26.0) the reasoncode "95"/"104" does no longer work. no, sorry, can't remember. It was just in the beginning as I tried to get the electronic invoice running. |
looking at your code:
I am a little bit surprised to see things like: Update "95" is no valid value for reason code and will create a validation error in 2.26.0. |
@jstaerk https://github.com/ZUGFeRD/mustangproject/blob/404598bb846b66c5c63368dd5c741ad6c69f3d34/library/src/main/java/org/mustangproject/ZUGFeRD/ZUGFeRD2PullProvider.java#L753C19-L753C35 why is |
mustangproject/library/src/main/java/org/mustangproject/ZUGFeRD/ZUGFeRD2PullProvider.java Line 446 in 51eb9d5
this code is never executed since Tbh i'm lost now and don't understand how mustang handles allowances. Seems like allowances and charges are not support atm by this library. |
Hi
please either use a absolute (setTotalAmount) or a relative (setPercent) Allowance kind regards |
Hello team,
i'm setting allowances and charges for each line item
When i take xml result and validate online, i get the following errors:

Looking here:
mustangproject/library/src/main/java/org/mustangproject/ZUGFeRD/ZUGFeRD2PullProvider.java
Line 268 in 404598b
there is no CategoryTradeTax | TypeCode | ActualTradeCurrencyExchange added
The text was updated successfully, but these errors were encountered: