Skip to content

Commit

Permalink
order of element fix for ZUGFeRD 1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanstapel committed Jan 25, 2024
1 parent 750e770 commit d81522f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ZUGFeRD/InvoiceDescriptor1Writer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ public override void Save(InvoiceDescriptor descriptor, Stream stream)
Writer.WriteEndElement(); // !ApplicableSupplyChainTradeDelivery

Writer.WriteStartElement("ram:ApplicableSupplyChainTradeSettlement");
Writer.WriteElementString("ram:InvoiceCurrencyCode", this.Descriptor.Currency.EnumToString());

if (Descriptor.Profile != Profile.Basic)
{
Expand All @@ -210,8 +211,7 @@ public override void Save(InvoiceDescriptor descriptor, Stream stream)
if (!String.IsNullOrEmpty(this.Descriptor.PaymentReference))
{
_writeOptionalElementString(Writer, "ram:PaymentReference", this.Descriptor.PaymentReference);
}
Writer.WriteElementString("ram:InvoiceCurrencyCode", this.Descriptor.Currency.EnumToString());
}

if (this.Descriptor.CreditorBankAccounts.Count == 0 && this.Descriptor.DebitorBankAccounts.Count == 0)
{
Expand Down

0 comments on commit d81522f

Please sign in to comment.