commit | 6518582ed3be49dd3bc6a62745dae3e6faed2658 | [log] [tgz] |
---|---|---|
author | Gursheen Anand <gursheen@frappe.io> | Tue Nov 21 15:14:55 2023 +0530 |
committer | Gursheen Anand <gursheen@frappe.io> | Tue Nov 21 15:14:55 2023 +0530 |
tree | d42aa644147940aeef2b7bb6064c98916e9fe411 | |
parent | 5c308a4f9aa1a27cbd216addbe495b9bf69735b1 [diff] |
fix: unset discount amount based on coupon code
diff --git a/erpnext/public/js/utils/sales_common.js b/erpnext/public/js/utils/sales_common.js index 1d6daa5..5514963 100644 --- a/erpnext/public/js/utils/sales_common.js +++ b/erpnext/public/js/utils/sales_common.js
@@ -369,6 +369,11 @@ } } } + + coupon_code() { + this.frm.set_value("discount_amount", 0); + this.frm.set_value("additional_discount_percentage", 0); + } }; } }