From e48e86340a7dce7a701c58ebf0b4f4bb26735861 Mon Sep 17 00:00:00 2001 From: Kendrick Chan Date: Tue, 18 Feb 2020 10:06:44 +0800 Subject: [PATCH] Fix bug in one step form #270 --- templates/job-order/cmb.form.onestep.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();