Skip to content
Snippets Groups Projects
Commit 0c580713 authored by onny's avatar onny
Browse files

update invoice template

parent 7db5a8b9
No related branches found
No related tags found
No related merge requests found
...@@ -137,7 +137,11 @@ ...@@ -137,7 +137,11 @@
$leistung_von = $custom_fields['invoice']['leistung_von']; $leistung_von = $custom_fields['invoice']['leistung_von'];
$leistung_bis = $custom_fields['invoice']['leistung_bis']; $leistung_bis = $custom_fields['invoice']['leistung_bis'];
if ($leistung_von && $leistung_bis) { if ($leistung_von && $leistung_bis) {
echo '<div>Leistungszeitraum: ' . $leistung_von . ' bis ' . $leistung_bis . '</div>'; $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 '<div>Leistungszeitraum: ' . $leistung_von . ' bis ' . $leistung_bis . '</div>';
} }
if ($leistungsort) { if ($leistungsort) {
echo '<div>Leistungsort: ' . $leistungsort . '</div>'; echo '<div>Leistungsort: ' . $leistungsort . '</div>';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment