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

@@ -21,7 +21,7 @@ class StockController(AccountsController):
if self.docstatus == 2:
delete_gl_entries(voucher_type=self.doctype, voucher_no=self.name)
if cint(self.get_company_default("enable_perpetual_inventory")):
if cint(frappe.db.get_value('Company', self.company, 'enable_perpetual_inventory')):
warehouse_account = get_warehouse_account_map()
if self.docstatus==1: