[fixes] check group condition

This commit is contained in:
Saurabh
2016-06-25 14:18:28 +05:30
parent 7fecb50360
commit 78333c7e07
4 changed files with 5 additions and 4 deletions

View File

@@ -231,7 +231,8 @@ 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, '') = 'Stock' and (warehouse is not null and warehouse != '') """)
where ifnull(account_type, '') = 'Stock' and (warehouse is not null and warehouse != '')
and is_group=0""")
vouchers = frappe.db.sql("""select distinct voucher_type, voucher_no
from `tabStock Ledger Entry` sle