Revision 8c204ce4
Von Moritz Bunkus vor mehr als 9 Jahren hinzugefügt
bin/mozilla/ap.pl | ||
---|---|---|
410 | 410 |
|
411 | 411 |
$form->{paid_missing} = $form->{invtotal_unformatted} - $form->{totalpaid}; |
412 | 412 |
|
413 |
print $form->parse_html_template('ap/form_header'); |
|
413 |
print $form->parse_html_template('ap/form_header', { |
|
414 |
today => DateTime->today, |
|
415 |
}); |
|
414 | 416 |
|
415 | 417 |
$main::lxdebug->leave_sub(); |
416 | 418 |
} |
bin/mozilla/ar.pl | ||
---|---|---|
442 | 442 |
ARselected => $ARselected, |
443 | 443 |
title_str => $title, |
444 | 444 |
follow_up_trans_info => $follow_up_trans_info, |
445 |
today => DateTime->today, |
|
445 | 446 |
}); |
446 | 447 |
|
447 | 448 |
$main::lxdebug->leave_sub(); |
templates/webpages/ap/form_header.html | ||
---|---|---|
283 | 283 |
[% temp = "datepaid_"_ i %] |
284 | 284 |
<td align="center"> |
285 | 285 |
[% IF( changeable ) %] |
286 |
[% L.date_tag(temp, $temp) %] |
|
286 |
[% L.date_tag(temp, $temp ? $temp : today) %]
|
|
287 | 287 |
[% ELSE %] |
288 | 288 |
[% $temp | html %] |
289 | 289 |
<input type="hidden" name="[% temp %]" value="[% $temp | html %]"> |
templates/webpages/ar/form_header.html | ||
---|---|---|
213 | 213 |
<tr> |
214 | 214 |
<td align=center> |
215 | 215 |
[%- IF row.changeable %] |
216 |
[% L.date_tag('datepaid_' _ loop.count, row.datepaid) %] |
|
216 |
[% L.date_tag('datepaid_' _ loop.count, row.datepaid ? row.datepaid : today) %]
|
|
217 | 217 |
[%- ELSE %] |
218 | 218 |
[% row.datepaid | html %][% L.hidden_tag('datepaid_' _ loop.count, row.datepaid) %] |
219 | 219 |
[%- END %] |
Auch abrufbar als: Unified diff
Debitoren-/Kreditorenbuchungen: Zahlungsdatum mit aktuellem Datum vorbelegen