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:
parent
4c8627e88d
commit
ac199580af
@ -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)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user