From 87e8dd0d63068b93c713c4636e97cc3edda411fd Mon Sep 17 00:00:00 2001 From: Gursheen Anand Date: Tue, 19 Dec 2023 15:56:59 +0530 Subject: [PATCH] fix: unset discount amount from coupon discounts --- erpnext/selling/sales_common.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/erpnext/selling/sales_common.js b/erpnext/selling/sales_common.js index 80a6b7712fc..3470aee8d8c 100644 --- a/erpnext/selling/sales_common.js +++ b/erpnext/selling/sales_common.js @@ -428,6 +428,11 @@ erpnext.selling.SellingController = class SellingController extends erpnext.Tran }) } } + + coupon_code() { + this.frm.set_value("discount_amount", 0); + this.frm.set_value("additional_discount_percentage", 0); + } }; frappe.ui.form.on(cur_frm.doctype,"project", function(frm) {