Bugzilla – Attachment 91007 Details for
Bug 23214
Add ability to pay guarantees fines
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23214: Modify account-table.inc to enable payment of guarantees fines
Bug-23214-Modify-account-tableinc-to-enable-paymen.patch (text/plain), 6.83 KB, created by
Agustín Moyano
on 2019-06-26 04:53:53 UTC
(
hide
)
Description:
Bug 23214: Modify account-table.inc to enable payment of guarantees fines
Filename:
MIME Type:
Creator:
Agustín Moyano
Created:
2019-06-26 04:53:53 UTC
Size:
6.83 KB
patch
obsolete
>From 7ed7a2857015a8b320554373d8b417fb034611d7 Mon Sep 17 00:00:00 2001 >From: Agustin Moyano <agustinmoyano@theke.io> >Date: Thu, 13 Jun 2019 02:57:52 -0300 >Subject: [PATCH] Bug 23214: Modify account-table.inc to enable payment of > guarantees fines > >This patch enables a guarantor to pay guarantees fines in OPAC > >To test: >1. Apply dependencies >2. On intranet, search for AllowStaffToSetFinesVisibilityForGuarantor preference and set to "Allow" >3. Enable some payment method >4. Find a patron with guarantor and edit >5. Change "Show fines to guarantor" select to "Yes" and save >6. Create a manual invoice for the patron (guarantee) >7. Enter OPAC with guarantor user >8. Go to "your fines" tab >SUCCESS => Guarantees fines appear, and is selectable to pay >9. Sign off >--- > .../bootstrap/en/includes/account-table.inc | 77 +++++++++++-------- > 1 file changed, 44 insertions(+), 33 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/account-table.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/account-table.inc >index 40adcf53e4..f0666765d9 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/account-table.inc >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/account-table.inc >@@ -1,7 +1,7 @@ > <h3>Fines and charges</h3> > >+<form method="post" action="opac-account-pay.pl" class="form-horizontal"> > [% IF ( ACCOUNT_LINES ) %] >- <form method="post" action="opac-account-pay.pl" class="form-horizontal"> > <table class="table table-bordered table-striped" id="finestable"> > <thead> > <tr> >@@ -79,39 +79,7 @@ > > </table> > >- [% IF ENABLE_OPAC_PAYMENTS && DISPLAY_PAYMENT_BLOCK %] >- <fieldset class="pay-online hidden"> >- <legend>Pay selected fines and charges</legend> >- <span class="help-block"><h3>Payment method</h3></span> > >- [% IF Koha.Preference('EnablePayPalOpacPayments') %] >- <div class="control-group"> >- <label class="radio"> >- <input type="radio" name="payment_method" id="payment_method-paypal" value="paypal" checked="checked"> >- <!-- PayPal Logo --><a href="https://www.paypal.com/webapps/mpp/paypal-popup" title="How PayPal Works" class="paypal"><img src="https://www.paypalobjects.com/webstatic/mktg/logo/AM_SbyPP_mc_vs_dc_ae.jpg" border="0" alt="PayPal Acceptance Mark"></a><!-- PayPal Logo --> >- </label> >- </div> >- [% END %] >- >- [% FOREACH p IN plugins %] >- <div class="control-group"> >- <label class="radio"> >- <input type="radio" name="payment_method" id="payment_method-[% p.class | html %]" value="[% p.class | html %]" checked="checked"> >- [% p.get_metadata.name | html %] >- </label> >- </div> >- [% END %] >- >- <div class="control-group"> >- <input type="hidden" id="payment-amount" name="payment_amount" value="0" /> >- <button id="submit-pay" type="submit" class="btn" disabled="disabled">Make payment</button> >- <span id="amount-to-pay-label"> >- Amount to pay: <span id="amount-to-pay">0.00</span> >- </span> >- </div> >- </fieldset> >- [% END %] >- </form> > [% ELSE %] > <h4>You have no fines or charges</h4> > [% END %] >@@ -122,6 +90,7 @@ > <table class="table table-bordered table-striped" id="finestable-[% r.id | html %]"> > <thead> > <tr> >+ [% IF ENABLE_OPAC_PAYMENTS %]<th> </th>[% END %] > <th class="title-string">Date</th> > <th>Description</th> > <th>Fine amount</th> >@@ -134,6 +103,15 @@ > [% FOREACH a IN r.accountlines %] > [% SET account_sum = account_sum + a.amountoutstanding %] > <tr> >+ [% IF ENABLE_OPAC_PAYMENTS %] >+ <td> >+ [% IF a.amountoutstanding > 0 %] >+ [% SET DISPLAY_PAYMENT_BLOCK = 1 %] >+ <input class="checkbox-pay pay-online hidden" name="accountline" type="checkbox" id="checkbox-pay-[% a.accountlines_id | html %]" value="[% a.accountlines_id | html %]"> >+ <input type="hidden" id="amount-[% a.accountlines_id | html %]" value="[% a.amountoutstanding | html %]" /> >+ [% END %] >+ </td> >+ [% END %] > <td><span title="[% a.date | html %]">[% a.date | $KohaDates %]</span></td> > <td> > [% SWITCH a.accounttype %] >@@ -176,7 +154,40 @@ > </tr> > </tfoot> > </table> >+ [% IF ENABLE_OPAC_PAYMENTS && DISPLAY_PAYMENT_BLOCK %] >+ <fieldset class="pay-online hidden"> >+ <legend>Pay selected fines and charges</legend> >+ <span class="help-block"><h3>Payment method</h3></span> >+ >+ [% IF Koha.Preference('EnablePayPalOpacPayments') %] >+ <div class="control-group"> >+ <label class="radio"> >+ <input type="radio" name="payment_method" id="payment_method-paypal" value="paypal" checked="checked"> >+ <!-- PayPal Logo --><a href="https://www.paypal.com/webapps/mpp/paypal-popup" title="How PayPal Works" class="paypal"><img src="https://www.paypalobjects.com/webstatic/mktg/logo/AM_SbyPP_mc_vs_dc_ae.jpg" border="0" alt="PayPal Acceptance Mark"></a><!-- PayPal Logo --> >+ </label> >+ </div> >+ [% END %] >+ >+ [% FOREACH p IN plugins %] >+ <div class="control-group"> >+ <label class="radio"> >+ <input type="radio" name="payment_method" id="payment_method-[% p.class | html %]" value="[% p.class | html %]" checked="checked"> >+ [% p.get_metadata.name | html %] >+ </label> >+ </div> >+ [% END %] >+ >+ <div class="control-group"> >+ <input type="hidden" id="payment-amount" name="payment_amount" value="0" /> >+ <button id="submit-pay" type="submit" class="btn" disabled="disabled">Make payment</button> >+ <span id="amount-to-pay-label"> >+ Amount to pay: <span id="amount-to-pay">0.00</span> >+ </span> >+ </div> >+ </fieldset> >+ [% END %] > [% END %] >+</form> > > [%- BLOCK account_status_description -%] > [%- SWITCH account.status -%] >-- >2.17.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 23214
:
91007
|
92844
|
92862
|
92985
|
93139