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:
Himanshu 2019-03-18 15:44:54 +05:30 committed by Faris Ansari
parent 4c8627e88d
commit ac199580af

View File

@ -195,7 +195,7 @@ class PartyLedgerSummaryReport(object):
conditions = [""]
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)