@@ -, +, @@
---
koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt
@@ -39,6 +39,7 @@
Cost |
Quantity |
Total |
+ Action |
@@ -47,6 +48,7 @@
Total payable: |
|
+ |
@@ -183,7 +185,8 @@
invoiceTitle,
invoicePrice,
1,
- null
+ null,
+ ''
]
);
}
@@ -263,7 +266,7 @@
"bSortable": false,
"bSearchable": false,
}, {
- "aTargets": [-1],
+ "aTargets": [-2],
"mRender": function ( data, type, full ) {
var price = Number.parseFloat(data).toFixed(2);
return '£'+price;
@@ -303,6 +306,10 @@
}
}));
+ $("#sale").on("click", "button.drop", function(){
+ sale_table.DataTable().row($(this).parents('tr')).remove().draw(false);
+ });
+
var items_table = $("#invoices").dataTable($.extend(true,{}, dataTablesDefaults, {
"aoColumnDefs": [
{ "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable":false },
--