Provision to view return entries in Sales Person-wise Transaction Summary (#14830)
This commit is contained in:
parent
0b9129e519
commit
6be8bea934
@ -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,
|
||||
},
|
||||
]
|
||||
}
|
@ -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"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user