From 89402a3afb0cc1f9b73537645dd63e1715ced775 Mon Sep 17 00:00:00 2001 From: "G. Richardson" Date: Mon, 20 Jul 2015 14:23:04 +0200 Subject: [PATCH] =?utf8?q?Bei=20Kontenabgleich=20Differenz=20der=20ausgew?= =?utf8?q?=C3=A4hlten=20Zeilen=20richtig=20berechnen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Bei round_amount muß man immer die nötige Anzahl der Stellen als Parameter mitgeben, ansonsten wird auf 0 Stellen gerundet. behebt #66 --- SL/Controller/Reconciliation.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/Controller/Reconciliation.pm b/SL/Controller/Reconciliation.pm index c6faef15f..daf8f075e 100644 --- a/SL/Controller/Reconciliation.pm +++ b/SL/Controller/Reconciliation.pm @@ -338,7 +338,7 @@ sub _get_elements_and_validate { push @elements, $bb; } - if ($::form->round_amount($bt_sum + $bb_sum) != 0) { + if ($::form->round_amount($bt_sum + $bb_sum, 2) != 0) { push @errors, t8('Out of balance!'); } -- 2.20.1