Skip to content

Commit 681a506

Browse files
committed
added payableroundingamount to ubl writer
1 parent 53a2e9e commit 681a506

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ZUGFeRD/InvoiceDescriptor22UBLWriter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,8 +514,8 @@ public override void Save(InvoiceDescriptor descriptor, Stream stream, ZUGFeRDFo
514514
_writeOptionalAmount(_Writer, "cbc", "ChargeTotalAmount", this._Descriptor.ChargeTotalAmount, forceCurrency: true);
515515
//_writeOptionalAmount(_Writer, "cbc", "TaxAmount", this._Descriptor.TaxTotalAmount, forceCurrency: true);
516516
_writeOptionalAmount(_Writer, "cbc", "PrepaidAmount", this._Descriptor.TotalPrepaidAmount, forceCurrency: true);
517-
_writeOptionalAmount(_Writer, "cbc", "PayableAmount", this._Descriptor.DuePayableAmount, forceCurrency: true);
518-
//_writeOptionalAmount(_Writer, "cbc", "PayableAlternativeAmount", this._Descriptor.RoundingAmount, forceCurrency: true);
517+
_writeOptionalAmount(_Writer, "cbc", "PayableRoundingAmount", this._Descriptor.RoundingAmount, forceCurrency: true);
518+
_writeOptionalAmount(_Writer, "cbc", "PayableAmount", this._Descriptor.DuePayableAmount, forceCurrency: true);
519519
_Writer.WriteEndElement(); //!LegalMonetaryTotal
520520

521521
foreach (TradeLineItem tradeLineItem in this._Descriptor.GetTradeLineItems())

0 commit comments

Comments
 (0)