From 7ed7a2857015a8b320554373d8b417fb034611d7 Mon Sep 17 00:00:00 2001 From: Agustin Moyano 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 @@

Fines and charges

+
[% IF ( ACCOUNT_LINES ) %] - @@ -79,39 +79,7 @@
- [% IF ENABLE_OPAC_PAYMENTS && DISPLAY_PAYMENT_BLOCK %] - - [% END %] -
[% ELSE %]

You have no fines or charges

[% END %] @@ -122,6 +90,7 @@ + [% IF ENABLE_OPAC_PAYMENTS %][% END %] @@ -134,6 +103,15 @@ [% FOREACH a IN r.accountlines %] [% SET account_sum = account_sum + a.amountoutstanding %] + [% IF ENABLE_OPAC_PAYMENTS %] + + [% END %]
 Date Description Fine amount
+ [% IF a.amountoutstanding > 0 %] + [% SET DISPLAY_PAYMENT_BLOCK = 1 %] + + + [% END %] + [% a.date | $KohaDates %] [% SWITCH a.accounttype %] @@ -176,7 +154,40 @@
+ [% IF ENABLE_OPAC_PAYMENTS && DISPLAY_PAYMENT_BLOCK %] + + [% END %] [% END %] + [%- BLOCK account_status_description -%] [%- SWITCH account.status -%] -- 2.17.1