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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt (-9 / +15 lines)
Lines 153-158 var MSG_PARENT_BENEATH_BUDGET = "- " + _("New budget-parent is beneath budget") Link Here
153
//<![CDATA[
153
//<![CDATA[
154
    //
154
    //
155
    $(document).ready(function() {
155
    $(document).ready(function() {
156
157
156
        var oTable = $("#budgeth").dataTable($.extend(true, {}, dataTablesDefaults, {
158
        var oTable = $("#budgeth").dataTable($.extend(true, {}, dataTablesDefaults, {
157
            "fnDrawCallback": function ( oSettings ) {
159
            "fnDrawCallback": function ( oSettings ) {
158
                if ( oSettings.aiDisplay.length == 0 )
160
                if ( oSettings.aiDisplay.length == 0 )
Lines 180-185 var MSG_PARENT_BENEATH_BUDGET = "- " + _("New budget-parent is beneath budget") Link Here
180
                    }
182
                    }
181
                }
183
                }
182
            },
184
            },
185
            "footerCallback": function ( row, data, start, end, display ) {
186
                var api = this.api(), data;
187
                footer_column_sum( api, [ 4, 6, 8, 10 ], 2 );
188
            },
183
            "aoColumnDefs": [
189
            "aoColumnDefs": [
184
                { "bVisible": false, "aTargets": [ 0, 1 ] },
190
                { "bVisible": false, "aTargets": [ 0, 1 ] },
185
                { "bSortable": false, "aTargets": ["_all"] }
191
                { "bSortable": false, "aTargets": ["_all"] }
Lines 214-219 var MSG_PARENT_BENEATH_BUDGET = "- " + _("New budget-parent is beneath budget") Link Here
214
          });
220
          });
215
          $("#hide_inactive").click();
221
          $("#hide_inactive").click();
216
        [% END %]
222
        [% END %]
223
        oTable.fnAddFilters("filter", 750);
217
224
218
        $("#filterbutton").click(function() {
225
        $("#filterbutton").click(function() {
219
            $("#fundfilters").slideToggle(0);
226
            $("#fundfilters").slideToggle(0);
Lines 321-355 var MSG_PARENT_BENEATH_BUDGET = "- " + _("New budget-parent is beneath budget") Link Here
321
      [% IF budget.budget_parent_id %]
328
      [% IF budget.budget_parent_id %]
322
        <span class="child_fund_amount">[% budget.budget_amount | $Price %]</span>
329
        <span class="child_fund_amount">[% budget.budget_amount | $Price %]</span>
323
      [% ELSE %]
330
      [% ELSE %]
324
        [% budget.budget_amount | $Price %]
331
        <span class="total_amount">[% budget.budget_amount | $Price %]</span>
325
      [% END %]
332
      [% END %]
326
    </td>
333
    </td>
327
    <td class="data">
334
    <td class="data">
328
      [% IF budget.budget_parent_id %]
335
      [% IF budget.budget_parent_id %]
329
        <span class="child_fund_amount">[% budget.budget_ordered | $Price %]</span>
336
        <span class="child_fund_amount">[% budget.budget_ordered | $Price %]</span>
330
      [% ELSE %]
337
      [% ELSE %]
331
        [% budget.budget_ordered | $Price %]
338
        <span class="total_amount">[% budget.budget_ordered | $Price %]</span>
332
      [% END %]
339
      [% END %]
333
    </td>
340
    </td>
334
    <td class="data">
341
    <td class="data">
335
      [% IF budget.budget_parent_id %]
342
      [% IF budget.budget_parent_id %]
336
        <span class="child_fund_amount">[% budget.total_ordered | $Price %]</span>
343
        <span class="child_fund_amount">[% budget.total_ordered | $Price %]</span>
337
      [% ELSE %]
344
      [% ELSE %]
338
        [% budget.total_ordered | $Price %]
345
        <span class="total_amount">[% budget.total_ordered | $Price %]</span>
339
      [% END %]
346
      [% END %]
340
    </td>
347
    </td>
341
    <td class="data">
348
    <td class="data">
342
      [% IF budget.budget_parent_id %]
349
      [% IF budget.budget_parent_id %]
343
        <span class="child_fund_amount">[% budget.budget_spent | $Price %]</span>
350
        <span class="child_fund_amount">[% budget.budget_spent | $Price %]</span>
344
      [% ELSE %]
351
      [% ELSE %]
345
        [% budget.budget_spent | $Price %]
352
        <span class="total_amount">[% budget.budget_spent | $Price %]</span>
346
      [% END %]
353
      [% END %]
347
    </td>
354
    </td>
348
    <td class="data">
355
    <td class="data">
349
      [% IF budget.budget_parent_id %]
356
      [% IF budget.budget_parent_id %]
350
        <span class="child_fund_amount">[% budget.total_spent | $Price %]</span>
357
        <span class="child_fund_amount">[% budget.total_spent | $Price %]</span>
351
      [% ELSE %]
358
      [% ELSE %]
352
        [% budget.total_spent | $Price %]
359
        <span class="total_amount">[% budget.total_spent | $Price %]</span>
353
      [% END %]
360
      [% END %]
354
    </td>
361
    </td>
355
362
Lines 365-375 var MSG_PARENT_BENEATH_BUDGET = "- " + _("New budget-parent is beneath budget") Link Here
365
            [% END %]
372
            [% END %]
366
         [% ELSE %]
373
         [% ELSE %]
367
            [% IF (value > 0) %]
374
            [% IF (value > 0) %]
368
                <span style="color: green;">
375
                <span class="total_amount" style="color: green;">
369
            [% ELSIF (value < 0) %]
376
            [% ELSIF (value < 0) %]
370
                <span style="color: red;">
377
                <span class="total_amount" style="color: red;">
371
            [% ELSE %]
378
            [% ELSE %]
372
                <span>
379
                <span class="totalamount">
373
            [% END %]
380
            [% END %]
374
        [% END %]
381
        [% END %]
375
            [% value | $Price %]
382
            [% value | $Price %]
376
- 

Return to bug 12988