fix: reconciled entries showing in bank reco (#20787)
This commit is contained in:
parent
9ec42ee588
commit
7b8c3dee3d
@ -38,7 +38,6 @@ class BankReconciliation(Document):
|
|||||||
group by t2.account, t1.name
|
group by t2.account, t1.name
|
||||||
order by t1.posting_date ASC, t1.name DESC
|
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)
|
""".format(condition=condition), {"account": self.account, "from": self.from_date, "to": self.to_date}, as_dict=1)
|
||||||
condition = ''
|
|
||||||
|
|
||||||
if self.bank_account:
|
if self.bank_account:
|
||||||
condition += 'and bank_account = %(bank_account)s'
|
condition += 'and bank_account = %(bank_account)s'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user