1 [%- USE LxERP %][% USE T8 %]
5 <tr class="listheading">
6 [% IF is_type_credit_note %]
7 <th colspan="6" class="listheading">[%- 'Payments' | $T8 %]</th>
9 <th colspan="6" class="listheading">[%- 'Incoming Payments' | $T8 %]</th>
15 <th>[%- 'Date' | $T8 %]</th>
16 <th>[%- 'Source' | $T8 %]</th>
17 <th>[%- 'Memo' | $T8 %]</th>
18 <th>[%- 'Amount' | $T8 %]</th>
19 [% IF show_exchangerate %]
20 <th>[%- 'Exch' | $T8 %]</th>
22 <th>[%- 'Account' | $T8 %]</th>
26 [% FOREACH i = paid_indices %]
27 [% SET changeable = 'changeable_' _ i %]
28 [% SET acc_trans_id = 'acc_trans_id_' _ i %]
29 [% SET gldate = 'gldate_' _ i %]
30 [% SET datepaid = 'datepaid_' _ i %]
31 [% SET source = 'source_' _ i %]
32 [% SET memo = 'memo_' _ i %]
33 [% SET paid = 'paid_' _ i %]
34 [% SET AR_paid = 'AR_paid_' _ i %]
35 [% SET selectAR_paid_ref = 'selectAR_paid_' _ i %]
37 <input type=hidden name="acc_trans_id_[% i %]" value=[% $acc_trans_id %]>
38 <input type=hidden name="gldate_[% i %]" value=[% $gldate %]>
43 <input id="datepaid_[% i %]" name="datepaid_[% i %]" size="11" title="[% dateformat %]" value="[% $datepaid %]">
44 <input type="button" name="datepaid_[% i %]" id="trigger_datepaid_[% i %]" value="?">
46 <input type="hidden" name="datepaid_[% i %]" value="[% $datepaid %]"> [% $datepaid %]
52 <input name="source_[% i %]" size="11" value="[% $source %]">
54 <input type="hidden" name="source_[% i %]" value="[% $source %]">[% $source %]
59 <input name="memo_[% i %]" size="11" value="[% $memo %]">
61 <input type="hidden" name="memo_[% i %]" value="[% $memo %]">[% $memo %]
66 <input name="paid_[% i %]" size="11" value="[% LxERP.format_amount($paid, 2, 1) %]">
68 <input type="hidden" name="paid_[% i %]" value="[% LxERP.format_amount($paid, 2, 1) %]">
69 [% LxERP.format_amount($paid, 2, 1) %]
73 [% IF show_exchangerate %]
75 [% SET forex = 'forex_' _ i %]
76 [% SET exchangerate = 'exchangerate_' _ i %]
78 <input type="hidden" name="exchangerate_[% i %]" value="[% LxERP.format_amount($exchangerate, 2) %]">
79 [% LxERP.format_amount($forex, 2) %]
82 <input name="exchangerate_[% i %]" size="10" value="[% LxERP.format_amount($exchangerate, 2, 1) %]">
84 <input type="hidden" name="exchangerate_[% i %]" value="[% LxERP.format_amount($exchangerate, 2, 1) %]">
85 [% LxERP.format_amount($exchangerate, 2, 1) %]
88 <input type="hidden" name="forex_[% i %]" value="[% $forex %]">
94 <select name="AR_paid_[% i %]">[% $selectAR_paid_ref %]</select>
96 <input type="hidden" name="AR_paid_[% i %]" value="[% $AR_paid %]">[% $AR_paid %]
102 <script type='text/javascript'>
103 Calendar.setup({ inputField : "datepaid_[% i %]", ifFormat :"[% myconfig_jsc_dateformat %]", align : "TR", button : "trigger_datepaid_[% i %]" });
104 $('input[name="paid_[% i %]"]').blur(function(){ check_right_number_format(this) });
105 $('#datepaid_[% i %]').blur(function(){ check_right_date_format(this) });
114 <td align="center">[%- 'Total' | $T8 %]</td>
115 <td align="center">[% LxERP.format_amount(totalpaid, 2) | html %]</td>
120 <td align="center">[%- 'Missing amount' | $T8 %]</td>
121 <td align="center">[% LxERP.format_amount(paid_missing, 2) | html %]</td>
124 <input type="hidden" name="paidaccounts" value="[% paidaccounts %]">
125 <input type="hidden" name="selectAR_paid" value="[% selectAR_paid %]">
126 <input type="hidden" name="oldinvtotal" value="[% oldinvtotal %]">
128 <input type="hidden" name="oldtotalpaid" value="[% totalpaid %]">