commit | 1f5b21673ce00f34f67d34a9b7b9b99cef03ff51 | [log] [tgz] |
---|---|---|
author | Nabin Hait <nabinhait@gmail.com> | Tue May 26 11:07:23 2015 +0530 |
committer | Nabin Hait <nabinhait@gmail.com> | Tue May 26 12:15:39 2015 +0530 |
tree | ce349f6311b73a66629038c60d0f0caac62f68e7 | |
parent | 093beecd0a8a167ccb0a9f32a6d5271a9b1d41cd [diff] |
minor fix in report
diff --git a/erpnext/selling/report/sales_person_wise_transaction_summary/sales_person_wise_transaction_summary.py b/erpnext/selling/report/sales_person_wise_transaction_summary/sales_person_wise_transaction_summary.py index e102f0d..65b0c08 100644 --- a/erpnext/selling/report/sales_person_wise_transaction_summary/sales_person_wise_transaction_summary.py +++ b/erpnext/selling/report/sales_person_wise_transaction_summary/sales_person_wise_transaction_summary.py
@@ -50,10 +50,14 @@ conditions = [""] values = [] - for field in ["company", "customer", "territory", "sales_person"]: + for field in ["company", "customer", "territory"]: if filters.get(field): conditions.append("dt.{0}=%s".format(field)) values.append(filters[field]) + + if filters.get("sales_person"): + conditions.append("st.sales_person=%s") + values.append(filters["sales_person"]) if filters.get("from_date"): conditions.append("dt.{0}>=%s".format(date_field))