fix: reconciled entries showing in bank reco (#20787)

This commit is contained in:
Saqib 2020-03-02 15:01:06 +05:30 committed by GitHub
parent 9ec42ee588
commit 7b8c3dee3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,6 @@ class BankReconciliation(Document):
group by t2.account, t1.name
order by t1.posting_date ASC, t1.name DESC
""".format(condition=condition), {"account": self.account, "from": self.from_date, "to": self.to_date}, as_dict=1)
condition = ''
if self.bank_account:
condition += 'and bank_account = %(bank_account)s'