From 6c6b925f2d7e954a9c933201c327452430495946 Mon Sep 17 00:00:00 2001 From: Wilson Gomez Date: Thu, 30 Nov 2023 15:12:40 -0500 Subject: [PATCH] minor fix --- voucher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/voucher.py b/voucher.py index 4bb5b60..3800c24 100644 --- a/voucher.py +++ b/voucher.py @@ -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