Fixed test cases

This commit is contained in:
Rohit Waghchaure
2017-06-21 09:40:06 +05:30
parent c422874418
commit 2d9b3cd270
3 changed files with 6 additions and 2 deletions

View File

@@ -62,7 +62,7 @@ def is_perpetual_inventory_enabled(company):
frappe.local.enable_perpetual_inventory = {}
if not company in frappe.local.enable_perpetual_inventory:
frappe.local.enable_perpetual_inventory[company] = frappe.db.get_value("Company",
frappe.local.enable_perpetual_inventory[company] = frappe.db.get_value("Company",
company, "enable_perpetual_inventory") or 0
return frappe.local.enable_perpetual_inventory[company]