[enhance] rename warehouse account type to stock

This commit is contained in:
Saurabh
2016-06-24 13:11:29 +05:30
parent 2ee4d79609
commit 7fecb50360
12 changed files with 39 additions and 25 deletions

View File

@@ -99,7 +99,7 @@ def validate_account_for_auto_accounting_for_stock(gl_map):
if cint(frappe.db.get_single_value("Accounts Settings", "auto_accounting_for_stock")) \
and gl_map[0].voucher_type=="Journal Entry":
aii_accounts = [d[0] for d in frappe.db.sql("""select name from tabAccount
where account_type = 'Warehouse' and (warehouse != '' and warehouse is not null)""")]
where account_type = 'Stock' and (warehouse != '' and warehouse is not null)""")]
for entry in gl_map:
if entry.account in aii_accounts: