fix(Gross Profit): 'company' column is ambiguous in filter
diff --git a/erpnext/accounts/report/gross_profit/gross_profit.py b/erpnext/accounts/report/gross_profit/gross_profit.py
index 81f5928..a0099a9 100644
--- a/erpnext/accounts/report/gross_profit/gross_profit.py
+++ b/erpnext/accounts/report/gross_profit/gross_profit.py
@@ -736,7 +736,7 @@
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: