diff --git a/templates/job-order/cmb.form.onestep.html.twig b/templates/job-order/cmb.form.onestep.html.twig index 33c3796e..d59172dd 100644 --- a/templates/job-order/cmb.form.onestep.html.twig +++ b/templates/job-order/cmb.form.onestep.html.twig @@ -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();