fix: Company filter fix
This commit is contained in:
parent
1ca2d47d35
commit
d2d84e3c9d
@ -33,7 +33,8 @@ frappe.query_reports["Sales Person-wise Transaction Summary"] = {
|
|||||||
label: __("Company"),
|
label: __("Company"),
|
||||||
fieldtype: "Link",
|
fieldtype: "Link",
|
||||||
options: "Company",
|
options: "Company",
|
||||||
default: frappe.defaults.get_user_default("Company")
|
default: frappe.defaults.get_user_default("Company"),
|
||||||
|
reqd: 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
fieldname:"item_group",
|
fieldname:"item_group",
|
||||||
|
@ -15,7 +15,7 @@ def execute(filters=None):
|
|||||||
item_details = get_item_details()
|
item_details = get_item_details()
|
||||||
data = []
|
data = []
|
||||||
|
|
||||||
company_currency = get_company_currency(filters["company"])
|
company_currency = get_company_currency(filters.get("company"))
|
||||||
|
|
||||||
for d in entries:
|
for d in entries:
|
||||||
if d.stock_qty > 0 or filters.get('show_return_entries', 0):
|
if d.stock_qty > 0 or filters.get('show_return_entries', 0):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user