fix xml export

This commit is contained in:
beo3000 2026-02-08 20:26:06 +01:00
parent 2bc7bbd623
commit a7d1441db7
1 changed files with 3 additions and 3 deletions

View File

@ -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");