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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt (-4 / +10 lines)
Lines 321-326 Link Here
321
    [% Asset.js("lib/jquery/plugins/rowGroup/dataTables.rowGroup.min.js") | $raw %]
321
    [% Asset.js("lib/jquery/plugins/rowGroup/dataTables.rowGroup.min.js") | $raw %]
322
    [% Asset.js("js/cashup_modal.js") | $raw %]
322
    [% Asset.js("js/cashup_modal.js") | $raw %]
323
    [% INCLUDE 'calendar.inc' %]
323
    [% INCLUDE 'calendar.inc' %]
324
    [% INCLUDE 'js-date-format.inc' %]
324
    <script>
325
    <script>
325
        var sales_table = $("#sales").dataTable($.extend(true, {}, dataTablesDefaults, {
326
        var sales_table = $("#sales").dataTable($.extend(true, {}, dataTablesDefaults, {
326
            orderFixed: [ 0, 'asc'],
327
            orderFixed: [ 0, 'asc'],
Lines 421-438 Link Here
421
                {
422
                {
422
                    "data": "timestamp",
423
                    "data": "timestamp",
423
                    "searchable": true,
424
                    "searchable": true,
424
                    "orderable": true
425
                    "orderable": true,
426
                    "render": function(data, type, row, meta) {
427
                        return $datetime(row.timestamp);
428
                    }
425
                },
429
                },
426
                {
430
                {
427
                    "data": "amount",
431
                    "data": "amount",
428
                    "searchable": true,
432
                    "searchable": true,
429
                    "orderable": true
433
                    "orderable": true,
434
                    "render": function(data, type, row, meta) {
435
                        var amt = row.amount * -1;
436
                        return (amt).format_price();
437
                    }
430
                },
438
                },
431
                {
439
                {
432
                    "data": function( row, type, val, meta ) {
440
                    "data": function( row, type, val, meta ) {
433
                        var result = '<a class="btn btn-default btn-xs" role="button" data-toggle="modal" data-cashup="'+encodeURIComponent(row.cashup_id)+'" data-register="[% register.description | html %]" href="#cashupSummaryModal"><i class="fa fa-pencil" aria-hidden="true"></i> '+_("Summary")+'</a>\n';
441
                        var result = '<a class="btn btn-default btn-xs" role="button" data-toggle="modal" data-cashup="'+encodeURIComponent(row.cashup_id)+'" data-register="[% register.description | html %]" href="#cashupSummaryModal"><i class="fa fa-pencil" aria-hidden="true"></i> '+_("Summary")+'</a>\n';
434
                        return result;
442
                        return result;
435
436
                    },
443
                    },
437
                    "searchable": false,
444
                    "searchable": false,
438
                    "orderable": false
445
                    "orderable": false
439
- 

Return to bug 26273