From 4a61e9c1689b8f9825b00368630d631558fb9bf7 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 24 Sep 2014 17:16:48 +0200 Subject: [PATCH] Bug 12988: Update table footer with the visible rows - budgets On the budget list view, the total was not updated. With this patch, the footer (totals) will be updated on filtering rows. Test plan: To test with both CurrencyFormat pref values. 1/ Go on the budget list view 2/ Verify the totals are correct. 3/ Filter the table using the filter input and verify the totals are updated with the rows shown 4/ Hide/Show inactive budgets and verify the totals are still corrects. Signed-off-by: Paola Rossi Signed-off-by: Katrin Fischer Works as described. Signed-off-by: Tomas Cohen Arazi --- .../prog/en/modules/admin/aqbudgets.tt | 23 ++++++++++++------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt index b97d0d8b7d..5da1b50bec 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt @@ -153,6 +153,8 @@ var MSG_PARENT_BENEATH_BUDGET = "- " + _("New budget-parent is beneath budget") //[% budget.budget_amount | $Price %] [% ELSE %] - [% budget.budget_amount | $Price %] + [% budget.budget_amount | $Price %] [% END %] [% IF budget.budget_parent_id %] [% budget.budget_ordered | $Price %] [% ELSE %] - [% budget.budget_ordered | $Price %] + [% budget.budget_ordered | $Price %] [% END %] [% IF budget.budget_parent_id %] [% budget.total_ordered | $Price %] [% ELSE %] - [% budget.total_ordered | $Price %] + [% budget.total_ordered | $Price %] [% END %] [% IF budget.budget_parent_id %] [% budget.budget_spent | $Price %] [% ELSE %] - [% budget.budget_spent | $Price %] + [% budget.budget_spent | $Price %] [% END %] [% IF budget.budget_parent_id %] [% budget.total_spent | $Price %] [% ELSE %] - [% budget.total_spent | $Price %] + [% budget.total_spent | $Price %] [% END %] @@ -365,11 +372,11 @@ var MSG_PARENT_BENEATH_BUDGET = "- " + _("New budget-parent is beneath budget") [% END %] [% ELSE %] [% IF (value > 0) %] - + [% ELSIF (value < 0) %] - + [% ELSE %] - + [% END %] [% END %] [% value | $Price %] -- 2.39.5