Merge pull request #38423 from frappe/mergify/bp/version-15-hotfix/pr-38250

fix: unset discount amount based on coupon code (#38250)
This commit is contained in:
Deepesh Garg 2023-11-29 18:21:30 +05:30 committed by GitHub
commit f1456d072c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -369,6 +369,11 @@ erpnext.sales_common = {
}
}
}
coupon_code() {
this.frm.set_value("discount_amount", 0);
this.frm.set_value("additional_discount_percentage", 0);
}
};
}
}