From 77fe7e8521509199916ae7957011bf5d3f722e55 Mon Sep 17 00:00:00 2001 From: Kendrick Chan Date: Tue, 18 Feb 2020 10:03:43 +0800 Subject: [PATCH] Remove service charges when invoice is reset in one step form #270 --- templates/job-order/cmb.form.onestep.html.twig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/job-order/cmb.form.onestep.html.twig b/templates/job-order/cmb.form.onestep.html.twig index cc89b4d6..f411fa3e 100644 --- a/templates/job-order/cmb.form.onestep.html.twig +++ b/templates/job-order/cmb.form.onestep.html.twig @@ -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(); });