[Fix] Valuation method changing issue in the item

This commit is contained in:
Rohit Waghchaure 2017-02-10 12:44:04 +05:30
parent 8200485baa
commit 2f09dc0e62

View File

@ -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: