fix: unset discount amount based on coupon code

(cherry picked from commit 6518582ed3be49dd3bc6a62745dae3e6faed2658)
This commit is contained in:
Gursheen Anand 2023-11-21 15:14:55 +05:30 committed by Mergify
parent d0f1dec573
commit 0e50e77d8e

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);
}
};
}
}