Merge pull request #38250 from GursheenK/unset-discount-amount-based-on-coupon-code

fix: unset discount amount based on coupon code
This commit is contained in:
Deepesh Garg 2023-11-29 15:53:46 +05:30 committed by GitHub
commit 85f9f8d176
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);
}
};
}
}