7 <tr class="listheading">
8 [% IF is_type_credit_note || vc == 'vendor' %]
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 AP_paid = 'AP_paid_' _ i %]
37 [% SET selectAP_paid_ref = 'selectAP_paid_' _ i %]
39 <input type=hidden name="acc_trans_id_[% i %]" value=[% $acc_trans_id %]>
40 <input type=hidden name="gldate_[% i %]" value=[% $p_gldate %]>
46 [% L.date_tag('datepaid_'_ i, $datepaid) %]
48 <input type="hidden" name="datepaid_[% i %]" value="[% $datepaid %]">[% $datepaid %]
53 <input name="source_[% i %]" size="11" value="[% $source %]">
55 <input type="hidden" name="source_[% i %]" value="[% $source %]">[% $source %]
60 <input name="memo_[% i %]" size="11" value="[% $memo %]">
62 <input type="hidden" name="memo_[% i %]" value="[% $memo %]">[% $memo %]
67 <input name="paid_[% i %]" size="11" value="[% LxERP.format_amount($paid, 2, 1) %]">
69 <input type="hidden" name="paid_[% i %]" value="[% LxERP.format_amount($paid, 2, 1) %]">
70 [% LxERP.format_amount($paid, 2, 1) %]
74 [% IF show_exchangerate %]
76 [% SET forex = 'forex_' _ i %]
77 [% SET exchangerate = 'exchangerate_' _ i %]
79 <input type="hidden" name="exchangerate_[% i %]" value="[% LxERP.format_amount($exchangerate, 2) %]">
80 [% LxERP.format_amount($forex, 2) %]
83 <input name="exchangerate_[% i %]" size="10" value="[% LxERP.format_amount($exchangerate, 2, 1) %]">
85 <input type="hidden" name="exchangerate_[% i %]" value="[% LxERP.format_amount($exchangerate, 2, 1) %]">
86 [% LxERP.format_amount($exchangerate, 2, 1) %]
89 <input type="hidden" name="forex_[% i %]" value="[% $forex %]">
95 <select name="AP_paid_[% i %]">[% $selectAP_paid_ref %]</select>
97 <input type="hidden" name="AP_paid_[% i %]" value="[% $AP_paid %]">[% $AP_paid %]
108 <td align="center">[% 'Total' | $T8 %]</td>
109 <td align="center">[% LxERP.foramt_amount(totalpaid, 2) | html %]</td>
114 <td align="center">[% 'Missing amount' | $T8 %]</td>
115 <td align="center">[% LxERP.format_amount(paid_missing, 2) | html %]</td>
118 <input type="hidden" name="paidaccounts" value="[% paidaccounts %]">
119 <input type="hidden" name="selectAP_paid" value="[% selectAP_paid %]">
120 <input type="hidden" name="oldinvtotal" value="[% oldinvtotal %]">
122 <input type="hidden" name="oldtotalpaid" value="[% totalpaid %]">