Do not try to reconcile posted lines without debit/credit but with second currency amount

Closes #13293
This commit is contained in:
Richard Vong
2024-06-28 00:59:01 +02:00
parent cd1c57dddf
commit e48510503f
+4 -1
View File
@@ -491,7 +491,10 @@ class Move(DescriptionOriginMixin, ModelSQL, ModelView):
line.id,
where=reduce_ids(line.move, sub_moves_ids)
& (line.debit == Decimal(0))
& (line.credit == Decimal(0))))
& (line.credit == Decimal(0))
& ((line.amount_second_currency == Null)
| (line.amount_second_currency == Decimal(0)))
))
to_reconcile.extend(l for l, in cursor)
for move in moves: