From: Sven Schöling Date: Mon, 14 Sep 2015 11:01:20 +0000 (+0200) Subject: Bei Zahlungseingang heutiges Datum vorbelegen. X-Git-Tag: release-3.4.1~743 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=5058c99dba2ca85519c891465f86b4f3d7fcfce5;p=kivitendo-erp.git Bei Zahlungseingang heutiges Datum vorbelegen. --- diff --git a/bin/mozilla/is.pl b/bin/mozilla/is.pl index dec398d58..84109cdd6 100644 --- a/bin/mozilla/is.pl +++ b/bin/mozilla/is.pl @@ -487,6 +487,7 @@ sub form_footer { show_delete => ($::instance_conf->get_is_changeable == 2) ? ($form->current_date(\%myconfig) eq $form->{gldate}) : ($::instance_conf->get_is_changeable == 1), + today => DateTime->today, }); ##print $form->parse_html_template('is/_payments'); # parser ##print $form->parse_html_template('webdav/_list'); # parser diff --git a/templates/webpages/is/_payments.html b/templates/webpages/is/_payments.html index 41b018615..e0da4e1a2 100644 --- a/templates/webpages/is/_payments.html +++ b/templates/webpages/is/_payments.html @@ -45,7 +45,11 @@ [% 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 %]