fix(Gross Profit): 'company' column is ambiguous in filter
(cherry picked from commit 448712f719)
This commit is contained in:
@@ -736,7 +736,7 @@ class GrossProfitGenerator(object):
|
|||||||
def load_invoice_items(self):
|
def load_invoice_items(self):
|
||||||
conditions = ""
|
conditions = ""
|
||||||
if self.filters.company:
|
if self.filters.company:
|
||||||
conditions += " and company = %(company)s"
|
conditions += " and `tabSales Invoice`.company = %(company)s"
|
||||||
if self.filters.from_date:
|
if self.filters.from_date:
|
||||||
conditions += " and posting_date >= %(from_date)s"
|
conditions += " and posting_date >= %(from_date)s"
|
||||||
if self.filters.to_date:
|
if self.filters.to_date:
|
||||||
|
|||||||
Reference in New Issue
Block a user