Skip to content

Commit

Permalink
fix(UX): Alert on change of item rate in Stock Entry
Browse files Browse the repository at this point in the history
(cherry picked from commit 4bd9289)
  • Loading branch information
deepeshgarg007 authored and mergify[bot] committed Dec 1, 2022
1 parent dfd4314 commit b2da76f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions erpnext/stock/doctype/stock_entry/stock_entry.py
Expand Up @@ -659,6 +659,13 @@ def set_basic_rate(self, reset_outgoing_rate=True, raise_error_if_no_rate=True):

if d.allow_zero_valuation_rate:
d.basic_rate = 0.0
frappe.msgprint(
_(
"Row {0}: Item rate has been updated to zero as Allow Zero Valuation Rate is checked for item {1}"
).format(d.idx, d.item_code),
alert=1,
)

elif d.is_finished_item:
if self.purpose == "Manufacture":
d.basic_rate = self.get_basic_rate_for_manufactured_item(
Expand Down

0 comments on commit b2da76f

Please sign in to comment.