View | Details | Raw Unified | Return to bug 28346
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt (-6 / +5 lines)
Lines 105-120 Link Here
105
      [% IF account.amountoutstanding <= 0 %]<td class="credit" style="text-align: right;">[% ELSE %]<td class="debit" style="text-align: right;">[% END %][% account.amountoutstanding | $Price %]</td>
105
      [% IF account.amountoutstanding <= 0 %]<td class="credit" style="text-align: right;">[% ELSE %]<td class="debit" style="text-align: right;">[% END %][% account.amountoutstanding | $Price %]</td>
106
      <td class="actions">
106
      <td class="actions">
107
        [% IF ( account.is_credit ) %]
107
        [% IF ( account.is_credit ) %]
108
          <a target="_blank" href="printfeercpt.pl?action=print&amp;accountlines_id=[% account.accountlines_id | uri %]" class="btn btn-default btn-xs receipt-print"><i class="fa fa-print"></i> Print</a>
108
          <a target="_blank" href="printfeercpt.pl?action=print&amp;accountlines_id=[% account.accountlines_id | uri %]" class="btn btn-default btn-xs receipt-print-action"><i class="fa fa-print"></i> Print</a>
109
        [% ELSE %]
109
        [% ELSE %]
110
          <a target="_blank" href="printinvoice.pl?action=print&amp;accountlines_id=[% account.accountlines_id | uri %]" class="btn btn-default btn-xs invoice-print"><i class="fa fa-print"></i> Print</a>
110
          <a target="_blank" href="printinvoice.pl?action=print&amp;accountlines_id=[% account.accountlines_id | uri %]" class="btn btn-default btn-xs invoice-print-action"><i class="fa fa-print"></i> Print</a>
111
        [% END %]
111
        [% END %]
112
        <a href="accountline-details.pl?accountlines_id=[% account.accountlines_id | uri %]" class="btn btn-default btn-xs details-action"><i class="fa fa-list"></i> Details</a>
112
        <a href="accountline-details.pl?accountlines_id=[% account.accountlines_id | uri %]" class="btn btn-default btn-xs details-action"><i class="fa fa-list"></i> Details</a>
113
        [% IF account.is_debit && account.amountoutstanding > 0 %]
113
        [% IF account.is_debit && account.amountoutstanding > 0 %]
114
            <a class="btn btn-default btn-xs pay-action" href="/cgi-bin/koha/members/paycollect.pl?borrowernumber=[% account.borrowernumber | html %]&pay_individual=1&debit_type_code=[% account.debit_type_code | html %]&amount=[% account.amount | html %]&amountoutstanding=[% account.amountoutstanding | html %]&description=[% account.description | html %]&itemnumber=[% account.itemnumber | html %]&accountlines_id=[% account.accountlines_id | html %]"><i class="fa fa-money"></i> Pay</a>
114
            <a class="btn btn-default btn-xs pay-action" href="/cgi-bin/koha/members/paycollect.pl?borrowernumber=[% account.borrowernumber | html %]&pay_individual=1&debit_type_code=[% account.debit_type_code | html %]&amount=[% account.amount | html %]&amountoutstanding=[% account.amountoutstanding | html %]&description=[% account.description | html %]&itemnumber=[% account.itemnumber | html %]&accountlines_id=[% account.accountlines_id | html %]"><i class="fa fa-money"></i> Pay</a>
115
        [% END %]
115
        [% END %]
116
        [% IF account.is_credit && account.status != 'VOID' %]
116
        [% IF account.is_credit && account.status != 'VOID' %]
117
          <a href="boraccount.pl?action=void&amp;accountlines_id=[% account.accountlines_id | uri %]&amp;borrowernumber=[% account.borrowernumber | uri %]" class="btn btn-default btn-xs void"><i class="fa fa-ban"></i> Void payment</a>
117
          <a href="boraccount.pl?action=void&amp;accountlines_id=[% account.accountlines_id | uri %]&amp;borrowernumber=[% account.borrowernumber | uri %]" class="btn btn-default btn-xs void-action"><i class="fa fa-ban"></i> Void payment</a>
118
        [% END %]
118
        [% END %]
119
        [% IF account.is_debit && account.amount == account.amountoutstanding && account.status != 'CANCELLED' && !(account.debit_type_code == 'PAYOUT') %]
119
        [% IF account.is_debit && account.amount == account.amountoutstanding && account.status != 'CANCELLED' && !(account.debit_type_code == 'PAYOUT') %]
120
          <form method="post" action="/cgi-bin/koha/members/cancel-charge.pl">
120
          <form method="post" action="/cgi-bin/koha/members/cancel-charge.pl">
Lines 147-153 Link Here
147
        <td class="credit" style="text-align: right;">[% total | $Price %]</td>
147
        <td class="credit" style="text-align: right;">[% total | $Price %]</td>
148
        <td>
148
        <td>
149
          [% IF CAN_user_updatecharges_payout %]
149
          [% IF CAN_user_updatecharges_payout %]
150
          <button type="button" data-toggle="modal" data-target="#issuePayoutModal" data-amount="[% total | $Price %]" class="btn btn-default btn-xs payout-amount"><i class="fa fa-money"></i> Payout amount</button>
150
          <button type="button" data-toggle="modal" data-target="#issuePayoutModal" data-amount="[% total | $Price %]" class="btn btn-default btn-xs payout-amount-action"><i class="fa fa-money"></i> Payout amount</button>
151
        [% END %]
151
        [% END %]
152
        </td>
152
        </td>
153
    [% ELSE %]
153
    [% ELSE %]
Lines 353-359 Link Here
353
                $(this).toggleClass('filtered');
353
                $(this).toggleClass('filtered');
354
            });
354
            });
355
355
356
            $(".void").on("click",function(e){
356
            $(".void-action").on("click",function(e){
357
                if( confirm( _("Are you sure you want to void this credit?") ) ) {
357
                if( confirm( _("Are you sure you want to void this credit?") ) ) {
358
                    return true;
358
                    return true;
359
                } else {
359
                } else {
360
- 

Return to bug 28346