Skip to content

Commit

Permalink
Merge pull request #38250 from GursheenK/unset-discount-amount-based-…
Browse files Browse the repository at this point in the history
…on-coupon-code

fix: unset discount amount based on coupon code
  • Loading branch information
deepeshgarg007 authored Nov 29, 2023
2 parents 258148b + 6518582 commit 85f9f8d
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 85f9f8d

Please sign in to comment.