-
-
Notifications
You must be signed in to change notification settings - Fork 119
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
SpecifiedTradePaymentTerms should be [0..n], but is [0..1] #223
Comments
Thanks for your initiative! |
Kindly assign this one to me. Cheers, JoKi |
@jochenkirstaetter: thanks! Please remember backwards compatibility and please add test cases. |
@stephanstapel Of course, thanks for the reminder. |
Interestingly, the
I'm going to use this example as base for my implementation. |
I guess I stole the example from ZUGFeRD 1.0 sample data :) |
Hm, interesting. The specification of Version XRechnung 2.2.0 | Fassung vom 27.01.2022 specifies the Payment Terms as a single, optional element. Sounds a bit like a challenge to apply the right profile handling to it. Game on... @sude22 - could you please provide me a link or source of the specs in your original post? Thanks a bunch. PS: Conversion to a List has been done already, I'm currently in the validation phase. Hence, stumbling over those specification details of each version and profile. |
Thanks @stephanstapel , OK, this is mainly bothering the writing process, as the reading is always a loop. I guess, I'll add conditional writing based on the Profile. That should resolve the issue. Cheers, JoKi |
Hello,
and first of all thank you for the great work on this project.
When importing an invoice, I noticed that there is a property "PaymentTerms". It is filled with the content from "SpecifiedTradePaymentTerms".
However, in my invoice there are two"SpecifiedTradePaymentTerms" sections.
Shouldn't the "PaymentTerms" property then be a list?
Example:
<ram:SpecifiedTradePaymentTerms>
<ram:Description>Zahlbar bis 07.01.2024 ohne Abzug</ram:Description>
<ram:DueDateDateTime>
<udt:DateTimeString format="102">20240107</udt:DateTimeString>
</ram:DueDateDateTime>
</ram:SpecifiedTradePaymentTerms>
<ram:SpecifiedTradePaymentTerms>
<ram:Description>Zahlbar bis 15.12.2023 3,00% Skt= 1039,84</ram:Description>
<ram:DueDateDateTime>
<udt:DateTimeString format="102">20231215</udt:DateTimeString>
</ram:DueDateDateTime>
<ram:ApplicableTradePaymentDiscountTerms>
<ram:BasisAmount currencyID="EUR">1072.00</ram:BasisAmount>
<ram:CalculationPercent>3.00</ram:CalculationPercent>
</ram:ApplicableTradePaymentDiscountTerms>
</ram:SpecifiedTradePaymentTerms>
BTW: It would be excellent if the fields in "ApplicableTradePaymentDiscountTerms" could also be imported, as then automatic processing of the discount values would be possible.
The text was updated successfully, but these errors were encountered: