fix: correct doctype in item_wise_purchase register

This commit is contained in:
ljain112
2025-04-11 15:06:03 +05:30
parent 511a01c26c
commit b8b8dce733

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