fix(UX): Alert on change of item rate in Stock Entry
This commit is contained in:
parent
bfd7a97ea9
commit
4bd9289d7d
@ -659,6 +659,13 @@ class StockEntry(StockController):
|
|||||||
|
|
||||||
if d.allow_zero_valuation_rate:
|
if d.allow_zero_valuation_rate:
|
||||||
d.basic_rate = 0.0
|
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:
|
elif d.is_finished_item:
|
||||||
if self.purpose == "Manufacture":
|
if self.purpose == "Manufacture":
|
||||||
d.basic_rate = self.get_basic_rate_for_manufactured_item(
|
d.basic_rate = self.get_basic_rate_for_manufactured_item(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user