Skip to content

Commit

Permalink
fix(Gross Profit): 'company' column is ambiguous in filter
Browse files Browse the repository at this point in the history
  • Loading branch information
ruthra-kumar committed May 25, 2023
1 parent 1587ce3 commit 448712f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/accounts/report/gross_profit/gross_profit.py
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ def get_last_purchase_rate(self, item_code, row):
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:
Expand Down

0 comments on commit 448712f

Please sign in to comment.