From a7d1441db70ad947fa5403bc31de58c8e61e613c Mon Sep 17 00:00:00 2001 From: beo3000 Date: Sun, 8 Feb 2026 20:26:06 +0100 Subject: [PATCH] fix xml export --- src/GoodWood.Application/Services/SepaXmlBuilder.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/GoodWood.Application/Services/SepaXmlBuilder.cs b/src/GoodWood.Application/Services/SepaXmlBuilder.cs index 4a3c1b1..30a0768 100644 --- a/src/GoodWood.Application/Services/SepaXmlBuilder.cs +++ b/src/GoodWood.Application/Services/SepaXmlBuilder.cs @@ -22,7 +22,7 @@ public static class SepaXmlBuilder // GrpHdr w.WriteStartElement("GrpHdr"); - w.WriteElementString("MsgId", export.Id.ToString("N")[..35]); + w.WriteElementString("MsgId", export.Id.ToString("N")); w.WriteElementString("CreDtTm", DateTime.UtcNow.ToString("yyyy-MM-ddTHH:mm:ss")); w.WriteElementString("NbOfTxs", export.EntryCount.ToString()); w.WriteElementString("CtrlSum", export.TotalAmount.ToString("F2", System.Globalization.CultureInfo.InvariantCulture)); @@ -33,7 +33,7 @@ public static class SepaXmlBuilder // PmtInf w.WriteStartElement("PmtInf"); - w.WriteElementString("PmtInfId", $"PMTINF-{export.Id:N}"[..35]); + w.WriteElementString("PmtInfId", export.Id.ToString("N")); w.WriteElementString("PmtMtd", "DD"); w.WriteElementString("NbOfTxs", export.EntryCount.ToString()); w.WriteElementString("CtrlSum", export.TotalAmount.ToString("F2", System.Globalization.CultureInfo.InvariantCulture)); @@ -87,7 +87,7 @@ public static class SepaXmlBuilder w.WriteStartElement("DrctDbtTxInf"); w.WriteStartElement("PmtId"); - w.WriteElementString("EndToEndId", entry.Id.ToString("N")[..35]); + w.WriteElementString("EndToEndId", entry.Id.ToString("N")); w.WriteEndElement(); w.WriteStartElement("InstdAmt");