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

(-)a/admin/columns_settings.yml (+16 lines)
Lines 1432-1434 modules: Link Here
1432
              columnname: actions
1432
              columnname: actions
1433
              cannot_be_toggled: 1
1433
              cannot_be_toggled: 1
1434
              cannot_be_modified: 1
1434
              cannot_be_modified: 1
1435
1436
  pos:
1437
    pay:
1438
      invoices:
1439
        columns:
1440
            -
1441
              columnname: code
1442
            -
1443
              columnname: description
1444
            -
1445
              columnname: cost
1446
            -
1447
              columnname: actions
1448
              cannot_be_toggled: 1
1449
              cannot_be_modified: 1
1450
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/columns_settings.tt (+6 lines)
Lines 242-247 Link Here
242
                                    [% PROCESS pagelist module=modules.members modulename="members" %]
242
                                    [% PROCESS pagelist module=modules.members modulename="members" %]
243
                                </div>
243
                                </div>
244
244
245
                                <div class="panel_header"><a href="#pos">Point of sale</a></div>
246
                                <div id="pos">
247
                                    <h3>Point of sale tables</h3>
248
                                    [% PROCESS pagelist module=modules.pos modulename="pos" %]
249
                                </div>
250
245
                                <div class="panel_header"><a href="#tools">Tools</a></div>
251
                                <div class="panel_header"><a href="#tools">Tools</a></div>
246
                                <div id="tools">
252
                                <div id="tools">
247
                                    <h3>Tools tables</h3>
253
                                    <h3>Tools tables</h3>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt (-5 / +7 lines)
Lines 2-7 Link Here
2
[% USE Asset %]
2
[% USE Asset %]
3
[% USE Koha %]
3
[% USE Koha %]
4
[% USE Price %]
4
[% USE Price %]
5
[% USE TablesSettings %]
5
[% SET footerjs = 1 %]
6
[% SET footerjs = 1 %]
6
[% PROCESS 'payments.inc' %]
7
[% PROCESS 'payments.inc' %]
7
[% INCLUDE 'doc-head-open.inc' %]
8
[% INCLUDE 'doc-head-open.inc' %]
Lines 175-180 Link Here
175
[% MACRO jsinclude BLOCK %]
176
[% MACRO jsinclude BLOCK %]
176
    [% INCLUDE 'format_price.inc' %]
177
    [% INCLUDE 'format_price.inc' %]
177
    [% INCLUDE 'datatables.inc' %]
178
    [% INCLUDE 'datatables.inc' %]
179
    [% INCLUDE 'columns_settings.inc' %]
178
    [% Asset.js("lib/jquery/plugins/jquery.jeditable.mini.js") | $raw %]
180
    [% Asset.js("lib/jquery/plugins/jquery.jeditable.mini.js") | $raw %]
179
    <script>
181
    <script>
180
    function moneyFormat(textObj) {
182
    function moneyFormat(textObj) {
Lines 329-341 Link Here
329
                sale_table.DataTable().row($(this).parents('tr')).remove().draw(false);
331
                sale_table.DataTable().row($(this).parents('tr')).remove().draw(false);
330
        });
332
        });
331
333
332
        var items_table = $("#invoices").dataTable($.extend(true,{}, dataTablesDefaults, {
334
        var items_columns_settings = [% TablesSettings.GetColumns('pos', 'pay', 'invoices', 'json') | $raw %];
335
        var items_table = KohaTable("invoices", {
336
               "sPaginationType": "full",
337
               "aaSorting": [[ 0, "asc" ]],
333
               "aoColumnDefs": [
338
               "aoColumnDefs": [
334
                  { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable":false },
339
                  { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable":false },
335
               ],
340
               ],
336
               "aaSorting": [[ 0, "asc" ]],
341
        }, items_columns_settings);
337
               "paginationType": "full",
338
        }));
339
342
340
        $(".add_button").on("click", function(e) {
343
        $(".add_button").on("click", function(e) {
341
            e.preventDefault();
344
            e.preventDefault();
342
- 

Return to bug 26160