fix(Gross Profit): 'company' column is ambiguous in filter

(cherry picked from commit 448712f719)
This commit is contained in:
ruthra kumar
2023-05-25 14:18:41 +05:30
committed by Mergify
parent 20d3381010
commit 270eb1db4d

View File

@@ -666,7 +666,7 @@ class GrossProfitGenerator(object):
def load_invoice_items(self):
conditions = ""
if self.filters.company:
conditions += " and company = %(company)s"
conditions += " and `tabSales Invoice`.company = %(company)s"
if self.filters.from_date:
conditions += " and posting_date >= %(from_date)s"
if self.filters.to_date: