Skip to content

Cash discount not parsed #993

@exactt

Description

@exactt

Hi,
thanks again for this great library!

I have an issue with cash discounts not being parsed when they are provided in a certain format:

<ram:SpecifiedTradePaymentTerms>
<ram:Description>Cash Discount</ram:Description>
<ram:DueDateDateTime>
<udt:DateTimeString format="102">20251226</udt:DateTimeString>
</ram:DueDateDateTime>
<ram:ApplicableTradePaymentDiscountTerms>
<ram:BasisAmount>135.64</ram:BasisAmount>
<ram:CalculationPercent>2</ram:CalculationPercent>
<ram:ActualDiscountAmount>2.71</ram:ActualDiscountAmount>
</ram:ApplicableTradePaymentDiscountTerms>
</ram:SpecifiedTradePaymentTerms>

I placed this snippet inside a test file which was provided in #692 : response_1737188825551_ext_skonto.txt
Here only the description of the cash discount is parsed. Not the other fields.

Is this expected behaviour?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions