Skip to content

Commit

Permalink
Merge pull request #38423 from frappe/mergify/bp/version-15-hotfix/pr…
Browse files Browse the repository at this point in the history
…-38250

fix: unset discount amount based on coupon code (#38250)
  • Loading branch information
deepeshgarg007 authored Nov 29, 2023
2 parents d0f1dec + 0e50e77 commit f1456d0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions erpnext/public/js/utils/sales_common.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,11 @@ erpnext.sales_common = {
}
}
}

coupon_code() {
this.frm.set_value("discount_amount", 0);
this.frm.set_value("additional_discount_percentage", 0);
}
};
}
}
Expand Down

0 comments on commit f1456d0

Please sign in to comment.