Skip to content

Commit e0dc6b6

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ZUGFeRD/InvoiceDescriptor20Reader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ public override InvoiceDescriptor Load(Stream stream)
245245
XmlUtils.NodeAsDecimal(node, ".//ram:CalculatedAmount", nsmgr, 0).Value,
246246
default(TaxTypes).FromString(XmlUtils.NodeAsString(node, ".//ram:TypeCode", nsmgr)),
247247
default(TaxCategoryCodes).FromString(XmlUtils.NodeAsString(node, ".//ram:CategoryCode", nsmgr)),
248-
0,
248+
XmlUtils.NodeAsDecimal(node, ".//ram:AllowanceChargeBasisAmount", nsmgr),
249249
default(TaxExemptionReasonCodes).FromString(XmlUtils.NodeAsString(node, ".//ram:ExemptionReasonCode", nsmgr)),
250250
XmlUtils.NodeAsString(node, ".//ram:ExemptionReason", nsmgr));
251251
}

0 commit comments

Comments
 (0)