|
Lines 152-157
var MSG_PARENT_BENEATH_BUDGET = "- " + _("New budget-parent is beneath budget")
Link Here
|
| 152 |
//<![CDATA[ |
152 |
//<![CDATA[ |
| 153 |
// |
153 |
// |
| 154 |
$(document).ready(function() { |
154 |
$(document).ready(function() { |
|
|
155 |
|
| 156 |
|
| 155 |
var oTable = $("#budgeth").dataTable($.extend(true, {}, dataTablesDefaults, { |
157 |
var oTable = $("#budgeth").dataTable($.extend(true, {}, dataTablesDefaults, { |
| 156 |
"fnDrawCallback": function ( oSettings ) { |
158 |
"fnDrawCallback": function ( oSettings ) { |
| 157 |
if ( oSettings.aiDisplay.length == 0 ) |
159 |
if ( oSettings.aiDisplay.length == 0 ) |
|
Lines 179-184
var MSG_PARENT_BENEATH_BUDGET = "- " + _("New budget-parent is beneath budget")
Link Here
|
| 179 |
} |
181 |
} |
| 180 |
} |
182 |
} |
| 181 |
}, |
183 |
}, |
|
|
184 |
"footerCallback": function ( row, data, start, end, display ) { |
| 185 |
var api = this.api(), data; |
| 186 |
footer_column_sum( api, [ 4, 6, 8, 10 ], 2 ); |
| 187 |
}, |
| 182 |
"aoColumnDefs": [ |
188 |
"aoColumnDefs": [ |
| 183 |
{ "bVisible": false, "aTargets": [ 0, 1 ] }, |
189 |
{ "bVisible": false, "aTargets": [ 0, 1 ] }, |
| 184 |
{ "bSortable": false, "aTargets": ["_all"] } |
190 |
{ "bSortable": false, "aTargets": ["_all"] } |
|
Lines 213-218
var MSG_PARENT_BENEATH_BUDGET = "- " + _("New budget-parent is beneath budget")
Link Here
|
| 213 |
}); |
219 |
}); |
| 214 |
$("#hide_inactive").click(); |
220 |
$("#hide_inactive").click(); |
| 215 |
[% END %] |
221 |
[% END %] |
|
|
222 |
oTable.fnAddFilters("filter", 750); |
| 216 |
|
223 |
|
| 217 |
$("#filterbutton").click(function() { |
224 |
$("#filterbutton").click(function() { |
| 218 |
$("#fundfilters").slideToggle(0); |
225 |
$("#fundfilters").slideToggle(0); |
|
Lines 295-307
var MSG_PARENT_BENEATH_BUDGET = "- " + _("New budget-parent is beneath budget")
Link Here
|
| 295 |
<th></th> |
302 |
<th></th> |
| 296 |
<th></th> |
303 |
<th></th> |
| 297 |
<th colspan="2" style="text-align: left;" nowrap="nowrap">Period allocated [% IF ( budget_period_total ) %][% budget_period_total %][% END %] </th> |
304 |
<th colspan="2" style="text-align: left;" nowrap="nowrap">Period allocated [% IF ( budget_period_total ) %][% budget_period_total %][% END %] </th> |
| 298 |
<th nowrap="nowrap" class="data"> [% period_alloc_total %]</th> |
305 |
<th class="data"></th> |
| 299 |
<th></th> |
306 |
<th></th> |
| 300 |
<th class="data">[% ordered_total %]</th> |
307 |
<th class="data"></td> |
| 301 |
<th></th> |
308 |
<th></th> |
| 302 |
<th class="data">[% spent_total %]</th> |
309 |
<th class="data"></th> |
| 303 |
<th></th> |
310 |
<th></th> |
| 304 |
<th class="data">[% available_total %]</th> |
311 |
<th class="data"></th> |
| 305 |
<th></th> |
312 |
<th></th> |
| 306 |
</tr> |
313 |
</tr> |
| 307 |
</tfoot> |
314 |
</tfoot> |
|
Lines 320-354
var MSG_PARENT_BENEATH_BUDGET = "- " + _("New budget-parent is beneath budget")
Link Here
|
| 320 |
[% IF budget.budget_parent_id %] |
327 |
[% IF budget.budget_parent_id %] |
| 321 |
<span class="child_fund_amount">[% budget.budget_amount %]</span> |
328 |
<span class="child_fund_amount">[% budget.budget_amount %]</span> |
| 322 |
[% ELSE %] |
329 |
[% ELSE %] |
| 323 |
[% budget.budget_amount %] |
330 |
<span class="total_amount">[% budget.budget_amount %]</span> |
| 324 |
[% END %] |
331 |
[% END %] |
| 325 |
</td> |
332 |
</td> |
| 326 |
<td class="data"> |
333 |
<td class="data"> |
| 327 |
[% IF budget.budget_parent_id %] |
334 |
[% IF budget.budget_parent_id %] |
| 328 |
<span class="child_fund_amount">[% budget.budget_ordered %]</span> |
335 |
<span class="child_fund_amount">[% budget.budget_ordered %]</span> |
| 329 |
[% ELSE %] |
336 |
[% ELSE %] |
| 330 |
[% budget.budget_ordered %] |
337 |
<span class="total_amount">[% budget.budget_ordered %]</span> |
| 331 |
[% END %] |
338 |
[% END %] |
| 332 |
</td> |
339 |
</td> |
| 333 |
<td class="data"> |
340 |
<td class="data"> |
| 334 |
[% IF budget.budget_parent_id %] |
341 |
[% IF budget.budget_parent_id %] |
| 335 |
<span class="child_fund_amount">[% budget.total_ordered %]</span> |
342 |
<span class="child_fund_amount">[% budget.total_ordered %]</span> |
| 336 |
[% ELSE %] |
343 |
[% ELSE %] |
| 337 |
[% budget.total_ordered %] |
344 |
<span class="total_amount">[% budget.total_ordered %]</span> |
| 338 |
[% END %] |
345 |
[% END %] |
| 339 |
</td> |
346 |
</td> |
| 340 |
<td class="data"> |
347 |
<td class="data"> |
| 341 |
[% IF budget.budget_parent_id %] |
348 |
[% IF budget.budget_parent_id %] |
| 342 |
<span class="child_fund_amount">[% budget.budget_spent %]</span> |
349 |
<span class="child_fund_amount">[% budget.budget_spent %]</span> |
| 343 |
[% ELSE %] |
350 |
[% ELSE %] |
| 344 |
[% budget.budget_spent %] |
351 |
<span class="total_amount">[% budget.budget_spent %]</span> |
| 345 |
[% END %] |
352 |
[% END %] |
| 346 |
</td> |
353 |
</td> |
| 347 |
<td class="data"> |
354 |
<td class="data"> |
| 348 |
[% IF budget.budget_parent_id %] |
355 |
[% IF budget.budget_parent_id %] |
| 349 |
<span class="child_fund_amount">[% budget.total_spent %]</span> |
356 |
<span class="child_fund_amount">[% budget.total_spent %]</span> |
| 350 |
[% ELSE %] |
357 |
[% ELSE %] |
| 351 |
[% budget.total_spent %] |
358 |
<span class="total_amount">[% budget.total_spent %]</span> |
| 352 |
[% END %] |
359 |
[% END %] |
| 353 |
</td> |
360 |
</td> |
| 354 |
|
361 |
|
|
Lines 364-374
var MSG_PARENT_BENEATH_BUDGET = "- " + _("New budget-parent is beneath budget")
Link Here
|
| 364 |
[% END %] |
371 |
[% END %] |
| 365 |
[% ELSE %] |
372 |
[% ELSE %] |
| 366 |
[% IF (value > 0) %] |
373 |
[% IF (value > 0) %] |
| 367 |
<span style="color: green;"> |
374 |
<span class="total_amount" style="color: green;"> |
| 368 |
[% ELSIF (value < 0) %] |
375 |
[% ELSIF (value < 0) %] |
| 369 |
<span style="color: red;"> |
376 |
<span class="total_amount" style="color: red;"> |
| 370 |
[% ELSE %] |
377 |
[% ELSE %] |
| 371 |
<span> |
378 |
<span class="totalamount"> |
| 372 |
[% END %] |
379 |
[% END %] |
| 373 |
[% END %] |
380 |
[% END %] |
| 374 |
[% text %] |
381 |
[% text %] |
| 375 |
- |
|
|