mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 03:09:09 +00:00
fix(Customer Ledger): ambiguous error in where clause (#16914)
fix for error "InternalError: (1052, u"Column 'company' in where clause is ambiguous")" in Customer Ledger Summary
This commit is contained in:
@@ -195,7 +195,7 @@ class PartyLedgerSummaryReport(object):
|
|||||||
conditions = [""]
|
conditions = [""]
|
||||||
|
|
||||||
if self.filters.company:
|
if self.filters.company:
|
||||||
conditions.append("company=%(company)s")
|
conditions.append("gle.company=%(company)s")
|
||||||
|
|
||||||
self.filters.company_finance_book = erpnext.get_default_finance_book(self.filters.company)
|
self.filters.company_finance_book = erpnext.get_default_finance_book(self.filters.company)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user