From cffcbcdbeed459f40096f3b9276bbf109247dd8e Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 24 Sep 2014 11:19:52 +0200 Subject: [PATCH] Bug 12984: Improvement of the funds list view - acqui home Bug 11578 improved the funds list view in the administration module. It would be great to have the same improvement on the acquisition home page. This improvement groups funds by budget and displays them with a hierarchy. Test plan: 0/ Create a budget and fund hierarchy, with active and inactive budgets. 1/ Go on the acquisition home page and verify the values are the same as before 2/ Verify the funds are correctly listed 3/ Verify the links on top of table work (expand/collapse all, show/hide inactive budgets). Signed-off-by: Paola Rossi --- .../prog/en/modules/acqui/acqui-home.tt | 150 ++++++++++++-------- 1 file changed, 88 insertions(+), 62 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt index 3a4cf90..6c3b3eb 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt @@ -1,8 +1,11 @@ [% INCLUDE 'doc-head-open.inc' %] Koha › Acquisitions - [% INCLUDE 'doc-head-close.inc' %] + [% INCLUDE 'datatables.inc' %] + + + @@ -101,28 +141,33 @@ $(document).ready(function() {

All available funds[% IF ( branchname ) %] for [% branchname %][% END %]

-

+ + - + + + - - + - - - - - + + + @@ -131,8 +176,14 @@ $(document).ready(function() { [% FOREACH loop_budge IN loop_budget %] - [% IF ( loop_budge.budget_period_active ) %] - + [% IF loop_budge.budget_parent_id %] + + [% ELSE %] + + [% END %] + + + - - [% ELSE %] - - - - - - - - - - - - [% END %] [% END %]
+ Expand all + | Collapse all + | Hide inactive budgets + | Show inactive budgets +
FundActiveBudget period descriptionFund code Fund nameActive Owner Library Amount Ordered SpentAvailTotal available
Total    Total [% total %][% total_active %] [% totordered %][% totordered_active %] [% totspent %][% totspent_active %]
[% loop_budge.budget_period_active %]Budget [% loop_budge.budget_period_description %] [id=[% loop_budge.budget_period_id %]][% UNLESS loop_budge.budget_period_active %] (inactive)[% END %] [% IF ( CAN_user_acquisition_budget_manage ) %] [% loop_budge.budget_code %] @@ -141,7 +192,6 @@ $(document).ready(function() { [% END %] [% loop_budge.budget_name %]Active [% IF ( loop_budge.budget_owner_borrowernumber ) %] [% loop_budge.budget_owner_surname %], [% loop_budge.budget_owner_firstname %] [% ELSE %] @@ -154,30 +204,6 @@ $(document).ready(function() { [% loop_budge.formatted_budget_spent %] [% loop_budge.formatted_budget_avail %]
- [% IF ( CAN_user_acquisition_budget_manage ) %] - [% loop_budge.budget_code %] - [% ELSE %] - [% loop_budge.budget_code %] - [% END %] - [% loop_budge.budget_name %]Inactive[% IF ( loop_budge.budget_owner_borrowernumber ) %] - [% loop_budge.budget_owner_surname %], [% loop_budge.budget_owner_firstname %] - [% ELSE %] -   - [% END %] - [% loop_budge.budget_branchname %][% loop_budge.formatted_budget_amount %][% loop_budge.formatted_budget_ordered %][% loop_budge.formatted_budget_spent %][% loop_budge.formatted_budget_avail %]
-- 1.7.10.4