[fixes] check group condition
diff --git a/erpnext/stock/stock_balance.py b/erpnext/stock/stock_balance.py
index 61f799b..22fa12a 100644
--- a/erpnext/stock/stock_balance.py
+++ b/erpnext/stock/stock_balance.py
@@ -231,7 +231,8 @@
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