Provision to view return entries in Sales Person-wise Transaction Summary (#14830)

This commit is contained in:
rohitwaghchaure 2018-07-08 19:25:13 +05:30 committed by Nabin Hait
parent 0b9129e519
commit 6be8bea934
2 changed files with 7 additions and 1 deletions

View File

@ -59,5 +59,11 @@ frappe.query_reports["Sales Person-wise Transaction Summary"] = {
fieldtype: "Link",
options: "Territory",
},
{
fieldname:"show_return_entries",
label: __("Show Return Entries"),
fieldtype: "Check",
default: 0,
},
]
}

View File

@ -15,7 +15,7 @@ def execute(filters=None):
data = []
for d in entries:
if d.stock_qty > 0:
if d.stock_qty > 0 or filters.get('show_return_entries', 0):
data.append([
d.name, d.customer, d.territory, d.posting_date, d.item_code,
item_details.get(d.item_code, {}).get("item_group"), item_details.get(d.item_code, {}).get("brand"),