minor fix

This commit is contained in:
Wilson Gomez 2023-11-30 15:12:40 -05:00
parent 3f56ed7244
commit 6c6b925f2d
1 changed files with 1 additions and 1 deletions

View File

@ -480,7 +480,7 @@ class Voucher(Workflow, ModelSQL, ModelView):
if line.move_line and line.amount != _ZERO:
to_reconcile[line] = [line.move_line]
amount = sum(ln['credit'] - ln['debit'] for ln in move_lines)
amount = abs(sum(ln['credit'] - ln['debit'] for ln in move_lines))
if self.voucher_type == 'receipt':
debit = amount