<td>
<table width="100%">
<tr class="listheading">
-[% IF is_credit_note %]
+[% IF is_type_credit_note %]
<th colspan="6" class="listheading">Zahlungsausgänge</th>
[% ELSE %]
<th colspan="6" class="listheading">Zahlungseingänge</th>
<td align="center"><input name="paid_[% i %]" size="11" value="[% LxERP.format_amount($paid, 2, 1) %]"></td>
[% IF show_exchangerate %]
<td align="center">
- [% SET row.forex = 'forex_' _ i %]
- [% SET row.exchangerate = 'exchangerate_' _ i %]
- [% IF row.forex %]
+ [% SET forex = 'forex_' _ i %]
+ [% SET exchangerate = 'exchangerate_' _ i %]
+ [% IF forex %]
<input type="hidden" name="exchangerate_[% i %]" value="[% LxERP.format_amount($exchangerate, 2) %]">
- [% LxERP.format_amount(row.exchangerate, 2) %]
+ [% LxERP.format_amount(exchangerate, 2) %]
[% ELSE %]
<input name="exchangerate_[% i %]" size="10" value="[% LxERP.format_amount($exchangerate, 2, 1) %]">
[% END %]
<input type="hidden" name="forex_[% i %]" value="[% $forex %]">;
</td>
[% END %]
- <td align="center"><select name="AR_paid_$i">[% $selectAR_paid_ref %]</select></td>
+ <td align="center"><select name="AR_paid_[% i %]">[% $selectAR_paid_ref %]</select></td>
</tr>
-[%# push(@triggers, "datepaid_$i", "BL", "trigger_datepaid_$i"); %]
<script type='text/javascript'>
Calendar.setup({ inputField : "datepaid_[% i %]", ifFormat :"[% myconfig_jsc_dateformat %]", align : "TR", button : "trigger_datepaid_[% i %]" });
$('input[name="paid_[% i %]"]').blur(function(){ check_right_number_format(this) });
<input type="hidden" name="paidaccounts" value="[% paidaccounts %]">
<input type="hidden" name="selectAR_paid" value="[% selectAR_paid %]">
- <input type="hidden" name="oldinvtotal" value="[% rowcount %]">
+ <input type="hidden" name="oldinvtotal" value="[% oldinvtotal %]">
- <input type="hidden" name="oldtotalpaid" value="$totalpaid">
+ <input type="hidden" name="oldtotalpaid" value="[% totalpaid %]">
</table>
</td>