Skip to content

Commit

Permalink
Merge pull request #591 from jdzi/master
Browse files Browse the repository at this point in the history
Use ReasonCode.GetDescriptionAttribute() for ReasonCode not Reason (text)
  • Loading branch information
stephanstapel authored Jan 19, 2025
2 parents b4c8a19 + 6cab031 commit 9e30e23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ZUGFeRD/InvoiceDescriptor20Writer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ public override void Save(InvoiceDescriptor descriptor, Stream stream, ZUGFeRDFo
Writer.WriteValue(_formatDecimal(tradeAllowanceCharge.ActualAmount));
Writer.WriteEndElement();

Writer.WriteOptionalElementString("ram", "ReasonCode", tradeAllowanceCharge.Reason); // BT-98
Writer.WriteOptionalElementString("ram", "ReasonCode", tradeAllowanceCharge.ReasonCode.GetDescriptionAttribute()); // BT-98
Writer.WriteOptionalElementString("ram", "Reason", tradeAllowanceCharge.Reason); // BT-97

if (tradeAllowanceCharge.Tax != null)
Expand Down

0 comments on commit 9e30e23

Please sign in to comment.