Skip to content

Commit

Permalink
fix: unset discount amount based on coupon code
Browse files Browse the repository at this point in the history
(cherry picked from commit 6518582)
  • Loading branch information
GursheenK authored and mergify[bot] committed Nov 29, 2023
1 parent d0f1dec commit 0e50e77
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 0e50e77

Please sign in to comment.