Bei Zahlungseingang heutiges Datum vorbelegen.
authorSven Schöling <s.schoeling@linet-services.de>
Mon, 14 Sep 2015 11:01:20 +0000 (13:01 +0200)
committerSven Schöling <s.schoeling@linet-services.de>
Mon, 14 Sep 2015 11:01:20 +0000 (13:01 +0200)
bin/mozilla/is.pl
templates/webpages/is/_payments.html

index dec398d..84109cd 100644 (file)
@@ -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
index 41b0186..e0da4e1 100644 (file)
      <tr>
      <td align="center">
      [% 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 %]
        <input type="hidden" name="datepaid_[% i %]" value="[% $datepaid %]"> [% $datepaid %]
      [% END %]