Skip to content

Commit f7a9af8

Browse files
committed
Read AllowanceChargeBasisAmount
Replace the hardcoded value of 0 with a dynamic value obtained from the XmlUtils.NodeAsDecimal method.
1 parent 8a12efb commit f7a9af8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ZUGFeRD/InvoiceDescriptor23CIIReader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ public override InvoiceDescriptor Load(Stream stream)
315315
XmlUtils.NodeAsDecimal(node, ".//ram:CalculatedAmount", nsmgr, 0).Value,
316316
default(TaxTypes).FromString(XmlUtils.NodeAsString(node, ".//ram:TypeCode", nsmgr)),
317317
default(TaxCategoryCodes).FromString(XmlUtils.NodeAsString(node, ".//ram:CategoryCode", nsmgr)),
318-
0,
318+
XmlUtils.NodeAsDecimal(node, ".//ram:AllowanceChargeBasisAmount", nsmgr),
319319
default(TaxExemptionReasonCodes).FromString(XmlUtils.NodeAsString(node, ".//ram:ExemptionReasonCode", nsmgr)),
320320
XmlUtils.NodeAsString(node, ".//ram:ExemptionReason", nsmgr));
321321
}

0 commit comments

Comments
 (0)