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
[%- USE T8 %]
[%- USE LxERP %]
[%- USE L %]
+[%- USE HTML %]
<tr>
<td>
<table width="100%">
<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 %]
<td></td>
<td></td>
<td align="center">[% 'Total' | $T8 %]</td>
- <td align="center">[% LxERP.foramt_amount(totalpaid, 2) | html %]</td>
+ <td align="center">[% LxERP.format_amount(totalpaid, 2) | html %]</td>
</tr>
<tr>
<td></td>