From 01678c873dfa6fcbe5003789e79d8b7ad7c93551 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Thu, 17 Sep 2015 15:35:37 +0200 Subject: [PATCH] Bei Zahlungsausgang heutiges Datum vorbelegen --- bin/mozilla/ir.pl | 1 + templates/webpages/ir/_payments.html | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/bin/mozilla/ir.pl b/bin/mozilla/ir.pl index 2a3c59f41..86f78a807 100644 --- a/bin/mozilla/ir.pl +++ b/bin/mozilla/ir.pl @@ -429,6 +429,7 @@ sub form_footer { show_delete => ($::instance_conf->get_ir_changeable == 2) ? ($form->current_date(\%myconfig) eq $form->{gldate}) : ($::instance_conf->get_ir_changeable == 1), + today => DateTime->today, }); ##print $form->parse_html_template('ir/_payments'); # parser ##print $form->parse_html_template('webdav/_list'); # parser diff --git a/templates/webpages/ir/_payments.html b/templates/webpages/ir/_payments.html index cb4088622..63da6fcea 100644 --- a/templates/webpages/ir/_payments.html +++ b/templates/webpages/ir/_payments.html @@ -1,6 +1,7 @@ [%- USE T8 %] [%- USE LxERP %] [%- USE L %] +[%- USE HTML %] @@ -43,7 +44,11 @@ - + -- 2.20.1
[% IF $changeable %] - [% L.date_tag('datepaid_'_ i, $datepaid) %] + [% IF $datepaid %] + [% L.date_tag('datepaid_'_ i, $datepaid) %] + [% ELSE %] + [% L.date_tag('datepaid_'_ i, today) %] + [% END %] [% ELSE %] [% $datepaid %] [% END %] @@ -106,7 +111,7 @@ [% 'Total' | $T8 %][% LxERP.foramt_amount(totalpaid, 2) | html %][% LxERP.format_amount(totalpaid, 2) | html %]