@@ -, +, @@
acqui-home
---
.../prog/en/modules/acqui/acqui-home.tt | 53 ++++++++++++++++------
1 file changed, 40 insertions(+), 13 deletions(-)
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt
@@ -13,11 +13,6 @@ dt_overwrite_html_sorting_localeCompare();
$(document).ready(function() {
- var inactive = $(".b_inactive,.bu_active");
- var active = $(".bu_inactive");
- inactive.hide();
- active.show();
-
var oTable = $("#accounts").dataTable($.extend(true, {}, dataTablesDefaults, {
"fnDrawCallback": function ( oSettings ) {
if ( oSettings.aiDisplay.length == 0 )
@@ -45,6 +40,10 @@ $(document).ready(function() {
}
}
},
+ "footerCallback": function ( row, data, start, end, display ) {
+ var api = this.api(), data;
+ footer_column_sum( api, [ 6, 7, 8, 9 ] );
+ },
"aoColumnDefs": [
{ "bVisible": false, "aTargets": [ 0, 1 ] },
{ "bSortable": false, "aTargets": ["_all"] }
@@ -168,10 +167,10 @@ $(document).ready(function() {
|
|
Total |
- [% total %][% total_active %] |
- [% totordered %][% totordered_active %] |
- [% totspent %][% totspent_active %] |
- [% totavail %][% totavail_active %] |
+ |
+ |
+ |
+ |
@@ -199,10 +198,38 @@ $(document).ready(function() {
[% 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 %] |
+
+ [% IF loop_budge.budget_parent_id %]
+ [% loop_budge.formatted_budget_amount %]
+ [% ELSE %]
+ [% loop_budge.formatted_budget_amount %]
+ [% END %]
+ |
+
+
+ [% IF loop_budge.budget_parent_id %]
+ [% loop_budge.formatted_budget_ordered %]
+ [% ELSE %]
+ [% loop_budge.formatted_budget_ordered %]
+ [% END %]
+
+ |
+
+
+ [% IF loop_budge.budget_parent_id %]
+ [% loop_budge.formatted_budget_spent %]
+ [% ELSE %]
+ [% loop_budge.formatted_budget_spent %]
+ [% END %]
+
+ |
+
+ [% IF loop_budge.budget_parent_id %]
+ [% loop_budge.formatted_budget_avail %]
+ [% ELSE %]
+ [% loop_budge.formatted_budget_avail %]
+ [% END %]
+ |
[% END %]
--