Lines 39-44
Link Here
|
39 |
<th>Cost</th> |
39 |
<th>Cost</th> |
40 |
<th>Quantity</th> |
40 |
<th>Quantity</th> |
41 |
<th>Total</th> |
41 |
<th>Total</th> |
|
|
42 |
<th>Action</th> |
42 |
</tr> |
43 |
</tr> |
43 |
</thead> |
44 |
</thead> |
44 |
<tbody> |
45 |
<tbody> |
Lines 47-52
Link Here
|
47 |
<tr> |
48 |
<tr> |
48 |
<td colspan="3">Total payable:</td> |
49 |
<td colspan="3">Total payable:</td> |
49 |
<td></td> |
50 |
<td></td> |
|
|
51 |
<td></td> |
50 |
</tr> |
52 |
</tr> |
51 |
</tfoot> |
53 |
</tfoot> |
52 |
</table> |
54 |
</table> |
Lines 183-189
Link Here
|
183 |
invoiceTitle, |
185 |
invoiceTitle, |
184 |
invoicePrice, |
186 |
invoicePrice, |
185 |
1, |
187 |
1, |
186 |
null |
188 |
null, |
|
|
189 |
'<button class="drop"><i class="fa fa-trash"></i> Remove</button>' |
187 |
] |
190 |
] |
188 |
); |
191 |
); |
189 |
} |
192 |
} |
Lines 263-269
Link Here
|
263 |
"bSortable": false, |
266 |
"bSortable": false, |
264 |
"bSearchable": false, |
267 |
"bSearchable": false, |
265 |
}, { |
268 |
}, { |
266 |
"aTargets": [-1], |
269 |
"aTargets": [-2], |
267 |
"mRender": function ( data, type, full ) { |
270 |
"mRender": function ( data, type, full ) { |
268 |
var price = Number.parseFloat(data).toFixed(2); |
271 |
var price = Number.parseFloat(data).toFixed(2); |
269 |
return '£'+price; |
272 |
return '£'+price; |
Lines 303-308
Link Here
|
303 |
} |
306 |
} |
304 |
})); |
307 |
})); |
305 |
|
308 |
|
|
|
309 |
$("#sale").on("click", "button.drop", function(){ |
310 |
sale_table.DataTable().row($(this).parents('tr')).remove().draw(false); |
311 |
}); |
312 |
|
306 |
var items_table = $("#invoices").dataTable($.extend(true,{}, dataTablesDefaults, { |
313 |
var items_table = $("#invoices").dataTable($.extend(true,{}, dataTablesDefaults, { |
307 |
"aoColumnDefs": [ |
314 |
"aoColumnDefs": [ |
308 |
{ "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable":false }, |
315 |
{ "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable":false }, |
309 |
- |
|
|