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,8 +1372,9 @@ $(function() {
// reset the invoice table
$("#btn-reset-invoice").click(function() {
$("#invoice-discount").prop('selectedIndex', 0);
$(.sc-select').nearest('.row').remove();
invoiceItems = [];
sc_array = [];
sc_array = [];
generateInvoice();
});