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 |
- |
|
|