Lines 45-51
Link Here
|
45 |
|
45 |
|
46 |
[% INCLUDE 'members-toolbar.inc' %] |
46 |
[% INCLUDE 'members-toolbar.inc' %] |
47 |
<h1>Account for [% INCLUDE 'patron-title.inc' %]</h1> |
47 |
<h1>Account for [% INCLUDE 'patron-title.inc' %]</h1> |
48 |
<form action="/cgi-bin/koha/members/boraccount.pl" method="get"><input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber | html %]" /></form> |
48 |
<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> |
49 |
|
49 |
|
50 |
<!-- The manual invoice and credit buttons --> |
50 |
<!-- The manual invoice and credit buttons --> |
51 |
<div class="statictabs"> |
51 |
<div class="statictabs"> |
Lines 112-125
Link Here
|
112 |
[% END %] |
112 |
[% END %] |
113 |
<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 |
<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> |
114 |
[% IF account.is_debit && account.amountoutstanding > 0 %] |
114 |
[% IF account.is_debit && account.amountoutstanding > 0 %] |
115 |
<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 |
<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> |
116 |
[% END %] |
116 |
[% END %] |
117 |
[% IF account.is_credit && account.status != 'VOID' %] |
117 |
[% IF account.is_credit && account.status != 'VOID' %] |
118 |
<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> |
118 |
<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> |
119 |
[% END %] |
119 |
[% END %] |
120 |
[% IF account.is_debit && account.amount == account.amountoutstanding && account.status != 'CANCELLED' && !(account.debit_type_code == 'PAYOUT') %] |
120 |
[% IF account.is_debit && account.amount == account.amountoutstanding && account.status != 'CANCELLED' && !(account.debit_type_code == 'PAYOUT') %] |
121 |
<form method="post" action="/cgi-bin/koha/members/cancel-charge.pl"> |
121 |
<form method="post" action="/cgi-bin/koha/members/cancel-charge.pl"> |
122 |
<input type="hidden" name="csrf_token" value="[% csrf_token | html %]"> |
122 |
[% INCLUDE 'csrf-token.inc' %] |
123 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]"> |
123 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]"> |
124 |
<input type="hidden" name="accountlines_id" value="[% account.accountlines_id | html %]"> |
124 |
<input type="hidden" name="accountlines_id" value="[% account.accountlines_id | html %]"> |
125 |
<button type="submit" class="btn btn-default btn-xs cancel-action"> |
125 |
<button type="submit" class="btn btn-default btn-xs cancel-action"> |
Lines 174-179
Link Here
|
174 |
<!-- Issue payout modal --> |
174 |
<!-- Issue payout modal --> |
175 |
<div class="modal" id="issuePayoutModal" tabindex="-1" role="dialog" aria-labelledby="issuePayoutLabel"> |
175 |
<div class="modal" id="issuePayoutModal" tabindex="-1" role="dialog" aria-labelledby="issuePayoutLabel"> |
176 |
<form id="payout_form" action="/cgi-bin/koha/members/boraccount.pl" method="get" enctype="multipart/form-data" class="validated"> |
176 |
<form id="payout_form" action="/cgi-bin/koha/members/boraccount.pl" method="get" enctype="multipart/form-data" class="validated"> |
|
|
177 |
[% INCLUDE 'csrf-token.inc' %] |
177 |
<input type="hidden" name="accountlines_id" value="" id="payoutline"> |
178 |
<input type="hidden" name="accountlines_id" value="" id="payoutline"> |
178 |
<input type="hidden" name="action" value="payout"> |
179 |
<input type="hidden" name="action" value="payout"> |
179 |
<input type="hidden" name="borrowernumber" value="[% account.borrowernumber | html %]"> |
180 |
<input type="hidden" name="borrowernumber" value="[% account.borrowernumber | html %]"> |
Lines 228-233
Link Here
|
228 |
<!-- Issue refund modal --> |
229 |
<!-- Issue refund modal --> |
229 |
<div class="modal" id="issueRefundModal" tabindex="-1" role="dialog" aria-labelledby="issueRefundLabel"> |
230 |
<div class="modal" id="issueRefundModal" tabindex="-1" role="dialog" aria-labelledby="issueRefundLabel"> |
230 |
<form id="refund_form" action="/cgi-bin/koha/members/boraccount.pl" method="get" enctype="multipart/form-data" class="validated"> |
231 |
<form id="refund_form" action="/cgi-bin/koha/members/boraccount.pl" method="get" enctype="multipart/form-data" class="validated"> |
|
|
232 |
[% INCLUDE 'csrf-token.inc' %] |
231 |
<input type="hidden" name="accountlines_id" value="" id="refundline"> |
233 |
<input type="hidden" name="accountlines_id" value="" id="refundline"> |
232 |
<input type="hidden" name="action" value="refund"> |
234 |
<input type="hidden" name="action" value="refund"> |
233 |
<input type="hidden" name="borrowernumber" value="[% account.borrowernumber | html %]"> |
235 |
<input type="hidden" name="borrowernumber" value="[% account.borrowernumber | html %]"> |
Lines 285-290
Link Here
|
285 |
<!-- Apply discount modal --> |
287 |
<!-- Apply discount modal --> |
286 |
<div class="modal" id="applyDiscountModal" tabindex="-1" role="dialog" aria-labelledby="applyDiscountLabel"> |
288 |
<div class="modal" id="applyDiscountModal" tabindex="-1" role="dialog" aria-labelledby="applyDiscountLabel"> |
287 |
<form id="discount_form" action="/cgi-bin/koha/members/boraccount.pl" method="get" enctype="multipart/form-data" class="validated"> |
289 |
<form id="discount_form" action="/cgi-bin/koha/members/boraccount.pl" method="get" enctype="multipart/form-data" class="validated"> |
|
|
290 |
[% INCLUDE 'csrf-token.inc' %] |
288 |
<input type="hidden" name="accountlines_id" value="" id="discountline"> |
291 |
<input type="hidden" name="accountlines_id" value="" id="discountline"> |
289 |
<input type="hidden" name="action" value="discount"> |
292 |
<input type="hidden" name="action" value="discount"> |
290 |
<input type="hidden" name="borrowernumber" value="[% account.borrowernumber | html %]"> |
293 |
<input type="hidden" name="borrowernumber" value="[% account.borrowernumber | html %]"> |