Stock ledger report filter by item and brand
diff --git a/stock/report/stock_ledger/stock_ledger.py b/stock/report/stock_ledger/stock_ledger.py
index b2bc64f..94c8eed 100644
--- a/stock/report/stock_ledger/stock_ledger.py
+++ b/stock/report/stock_ledger/stock_ledger.py
@@ -62,6 +62,9 @@
def get_sle_conditions(filters):
conditions = []
+ if filters.get("item_code"):
+ conditions.append("""item_code in (select name from tabItem
+ {item_conditions})""".format(item_conditions=get_item_conditions(filters)))
if filters.get("warehouse"):
conditions.append("warehouse=%(warehouse)s")
if filters.get("voucher_no"):