From 49ee87e06e064f8303049c836c735d32b13ce97f Mon Sep 17 00:00:00 2001 From: Josef Moravec Date: Wed, 7 Dec 2016 11:06:44 +0000 Subject: [PATCH] Bug 17734: Make possible to pay and writeoff from boraccount page and make action buttons split button MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Test plan 0) Have a patron with some fines - some paid and some unpaid 1) Apply the patch 2) git grep reverse_col should not return any appearence 3) Go to boraccount page, the last column header should have "Actions" title 4) In the rightmost column you should see apropriate combination of buttons for each row: Print - fee which was written-off and write-off line Pay + Print in dropdown - unpaid fee, for user without permission to writeoff Pay + Print and Write off in dropdown - unpaid fee, user with permission to writeoff Print + Reverse in dropdown - for payment row 5) Try all combination and use buttons and confirm they work as expected Signed-off-by: Radek Šiman --- koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt | 10 +++------- members/boraccount.pl | 3 --- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt index 66f0616..9ec674c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt @@ -66,11 +66,7 @@ $(document).ready(function() { Note Amount Outstanding - [% IF ( reverse_col ) %] - Actions - [% ELSE %] -   - [% END %] + Actions @@ -123,7 +119,7 @@ $(document).ready(function() { [% END %] [% END %] [% # If user can reverse, we need the dropdown %] - [% IF ( reverse_col && account.payment ) %] + [% IF ( account.payment ) %]