Bugzilla – Attachment 92985 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), 7.05 KB, created by
Liz Rea
on 2019-09-19 19:24:36 UTC
(
hide
)
Description:
Bug 23214: Modify account-table.inc to enable payment of guarantees fines
Filename:
MIME Type:
Creator:
Liz Rea
Created:
2019-09-19 19:24:36 UTC
Size:
7.05 KB
patch
obsolete
>From fd378e6330208e76577d044ab79900e54f539496 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 > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> > >https://bugs.koha-community.org/show_bug.cgi?id=23584 > >Signed-off-by: Liz Rea <wizzyrea@gmail.com> > >Signed-off-by: Liz Rea <wizzyrea@gmail.com> >--- > .../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 5171ebc01c..cf25163aa2 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>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> > [% PROCESS account_type_description account=a %] >@@ -154,7 +132,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_type_description -%] > [%- SWITCH account.accounttype -%] >-- >2.11.0
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