Fix bug in one step form #270

This commit is contained in:
Kendrick Chan 2020-02-18 10:06:44 +08:00
parent 8e73c16b74
commit e48e86340a

View file

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