mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-17 00:25:01 +00:00
[Fix] Valuation method changing issue in the item
This commit is contained in:
@@ -451,6 +451,8 @@ class Item(WebsiteGenerator):
|
||||
"valuation_method", "has_batch_no", "is_fixed_asset")
|
||||
|
||||
vals = frappe.db.get_value("Item", self.name, to_check, as_dict=True)
|
||||
if not vals.get('valuation_method'):
|
||||
vals['valuation_method'] = frappe.db.get_single_value("Stock Settings", "valuation_method") or "FIFO"
|
||||
|
||||
if vals:
|
||||
for key in to_check:
|
||||
|
||||
Reference in New Issue
Block a user