mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-26 22:52:10 +01:00
fix: remove spaces and order import
(cherry picked from commit 3ef551872a)
This commit is contained in:
@@ -7,8 +7,8 @@ from frappe import _, scrub
|
|||||||
from frappe.utils import cint, flt, formatdate
|
from frappe.utils import cint, flt, formatdate
|
||||||
|
|
||||||
from erpnext.controllers.queries import get_match_cond
|
from erpnext.controllers.queries import get_match_cond
|
||||||
from erpnext.stock.utils import get_incoming_rate
|
|
||||||
from erpnext.stock.report.stock_ledger.stock_ledger import get_item_group_condition
|
from erpnext.stock.report.stock_ledger.stock_ledger import get_item_group_condition
|
||||||
|
from erpnext.stock.utils import get_incoming_rate
|
||||||
|
|
||||||
|
|
||||||
def execute(filters=None):
|
def execute(filters=None):
|
||||||
@@ -681,9 +681,9 @@ class GrossProfitGenerator(object):
|
|||||||
conditions += " and {0}".format(get_item_group_condition(self.filters.item_group))
|
conditions += " and {0}".format(get_item_group_condition(self.filters.item_group))
|
||||||
|
|
||||||
if self.filters.sales_person:
|
if self.filters.sales_person:
|
||||||
conditions += """
|
conditions += """
|
||||||
and exists(select 1
|
and exists(select 1
|
||||||
from `tabSales Team` st
|
from `tabSales Team` st
|
||||||
where st.parent = `tabSales Invoice`.name
|
where st.parent = `tabSales Invoice`.name
|
||||||
and st.sales_person = %(sales_person)s)
|
and st.sales_person = %(sales_person)s)
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user