MalteserJohanniterJohanneshaus/Datev/DatevExporter - Spalten ergänzt

This commit is contained in:
2024-06-11 12:07:03 +02:00
parent d1f663eb0b
commit c7c7f0ff9c

View File

@@ -32,7 +32,7 @@ namespace MalteserJohanniterJohanneshaus.Export
StringBuilder sb = new StringBuilder();
//sb.AppendLine("Datum;Konto;Gegenkonto;Buchungstext;Belegfeld1;Umsatz Soll;Kostenstelle");
sb.AppendLine("Belegdatum;Belegnummer;Debitorennummer;Kontonummer;Betrag;Buchungstext;Kostenstelle");
sb.AppendLine("Belegdatum;Belegnummer;Debitorennummer;Kontonummer;Betrag;Buchungstext;Kostenstelle;SH KZN;F KZN;W KZN");
var s = GetMonatlicheBetraegeString(date);
if (!String.IsNullOrWhiteSpace(s))
@@ -104,6 +104,7 @@ c2s.Notice AS 'Kostenstelle'
sb.Append(";");
sb.Append("70000");
sb.Append(";S;0;EUR");
}
return sb.ToString();
@@ -147,12 +148,13 @@ cb2sc.Notice AS 'Kostenstelle',
sb.Append(String.Format("{0:0.00}", row[0]));
sb.Append(";");
sb.Append(String.Format("ABW, {0} - {1:yyyy}/{1:MM}", row[3], lastDate));
sb.Append(String.Format("{0} - {1:yyyy}/{1:MM}", row[3], lastDate));
sb.Append(";");
string costcenter;
costcenter = String.Format("{0}", row[5]); // CB2SC Notice
costcenter.Trim();
sb.Append(costcenter);
sb.Append(";S;0;EUR");
}
return sb.ToString();