Skip to content

Commit

Permalink
add item group filter added in item-wise purchase register
Browse files Browse the repository at this point in the history
  • Loading branch information
Nandhinidevi123 committed Sep 4, 2023
1 parent f7b50f2 commit 03bbcc9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ frappe.query_reports["Item-wise Purchase Register"] = {
"fieldtype": "Link",
"options": "Item",
},
{
"fieldname": "item_group",
"label": __("Item Group"),
"fieldtype": "Link",
"options": "Item Group",
},
{
"fieldname":"supplier",
"label": __("Supplier"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,8 @@ def get_conditions(filters):
):
if filters.get(opts[0]):
conditions += opts[1]
if filters.get("item_group"):
conditions += """and ifnull(`tabPurchase Invoice Item`.item_group, '') = %(item_group)s"""

if not filters.get("group_by"):
conditions += (
Expand Down

0 comments on commit 03bbcc9

Please sign in to comment.