Lines 94-162
function enableCheckboxActions(){
Link Here
|
94 |
<tbody> |
94 |
<tbody> |
95 |
[% FOREACH account_grp IN accounts %] |
95 |
[% FOREACH account_grp IN accounts %] |
96 |
[% FOREACH line IN account_grp.accountlines %] |
96 |
[% FOREACH line IN account_grp.accountlines %] |
97 |
<tr> |
97 |
<tr> |
98 |
<td> |
98 |
[% IF line.amountoutstanding > 0 %] |
99 |
[% IF ( line.amountoutstanding > 0 ) %] |
99 |
<td> |
100 |
<input class="cb" type="checkbox" checked="checked" name="incl_par_[% line.accountlines_id %]" /> |
100 |
[% IF ( line.amountoutstanding > 0 ) %] |
|
|
101 |
<input class="cb" type="checkbox" checked="checked" name="incl_par_[% line.accountlines_id %]" /> |
102 |
[% END %] |
103 |
</td> |
104 |
<td> |
105 |
[% IF ( line.amountoutstanding > 0 ) %] |
106 |
<input type="submit" name="pay_indiv_[% line.accountlines_id %]" value="Pay" /> |
107 |
[% IF CAN_user_updatecharges_writeoff %]<input type="submit" name="wo_indiv_[% line.accountlines_id %]" value="Write off" />[% END %] |
108 |
[% END %] |
109 |
|
110 |
<input type="hidden" name="itemnumber[% line.accountlines_id %]" value="[% line.itemnumber %]" /> |
111 |
<input type="hidden" name="description[% line.accountlines_id %]" value="[% line.description %]" /> |
112 |
<input type="hidden" name="accounttype[% line.accountlines_id %]" value="[% line.accounttype %]" /> |
113 |
<input type="hidden" name="amount[% line.accountlines_id %]" value="[% line.amount %]" /> |
114 |
<input type="hidden" name="accountlines_id[% line.accountlines_id %]" value="[% line.accountlines_id %]" /> |
115 |
<input type="hidden" name="amountoutstanding[% line.accountlines_id %]" value="[% line.amountoutstanding %]" /> |
116 |
<input type="hidden" name="borrowernumber[% line.accountlines_id %]" value="[% line.borrowernumber %]" /> |
117 |
<input type="hidden" name="notify_id[% line.accountlines_id %]" value="[% line.notify_id %]" /> |
118 |
<input type="hidden" name="notify_level[% line.accountlines_id %]" value="[% line.notify_level %]" /> |
119 |
<input type="hidden" name="totals[% line.accountlines_id %]" value="[% line.totals %]" /> |
120 |
</td> |
121 |
<td> |
122 |
[% SWITCH line.accounttype %] |
123 |
[% CASE 'Pay' %]Payment, thanks |
124 |
[% CASE 'Pay00' %]Payment, thanks (cash via SIP2) |
125 |
[% CASE 'Pay01' %]Payment, thanks (VISA via SIP2) |
126 |
[% CASE 'Pay02' %]Payment, thanks (credit card via SIP2) |
127 |
[% CASE 'N' %]New card |
128 |
[% CASE 'F' %]Fine |
129 |
[% CASE 'A' %]Account management fee |
130 |
[% CASE 'M' %]Sundry |
131 |
[% CASE 'L' %]Lost item |
132 |
[% CASE 'W' %]Writeoff |
133 |
[% CASE 'FU' %]Accruing fine |
134 |
[% CASE 'HE' %]Hold waiting too long |
135 |
[% CASE 'Rent' %]Rental fee |
136 |
[% CASE 'FOR' %]Forgiven |
137 |
[% CASE 'LR' %]Lost item fee refund |
138 |
[% CASE 'PAY' %]Payment |
139 |
[% CASE 'WO' %]Writeoff |
140 |
[% CASE 'C' %]Credit |
141 |
[% CASE 'CR' %]Credit |
142 |
[% CASE %][% line.accounttype %] |
143 |
[%- END -%] |
144 |
[%- IF line.description %], [% line.description %][% END %] |
145 |
[% IF line.title %]([% line.title %])[% END %] |
146 |
</td> |
147 |
<td><input type="text" name="payment_note_[% line.accountlines_id %]" /></td> |
148 |
<td>[% line.accounttype %]</td> |
149 |
<td>[% line.notify_id %]</td> |
150 |
<td>[% line.notify_level %]</td> |
151 |
|
152 |
<td class="debit" style="text-align: right;">[% line.amount | $Price %]</td> |
153 |
<td class="debit" style="text-align: right;">[% line.amountoutstanding | $Price %]</td> |
154 |
[% END %] |
155 |
</tr> |
101 |
[% END %] |
156 |
[% END %] |
102 |
</td> |
157 |
[% IF ( account_grp.total ) > 0 %] |
103 |
<td> |
158 |
<tr> |
104 |
[% IF ( line.amountoutstanding > 0 ) %] |
159 |
<td class="total" colspan="8" style="text-align: right;">Sub total:</td> |
105 |
<input type="submit" name="pay_indiv_[% line.accountlines_id %]" value="Pay" /> |
160 |
<td style="text-align: right;">[% account_grp.total | $Price %]</td> |
106 |
[% IF CAN_user_updatecharges_writeoff %]<input type="submit" name="wo_indiv_[% line.accountlines_id %]" value="Write off" />[% END %] |
161 |
</tr> |
|
|
162 |
[% ELSE %] |
163 |
<tr> |
164 |
<td class="total" colspan="8" style="text-align: right;">Credit Sub total:</td> |
165 |
<td style="text-align: right;">[% account_grp.total | $Price %]</td> |
166 |
</tr> |
107 |
[% END %] |
167 |
[% END %] |
108 |
<input type="hidden" name="itemnumber[% line.accountlines_id %]" value="[% line.itemnumber %]" /> |
|
|
109 |
<input type="hidden" name="description[% line.accountlines_id %]" value="[% line.description %]" /> |
110 |
<input type="hidden" name="accounttype[% line.accountlines_id %]" value="[% line.accounttype %]" /> |
111 |
<input type="hidden" name="amount[% line.accountlines_id %]" value="[% line.amount %]" /> |
112 |
<input type="hidden" name="accountlines_id[% line.accountlines_id %]" value="[% line.accountlines_id %]" /> |
113 |
<input type="hidden" name="amountoutstanding[% line.accountlines_id %]" value="[% line.amountoutstanding %]" /> |
114 |
<input type="hidden" name="borrowernumber[% line.accountlines_id %]" value="[% line.borrowernumber %]" /> |
115 |
<input type="hidden" name="notify_id[% line.accountlines_id %]" value="[% line.notify_id %]" /> |
116 |
<input type="hidden" name="notify_level[% line.accountlines_id %]" value="[% line.notify_level %]" /> |
117 |
<input type="hidden" name="totals[% line.accountlines_id %]" value="[% line.totals %]" /> |
118 |
</td> |
119 |
<td> |
120 |
[% SWITCH line.accounttype %] |
121 |
[% CASE 'Pay' %]Payment, thanks |
122 |
[% CASE 'Pay00' %]Payment, thanks (cash via SIP2) |
123 |
[% CASE 'Pay01' %]Payment, thanks (VISA via SIP2) |
124 |
[% CASE 'Pay02' %]Payment, thanks (credit card via SIP2) |
125 |
[% CASE 'N' %]New card |
126 |
[% CASE 'F' %]Fine |
127 |
[% CASE 'A' %]Account management fee |
128 |
[% CASE 'M' %]Sundry |
129 |
[% CASE 'L' %]Lost item |
130 |
[% CASE 'W' %]Writeoff |
131 |
[% CASE 'FU' %]Accruing fine |
132 |
[% CASE 'HE' %]Hold waiting too long |
133 |
[% CASE 'Rent' %]Rental fee |
134 |
[% CASE 'FOR' %]Forgiven |
135 |
[% CASE 'LR' %]Lost item fee refund |
136 |
[% CASE 'PAY' %]Payment |
137 |
[% CASE 'WO' %]Writeoff |
138 |
[% CASE 'C' %]Credit |
139 |
[% CASE 'CR' %]Credit |
140 |
[% CASE %][% line.accounttype %] |
141 |
[%- END -%] |
142 |
[%- IF line.description %], [% line.description %][% END %] |
143 |
[% IF line.title %]([% line.title %])[% END %] |
144 |
</td> |
145 |
<td><input type="text" name="payment_note_[% line.accountlines_id %]" /></td> |
146 |
<td>[% line.accounttype %]</td> |
147 |
<td>[% line.notify_id %]</td> |
148 |
<td>[% line.notify_level %]</td> |
149 |
<td class="debit" style="text-align: right;">[% line.amount | $Price %]</td> |
150 |
<td class="debit" style="text-align: right;">[% line.amountoutstanding | $Price %]</td> |
151 |
</tr> |
152 |
[% END %] |
153 |
[% IF ( account_grp.total ) %] |
154 |
<tr> |
155 |
|
156 |
<td class="total" colspan="8" style="text-align: right;">Sub total:</td> |
157 |
<td style="text-align: right;">[% account_grp.total | $Price %]</td> |
158 |
</tr> |
159 |
[% END %] |
160 |
[% END %] |
168 |
[% END %] |
161 |
</tbody> |
169 |
</tbody> |
162 |
</table> |
170 |
</table> |
163 |
- |
|
|