minor fix

This commit is contained in:
wilson gomez 2022-01-19 16:32:04 -05:00
parent 4ed96a17c8
commit 9e76c5b845

View file

@ -115,7 +115,7 @@ class Payroll(metaclass=PoolMeta):
}})
for p in self.move.lines:
if p.account.id not in grouped or (
p.account.type.statement not in ('balance')):
p.account.type.statement not in ('balance')) or p.reconciliation:
continue
to_reconcile = [p] + grouped[p.account.id]['lines']
amount = sum([(r.debit - r.credit) for r in to_reconcile])