Lines 55-61
Link Here
|
55 |
|
55 |
|
56 |
[% INCLUDE 'members-toolbar.inc' %] |
56 |
[% INCLUDE 'members-toolbar.inc' %] |
57 |
<h1>Account for [% INCLUDE 'patron-title.inc' %]</h1> |
57 |
<h1>Account for [% INCLUDE 'patron-title.inc' %]</h1> |
58 |
<form action="/cgi-bin/koha/members/boraccount.pl" method="get"><input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber | html %]" /></form> |
58 |
<form action="/cgi-bin/koha/members/boraccount.pl" method="get">[% INCLUDE 'csrf-token.inc' %]<input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber | html %]" /></form> |
59 |
|
59 |
|
60 |
<!-- The manual invoice and credit buttons --> |
60 |
<!-- The manual invoice and credit buttons --> |
61 |
<div class="toptabs"> |
61 |
<div class="toptabs"> |
Lines 147-160
Link Here
|
147 |
[% END %] |
147 |
[% END %] |
148 |
<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> |
148 |
<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> |
149 |
[% IF account.is_debit && account.amountoutstanding > 0 %] |
149 |
[% IF account.is_debit && account.amountoutstanding > 0 %] |
150 |
<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-solid fa-money-bill-1"></i> Pay</a> |
150 |
<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 %]&csrf_token=[% csrf_token | html %]"><i class="fa-solid fa-money-bill-1"></i> Pay</a> |
151 |
[% END %] |
151 |
[% END %] |
152 |
[% IF account.is_credit && account.status != 'VOID' %] |
152 |
[% IF account.is_credit && account.status != 'VOID' %] |
153 |
<a href="boraccount.pl?action=void&accountlines_id=[% account.accountlines_id | uri %]&borrowernumber=[% account.borrowernumber | uri %]" class="btn btn-default btn-xs void-action"><i class="fa fa-ban"></i> Void payment</a> |
153 |
<a href="boraccount.pl?action=void&accountlines_id=[% account.accountlines_id | uri %]&borrowernumber=[% account.borrowernumber | uri %]&csrf_token=[% csrf_token | uri %]" class="btn btn-default btn-xs void-action"><i class="fa fa-ban"></i> Void payment</a> |
154 |
[% END %] |
154 |
[% END %] |
155 |
[% IF account.is_debit && account.amount == account.amountoutstanding && account.status != 'CANCELLED' && !(account.debit_type_code == 'PAYOUT') %] |
155 |
[% IF account.is_debit && account.amount == account.amountoutstanding && account.status != 'CANCELLED' && !(account.debit_type_code == 'PAYOUT') %] |
156 |
<form method="post" action="/cgi-bin/koha/members/cancel-charge.pl"> |
156 |
<form method="post" action="/cgi-bin/koha/members/cancel-charge.pl"> |
157 |
<input type="hidden" name="csrf_token" value="[% csrf_token | html %]"> |
157 |
[% INCLUDE 'csrf-token.inc' %] |
158 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]"> |
158 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]"> |
159 |
<input type="hidden" name="accountlines_id" value="[% account.accountlines_id | html %]"> |
159 |
<input type="hidden" name="accountlines_id" value="[% account.accountlines_id | html %]"> |
160 |
<button type="submit" class="btn btn-default btn-xs cancel-action"> |
160 |
<button type="submit" class="btn btn-default btn-xs cancel-action"> |
Lines 210-215
Link Here
|
210 |
<!-- Issue payout modal --> |
210 |
<!-- Issue payout modal --> |
211 |
<div class="modal" id="issuePayoutModal" tabindex="-1" role="dialog" aria-labelledby="issuePayoutLabel"> |
211 |
<div class="modal" id="issuePayoutModal" tabindex="-1" role="dialog" aria-labelledby="issuePayoutLabel"> |
212 |
<form id="payout_form" action="/cgi-bin/koha/members/boraccount.pl" method="get" enctype="multipart/form-data" class="validated"> |
212 |
<form id="payout_form" action="/cgi-bin/koha/members/boraccount.pl" method="get" enctype="multipart/form-data" class="validated"> |
|
|
213 |
[% INCLUDE 'csrf-token.inc' %] |
213 |
<input type="hidden" name="accountlines_id" value="" id="payoutline"> |
214 |
<input type="hidden" name="accountlines_id" value="" id="payoutline"> |
214 |
<input type="hidden" name="action" value="payout"> |
215 |
<input type="hidden" name="action" value="payout"> |
215 |
<input type="hidden" name="borrowernumber" value="[% account.borrowernumber | html %]"> |
216 |
<input type="hidden" name="borrowernumber" value="[% account.borrowernumber | html %]"> |
Lines 264-269
Link Here
|
264 |
<!-- Issue refund modal --> |
265 |
<!-- Issue refund modal --> |
265 |
<div class="modal" id="issueRefundModal" tabindex="-1" role="dialog" aria-labelledby="issueRefundLabel"> |
266 |
<div class="modal" id="issueRefundModal" tabindex="-1" role="dialog" aria-labelledby="issueRefundLabel"> |
266 |
<form id="refund_form" action="/cgi-bin/koha/members/boraccount.pl" method="get" enctype="multipart/form-data" class="validated"> |
267 |
<form id="refund_form" action="/cgi-bin/koha/members/boraccount.pl" method="get" enctype="multipart/form-data" class="validated"> |
|
|
268 |
[% INCLUDE 'csrf-token.inc' %] |
267 |
<input type="hidden" name="accountlines_id" value="" id="refundline"> |
269 |
<input type="hidden" name="accountlines_id" value="" id="refundline"> |
268 |
<input type="hidden" name="action" value="refund"> |
270 |
<input type="hidden" name="action" value="refund"> |
269 |
<input type="hidden" name="borrowernumber" value="[% account.borrowernumber | html %]"> |
271 |
<input type="hidden" name="borrowernumber" value="[% account.borrowernumber | html %]"> |
Lines 321-326
Link Here
|
321 |
<!-- Apply discount modal --> |
323 |
<!-- Apply discount modal --> |
322 |
<div class="modal" id="applyDiscountModal" tabindex="-1" role="dialog" aria-labelledby="applyDiscountLabel"> |
324 |
<div class="modal" id="applyDiscountModal" tabindex="-1" role="dialog" aria-labelledby="applyDiscountLabel"> |
323 |
<form id="discount_form" action="/cgi-bin/koha/members/boraccount.pl" method="get" enctype="multipart/form-data" class="validated"> |
325 |
<form id="discount_form" action="/cgi-bin/koha/members/boraccount.pl" method="get" enctype="multipart/form-data" class="validated"> |
|
|
326 |
[% INCLUDE 'csrf-token.inc' %] |
324 |
<input type="hidden" name="accountlines_id" value="" id="discountline"> |
327 |
<input type="hidden" name="accountlines_id" value="" id="discountline"> |
325 |
<input type="hidden" name="action" value="discount"> |
328 |
<input type="hidden" name="action" value="discount"> |
326 |
<input type="hidden" name="borrowernumber" value="[% account.borrowernumber | html %]"> |
329 |
<input type="hidden" name="borrowernumber" value="[% account.borrowernumber | html %]"> |