Zeiterfassung Feature

* Bugfix XLS Export Bereinigungen
 * Bugfix Richtige Datumsdarstellung von Krankenständen
This commit is contained in:
Daniel Spitzer
2024-08-20 11:46:35 +02:00
parent 35e2a47fea
commit 9cf34dd0de
2 changed files with 7 additions and 1 deletions
@@ -175,7 +175,13 @@ table = $('#datatable').DataTable({
exportOptions: {
columns: ['th:not(:last-child)'],
format: {
header: function (data, row, column, node) {
console.log(data);
data = data.replace(/<.*>/g, '');
return data;
},
body: function (data, row, column, node) {
data = data.replace(/<span class='d-none'>.*<\/span>/g, '');
data = $('<p>' + data + '</p>').text();
return $.isNumeric(data.replace(',', '.')) ? data.replace(',', '.') : data;
}