minor fix
This commit is contained in:
parent
3f56ed7244
commit
6c6b925f2d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue