fix: correct doctype in item_wise_purchase register

(cherry picked from commit b8b8dce733)
This commit is contained in:
ljain112
2025-04-11 15:06:03 +05:30
committed by Mergify
parent 34d3f58149
commit 0e1045e855

View File

@@ -369,7 +369,7 @@ def get_items(filters, additional_table_columns):
from frappe.desk.reportview import build_match_conditions
query, params = query.walk()
match_conditions = build_match_conditions("Sales Invoice")
match_conditions = build_match_conditions(doctype)
if match_conditions:
query += " and " + match_conditions