[Fix] Valuation method changing issue in the item
This commit is contained in:
parent
8200485baa
commit
2f09dc0e62
@ -451,6 +451,8 @@ class Item(WebsiteGenerator):
|
|||||||
"valuation_method", "has_batch_no", "is_fixed_asset")
|
"valuation_method", "has_batch_no", "is_fixed_asset")
|
||||||
|
|
||||||
vals = frappe.db.get_value("Item", self.name, to_check, as_dict=True)
|
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:
|
if vals:
|
||||||
for key in to_check:
|
for key in to_check:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user