[fix] [minor] perpetual inventory related

This commit is contained in:
Nabin Hait 2013-10-22 12:57:19 +05:30
parent 49f9e284ff
commit cf8ae7c3d9

View File

@ -91,9 +91,6 @@ class StockController(AccountsController):
return stock_ledger
def get_warehouse_account(self):
for d in webnotes.conn.sql("select name from tabWarehouse"):
webnotes.bean("Warehouse", d[0]).save()
warehouse_account = dict(webnotes.conn.sql("""select master_name, name from tabAccount
where account_type = 'Warehouse' and ifnull(master_name, '') != ''"""))
return warehouse_account