Remove service charges when invoice is reset in one step form #270

This commit is contained in:
Kendrick Chan 2020-02-18 10:03:43 +08:00
parent 39fdf318d4
commit 77fe7e8521

View file

@ -1372,6 +1372,7 @@ $(function() {
// reset the invoice table // reset the invoice table
$("#btn-reset-invoice").click(function() { $("#btn-reset-invoice").click(function() {
$("#invoice-discount").prop('selectedIndex', 0); $("#invoice-discount").prop('selectedIndex', 0);
$(.sc-select').nearest('.row').remove();
invoiceItems = []; invoiceItems = [];
sc_array = []; sc_array = [];
generateInvoice(); generateInvoice();