[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

@@ -231,7 +231,7 @@ def reset_serial_no_status_and_warehouse(serial_nos=None):
def repost_all_stock_vouchers():
warehouses_with_account = frappe.db.sql_list("""select master_name from tabAccount
where ifnull(account_type, '') = 'Warehouse'""")
where ifnull(account_type, '') = 'Stock' and (warehouse is not null and warehouse != '') """)
vouchers = frappe.db.sql("""select distinct voucher_type, voucher_no
from `tabStock Ledger Entry` sle