View | Details | Raw Unified | Return to bug 12989
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt (-14 / +40 lines)
Lines 14-24 dt_overwrite_html_sorting_localeCompare(); Link Here
14
14
15
$(document).ready(function() {
15
$(document).ready(function() {
16
16
17
    var inactive = $(".b_inactive,.bu_active");
18
    var active = $(".bu_inactive");
19
    inactive.hide();
20
    active.show();
21
22
    var oTable = $("#accounts").dataTable($.extend(true, {}, dataTablesDefaults, {
17
    var oTable = $("#accounts").dataTable($.extend(true, {}, dataTablesDefaults, {
23
        "fnDrawCallback": function ( oSettings ) {
18
        "fnDrawCallback": function ( oSettings ) {
24
            if ( oSettings.aiDisplay.length == 0 )
19
            if ( oSettings.aiDisplay.length == 0 )
Lines 46-51 $(document).ready(function() { Link Here
46
                }
41
                }
47
            }
42
            }
48
        },
43
        },
44
        "footerCallback": function ( row, data, start, end, display ) {
45
            var api = this.api(), data;
46
            footer_column_sum( api, [ 6, 7, 8, 9 ] );
47
        },
49
        "aoColumnDefs": [
48
        "aoColumnDefs": [
50
            { "bVisible": false, "aTargets": [ 0, 1 ] },
49
            { "bVisible": false, "aTargets": [ 0, 1 ] },
51
            { "bSortable": false, "aTargets": ["_all"] }
50
            { "bSortable": false, "aTargets": ["_all"] }
Lines 169-178 $(document).ready(function() { Link Here
169
            <th></th>
168
            <th></th>
170
            <th></th>
169
            <th></th>
171
            <th colspan="4">Total</th>
170
            <th colspan="4">Total</th>
172
            <th class="data"><span class="bu_active">[% total %]</span><span class="bu_inactive" >[% total_active | $Price %]</span></th>
171
            <th class="data"></th>
173
            <th class="data"><span class="bu_active">[% totordered %]</span><span class="bu_inactive" >[% totordered_active | $Price %]</span></th>
172
            <th class="data"></th>
174
            <th class="data"><span class="bu_active">[% totspent %]</span><span class="bu_inactive" >[% totspent_active | $Price %]</span></th>
173
            <th class="data"></th>
175
            <th class="data"><span class="bu_active">[% totavail %]</span><span class="bu_inactive" >[% totavail_active | $Price %]</span></th>
174
            <th class="data"></th>
176
        </tr>
175
        </tr>
177
        </tfoot>
176
        </tfoot>
178
        <tbody>
177
        <tbody>
Lines 200-209 $(document).ready(function() { Link Here
200
                    [% END %]
199
                    [% END %]
201
                </td>
200
                </td>
202
                <td>[% loop_budge.budget_branchname %]</td>
201
                <td>[% loop_budge.budget_branchname %]</td>
203
                <td class="data"><span title="[% loop_budge.budget_amount %]">[% loop_budge.budget_amount | $Price %]</span></td>
202
                <td class="data">
204
                <td class="data"><span title="[% loop_budge.budget_ordered %]"><a href="ordered.pl?fund=[% loop_budge.budget_id %]&amp;fund_code=[% loop_budge.budget_code %]">[% loop_budge.budget_ordered | $Price %]</a></span></td>
203
                    [% IF loop_budge.budget_parent_id %]
205
                <td class="data"><span title="[% loop_budge.budget_spent %]"><a href="spent.pl?fund=[% loop_budge.budget_id %]&amp;fund_code=[% loop_budge.budget_code %]">[% loop_budge.budget_spent | $Price %]</span></a></td>
204
                        [% loop_budge.budget_amount | $Price %]
206
                <td class="data"><span title="[% loop_budge.budget_avail %]">[% loop_budge.budget_avail | $Price %]</td>
205
                    [% ELSE %]
206
                        <span class="total_amount">[% loop_budge.budget_amount | $Price %]</span>
207
                    [% END %]
208
                </td>
209
                <td class="data">
210
                    <a href="ordered.pl?fund=[% loop_budge.budget_id %]&amp;fund_code=[% loop_budge.budget_code %]">
211
                    [% IF loop_budge.budget_parent_id %]
212
                        [% loop_budge.budget_ordered | $Price %]
213
                    [% ELSE %]
214
                        <span class="total_amount">[% loop_budge.budget_ordered | $Price %]</span>
215
                    [% END %]
216
                    </a>
217
                </td>
218
                <td class="data">
219
                    <a href="spent.pl?fund=[% loop_budge.budget_id %]&amp;fund_code=[% loop_budge.budget_code %]">
220
                    [% IF loop_budge.budget_parent_id %]
221
                        [% loop_budge.budget_spent | $Price %]
222
                    [% ELSE %]
223
                        <span class="total_amount">[% loop_budge.budget_spent | $Price %]</span>
224
                    [% END %]
225
                    </a>
226
                </td>
227
                <td class="data">
228
                    [% IF loop_budge.budget_parent_id %]
229
                        [% loop_budge.budget_avail | $Price %]
230
                    [% ELSE %]
231
                        <span class="total_amount">[% loop_budge.budget_avail | $Price %]</span>
232
                    [% END %]
233
                </td>
207
            </tr>
234
            </tr>
208
        [% END %]
235
        [% END %]
209
        </tbody>
236
        </tbody>
210
- 

Return to bug 12989