7 <tr class="listheading">
8 [% IF is_type_credit_note %]
9 <th colspan="6" class="listheading">[%- 'Payments' | $T8 %]</th>
11 <th colspan="6" class="listheading">[%- 'Incoming Payments' | $T8 %]</th>
17 <th>[%- 'Date' | $T8 %]</th>
18 <th>[%- 'Source' | $T8 %]</th>
19 <th>[%- 'Memo' | $T8 %]</th>
20 <th>[%- 'Amount' | $T8 %]</th>
21 [% IF show_exchangerate %]
22 <th>[%- 'Exch' | $T8 %]</th>
24 <th>[%- 'Account' | $T8 %]</th>
28 [% FOREACH i = paid_indices %]
29 [% SET changeable = 'changeable_' _ i %]
30 [% SET acc_trans_id = 'acc_trans_id_' _ i %]
31 [% SET p_gldate = 'gldate_' _ i %]
32 [% SET datepaid = 'datepaid_' _ i %]
33 [% SET source = 'source_' _ i %]
34 [% SET memo = 'memo_' _ i %]
35 [% SET paid = 'paid_' _ i %]
36 [% SET AR_paid = 'AR_paid_' _ i %]
37 [% SET selectAR_paid_ref = 'selectAR_paid_' _ i %]
38 <tr style='display:none'>
40 <input type=hidden name="acc_trans_id_[% i %]" value="[% $acc_trans_id %]">
41 <input type=hidden name="gldate_[% i %]" value="[% $p_gldate %]">
48 [% L.date_tag('datepaid_'_ i, $datepaid) %]
50 <input type="hidden" name="datepaid_[% i %]" value="[% $datepaid %]"> [% $datepaid %]
56 <input name="source_[% i %]" size="11" value="[% $source %]">
58 <input type="hidden" name="source_[% i %]" value="[% $source %]">[% $source %]
63 <input name="memo_[% i %]" size="11" value="[% $memo %]">
65 <input type="hidden" name="memo_[% i %]" value="[% $memo %]">[% $memo %]
70 <input name="paid_[% i %]" size="11" value="[% LxERP.format_amount($paid, 2, 1) %]">
72 <input type="hidden" name="paid_[% i %]" value="[% LxERP.format_amount($paid, 2, 1) %]">
73 [% LxERP.format_amount($paid, 2, 1) %]
77 [% IF show_exchangerate %]
79 [% SET forex = 'forex_' _ i %]
80 [% SET exchangerate = 'exchangerate_' _ i %]
82 <input type="hidden" name="exchangerate_[% i %]" value="[% LxERP.format_amount($exchangerate, 2) %]">
83 [% LxERP.format_amount($forex, 2) %]
86 <input name="exchangerate_[% i %]" size="10" value="[% LxERP.format_amount($exchangerate, 2, 1) %]">
88 <input type="hidden" name="exchangerate_[% i %]" value="[% LxERP.format_amount($exchangerate, 2, 1) %]">
89 [% LxERP.format_amount($exchangerate, 2, 1) %]
92 <input type="hidden" name="forex_[% i %]" value="[% $forex %]">
98 <select name="AR_paid_[% i %]">[% $selectAR_paid_ref %]</select>
100 <input type="hidden" name="AR_paid_[% i %]" value="[% $AR_paid %]">[% $AR_paid %]
106 <tr style='display:none'>
108 <script type='text/javascript'>
109 $('input[name="paid_[% i %]"]').blur(function(){ check_right_number_format(this) });
110 $('#datepaid_[% i %]').blur(function(){ check_right_date_format(this) });
121 <td align="center">[%- 'Total' | $T8 %]</td>
122 <td align="center">[% LxERP.format_amount(totalpaid, 2) | html %]</td>
127 <td align="center">[%- 'Missing amount' | $T8 %]</td>
128 <td align="center">[% LxERP.format_amount(paid_missing, 2) | html %]</td>
130 <tr style='display:none'>
132 <input type="hidden" name="paidaccounts" value="[% paidaccounts %]">
133 <input type="hidden" name="selectAR_paid" value="[% selectAR_paid %]">
134 <input type="hidden" name="oldinvtotal" value="[% oldinvtotal %]">
136 <input type="hidden" name="oldtotalpaid" value="[% totalpaid %]">