Lines 108-125
$(document).ready(function() {
Link Here
|
108 |
[% IF ( account.amountcredit ) %]<td class="credit" style="text-align: right;">[% ELSE %]<td class="debit" style="text-align: right;">[% END %][% account.amount %]</td> |
108 |
[% IF ( account.amountcredit ) %]<td class="credit" style="text-align: right;">[% ELSE %]<td class="debit" style="text-align: right;">[% END %][% account.amount %]</td> |
109 |
[% IF ( account.amountoutstandingcredit ) %]<td class="credit" style="text-align: right;">[% ELSE %]<td class="debit" style="text-align: right;">[% END %][% account.amountoutstanding %]</td> |
109 |
[% IF ( account.amountoutstandingcredit ) %]<td class="credit" style="text-align: right;">[% ELSE %]<td class="debit" style="text-align: right;">[% END %][% account.amountoutstanding %]</td> |
110 |
<td class="actions"> |
110 |
<td class="actions"> |
111 |
[% IF ( account.payment ) %] |
111 |
<div class="dropdown"> |
112 |
<a target="_blank" href="printfeercpt.pl?action=print&accountlines_id=[% account.accountlines_id %]&borrowernumber=[% account.borrowernumber %]" class="btn btn-mini"><i class="fa fa-print"></i> Print</a> |
112 |
<div class="btn-group"> |
|
|
113 |
[% IF ( account.amountoutstanding > 0 ) %] |
114 |
<a class="btn btn-mini" href="paycollect.pl?borrowernumber=[% account.borrowernumber %]&pay_individual=1&accounttype=[% account.accounttype %]&amount=[% account.amount %]&amountoutstanding=[% account.amountoutstanding %]&description=[% account.description %]¬ify_id=[% account.notify_id %]¬ify_level=[% account.notify_level %]&accountlines_id=[% account.accountlines_id %]"><i class="fa fa-dollar"></i> Pay</a>a |
115 |
[% # If there is amount outstanding, we have at least two actions (pay, print, sometimes writeoff), so we need dropdown %] |
116 |
<a class="btn btn-mini dropdown-toggle" id="subactions[% account.accountlines_id %]" role="button" data-toggle="dropdown" href="#"><i class="caret"></i></a> |
117 |
<ul class="dropdown-menu" role="menu" arialabelledby="subactions[% account.accountlines_id %]"> |
113 |
[% ELSE %] |
118 |
[% ELSE %] |
114 |
<a target="_blank" href="printinvoice.pl?action=print&accountlines_id=[% account.accountlines_id %]&borrowernumber=[% account.borrowernumber %]" class="btn btn-mini"><i class="fa fa-print"></i> Print</a> |
|
|
115 |
[% END %] |
116 |
[% IF ( reverse_col) %] |
117 |
[% IF ( account.payment ) %] |
119 |
[% IF ( account.payment ) %] |
118 |
<a href="boraccount.pl?action=reverse&accountlines_id=[% account.accountlines_id %]&borrowernumber=[% account.borrowernumber %]" class="btn btn-mini"><i class="fa fa-undo"></i> Reverse</a> |
120 |
<a target="_blank" href="printfeercpt.pl?action=print&accountlines_id=[% account.accountlines_id %]&borrowernumber=[% account.borrowernumber %]" class="btn btn-mini"><i class="fa fa-print"></i> Print</a> |
119 |
[% ELSE %] |
121 |
[% ELSE %] |
120 |
|
122 |
<a target="_blank" href="printinvoice.pl?action=print&accountlines_id=[% account.accountlines_id %]&borrowernumber=[% account.borrowernumber %]" class="btn btn-mini"><i class="fa fa-print"></i> Print</a> |
121 |
[% END %] |
123 |
[% END %] |
122 |
[% END %] |
124 |
[% END %] |
|
|
125 |
[% # If user can reverse, we need the dropdown %] |
126 |
[% IF ( reverse_col && account.payment ) %] |
127 |
<a class="btn btn-mini dropdown-toggle" id="subactions[% account.accountlines_id %]" role="button" data-toggle="dropdown" href="#"><i class="caret"></i></a> |
128 |
<ul class="dropdown-menu" role="menu" arialabelledby="subactions[% account.accountlines_id %]"> |
129 |
[% END %] |
130 |
|
131 |
[% IF ( account.amountoutstanding > 0 ) %] |
132 |
[% IF CAN_user_updatecharges_writeoff %] |
133 |
<li><a href="paycollect.pl?borrowernumber=[% account.borrowernumber %]&writeoff_individual=1&accounttype=[% account.accounttype %]&amount=[% account.amount %]&amountoutstanding=[% account.amountoutstanding %]&description=[% account.description %]¬ify_id=[% account.notify_id %]¬ify_level=[% account.notify_level %]&accountlines_id=[% account.accountlines_id %]"><i class="fa fa-times"></i> Write off</a></li> |
134 |
[% END %] |
135 |
<li><a target="_blank" href="printinvoice.pl?action=print&accountlines_id=[% account.accountlines_id %]&borrowernumber=[% account.borrowernumber %]"><i class="fa fa-print"></i> Print</a></li> |
136 |
[% END %] |
137 |
[% IF ( reverse_col && account.payment ) %] |
138 |
<li><a href="boraccount.pl?action=reverse&accountlines_id=[% account.accountlines_id %]&borrowernumber=[% account.borrowernumber %]"><i class="fa fa-undo"></i> Reverse</a></li> |
139 |
[% END %] |
123 |
</td> |
140 |
</td> |
124 |
</tr> |
141 |
</tr> |
125 |
|
142 |
|
126 |
- |
|
|