mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-17 00:25:01 +00:00
[fix] Item name, description should not be overwritten on saving of stock entry
This commit is contained in:
@@ -112,7 +112,7 @@ class StockEntry(StockController):
|
||||
|
||||
for f in ("uom", "stock_uom", "description", "item_name", "expense_account",
|
||||
"cost_center", "conversion_factor"):
|
||||
if f not in ["expense_account", "cost_center"] or not item.get(f):
|
||||
if f in ["stock_uom", "conversion_factor"] or not item.get(f):
|
||||
item.set(f, item_details.get(f))
|
||||
|
||||
if self.difference_account:
|
||||
|
||||
Reference in New Issue
Block a user