From 473df378683f4eb6ab2e699b5ab89bf94da82799 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 Signed-off-by: Tomas Cohen Arazi Signed-off-by: Liz Rea Signed-off-by: Martin Renvoize --- .../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 @@

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 %] [% PROCESS account_type_description account=a %] @@ -154,7 +132,40 @@
+ [% IF ENABLE_OPAC_PAYMENTS && DISPLAY_PAYMENT_BLOCK %] + + [% END %] [% END %] + [%- BLOCK account_type_description -%] [%- SWITCH account.accounttype -%] -- 2.20.1