From 0c5807132ea6cecdb9d031d9b61e478d371f7607 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Thu, 30 Nov 2023 12:59:07 +0100 Subject: [PATCH] update invoice template --- vtdirektmarketing.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vtdirektmarketing.php b/vtdirektmarketing.php index 0271a83..1ba51f0 100755 --- a/vtdirektmarketing.php +++ b/vtdirektmarketing.php @@ -137,7 +137,11 @@ $leistung_von = $custom_fields['invoice']['leistung_von']; $leistung_bis = $custom_fields['invoice']['leistung_bis']; if ($leistung_von && $leistung_bis) { - echo '
Leistungszeitraum: ' . $leistung_von . ' bis ' . $leistung_bis . '
'; + $leistung_von = new DateTime($leistung_von); + $leistung_bis = new DateTime($leistung_bis); + $leistung_von = $leistung_von->format('d.m.Y'); + $leistung_bis = $leistung_bis->format('d.m.Y'); + echo '
Leistungszeitraum: ' . $leistung_von . ' bis ' . $leistung_bis . '
'; } if ($leistungsort) { echo '
Leistungsort: ' . $leistungsort . '
';