Lines 44-50
Link Here
|
44 |
<main> |
44 |
<main> |
45 |
|
45 |
|
46 |
[% INCLUDE 'members-toolbar.inc' %] |
46 |
[% INCLUDE 'members-toolbar.inc' %] |
47 |
<form action="/cgi-bin/koha/members/boraccount.pl" method="get"><input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber | html %]" /></form> |
47 |
<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> |
48 |
|
48 |
|
49 |
<!-- The manual invoice and credit buttons --> |
49 |
<!-- The manual invoice and credit buttons --> |
50 |
<div class="statictabs"> |
50 |
<div class="statictabs"> |
Lines 111-124
Link Here
|
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 %]&csrf_token=[% csrf_token | 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&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> |
117 |
<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> |
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"> |
121 |
<input type="hidden" name="csrf_token" value="[% csrf_token | html %]"> |
121 |
[% INCLUDE 'csrf-token.inc' %] |
122 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]"> |
122 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]"> |
123 |
<input type="hidden" name="accountlines_id" value="[% account.accountlines_id | html %]"> |
123 |
<input type="hidden" name="accountlines_id" value="[% account.accountlines_id | html %]"> |
124 |
<button type="submit" class="btn btn-default btn-xs cancel-action"> |
124 |
<button type="submit" class="btn btn-default btn-xs cancel-action"> |
Lines 173-178
Link Here
|
173 |
<!-- Issue payout modal --> |
173 |
<!-- Issue payout modal --> |
174 |
<div class="modal" id="issuePayoutModal" tabindex="-1" role="dialog" aria-labelledby="issuePayoutLabel"> |
174 |
<div class="modal" id="issuePayoutModal" tabindex="-1" role="dialog" aria-labelledby="issuePayoutLabel"> |
175 |
<form id="payout_form" action="/cgi-bin/koha/members/boraccount.pl" method="get" enctype="multipart/form-data" class="validated"> |
175 |
<form id="payout_form" action="/cgi-bin/koha/members/boraccount.pl" method="get" enctype="multipart/form-data" class="validated"> |
|
|
176 |
[% INCLUDE 'csrf-token.inc' %] |
176 |
<input type="hidden" name="accountlines_id" value="" id="payoutline"> |
177 |
<input type="hidden" name="accountlines_id" value="" id="payoutline"> |
177 |
<input type="hidden" name="action" value="payout"> |
178 |
<input type="hidden" name="action" value="payout"> |
178 |
<input type="hidden" name="borrowernumber" value="[% account.borrowernumber | html %]"> |
179 |
<input type="hidden" name="borrowernumber" value="[% account.borrowernumber | html %]"> |
Lines 227-232
Link Here
|
227 |
<!-- Issue refund modal --> |
228 |
<!-- Issue refund modal --> |
228 |
<div class="modal" id="issueRefundModal" tabindex="-1" role="dialog" aria-labelledby="issueRefundLabel"> |
229 |
<div class="modal" id="issueRefundModal" tabindex="-1" role="dialog" aria-labelledby="issueRefundLabel"> |
229 |
<form id="refund_form" action="/cgi-bin/koha/members/boraccount.pl" method="get" enctype="multipart/form-data" class="validated"> |
230 |
<form id="refund_form" action="/cgi-bin/koha/members/boraccount.pl" method="get" enctype="multipart/form-data" class="validated"> |
|
|
231 |
[% INCLUDE 'csrf-token.inc' %] |
230 |
<input type="hidden" name="accountlines_id" value="" id="refundline"> |
232 |
<input type="hidden" name="accountlines_id" value="" id="refundline"> |
231 |
<input type="hidden" name="action" value="refund"> |
233 |
<input type="hidden" name="action" value="refund"> |
232 |
<input type="hidden" name="borrowernumber" value="[% account.borrowernumber | html %]"> |
234 |
<input type="hidden" name="borrowernumber" value="[% account.borrowernumber | html %]"> |
Lines 284-289
Link Here
|
284 |
<!-- Apply discount modal --> |
286 |
<!-- Apply discount modal --> |
285 |
<div class="modal" id="applyDiscountModal" tabindex="-1" role="dialog" aria-labelledby="applyDiscountLabel"> |
287 |
<div class="modal" id="applyDiscountModal" tabindex="-1" role="dialog" aria-labelledby="applyDiscountLabel"> |
286 |
<form id="discount_form" action="/cgi-bin/koha/members/boraccount.pl" method="get" enctype="multipart/form-data" class="validated"> |
288 |
<form id="discount_form" action="/cgi-bin/koha/members/boraccount.pl" method="get" enctype="multipart/form-data" class="validated"> |
|
|
289 |
[% INCLUDE 'csrf-token.inc' %] |
287 |
<input type="hidden" name="accountlines_id" value="" id="discountline"> |
290 |
<input type="hidden" name="accountlines_id" value="" id="discountline"> |
288 |
<input type="hidden" name="action" value="discount"> |
291 |
<input type="hidden" name="action" value="discount"> |
289 |
<input type="hidden" name="borrowernumber" value="[% account.borrowernumber | html %]"> |
292 |
<input type="hidden" name="borrowernumber" value="[% account.borrowernumber | html %]"> |