[% FOREACH i = paid_indices %]
[% SET changeable = 'changeable_' _ i %]
[% SET acc_trans_id = 'acc_trans_id_' _ i %]
[% FOREACH i = paid_indices %]
[% SET changeable = 'changeable_' _ i %]
[% SET acc_trans_id = 'acc_trans_id_' _ i %]
[% SET datepaid = 'datepaid_' _ i %]
[% SET source = 'source_' _ i %]
[% SET memo = 'memo_' _ i %]
[% SET datepaid = 'datepaid_' _ i %]
[% SET source = 'source_' _ i %]
[% SET memo = 'memo_' _ i %]
[% SET selectAP_paid_ref = 'selectAP_paid_' _ i %]
<input type=hidden name="acc_trans_id_[% i %]" value=[% $acc_trans_id %]>
[% SET selectAP_paid_ref = 'selectAP_paid_' _ i %]
<input type=hidden name="acc_trans_id_[% i %]" value=[% $acc_trans_id %]>
[% ELSE %]
[% IF $changeable %]
<input name="exchangerate_[% i %]" size="10" value="[% LxERP.format_amount($exchangerate, 2, 1) %]">
[% ELSE %]
[% IF $changeable %]
<input name="exchangerate_[% i %]" size="10" value="[% LxERP.format_amount($exchangerate, 2, 1) %]">
$('input[name="paid_[% i %]"]').blur(function(){ check_right_number_format(this) });
$('#datepaid_[% i %]').blur(function(){ check_right_date_format(this) });
</script>
$('input[name="paid_[% i %]"]').blur(function(){ check_right_number_format(this) });
$('#datepaid_[% i %]').blur(function(){ check_right_date_format(this) });
</script>