fixed test cases

This commit is contained in:
Rohit Waghchaure
2017-06-16 18:18:16 +05:30
parent a5f40941ae
commit 6945d0dd8a
10 changed files with 72 additions and 61 deletions

View File

@@ -39,6 +39,9 @@ def get_company_currency(company):
def set_perpetual_inventory(enable=1, company=None):
if not company:
company = get_default_company()
if frappe.flags.in_test:
company = "_Test Company"
company = frappe.get_doc("Company", company)
company.enable_perpetual_inventory = enable