Merge pull request #35417 from ruthra-kumar/fix_ambiguous_company_in_gross_profit_report

fix(Gross Profit): 'company' column is ambiguous in filter
This commit is contained in:
ruthra kumar 2023-05-25 15:06:35 +05:30 committed by GitHub
commit ec5d34117b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -736,7 +736,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: