X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FController%2FReconciliation.pm;h=1236c44657b292b4a6e3189d2cc378bd5a3fe398;hb=fea94894ccc1fd4ee626f686ade761b83a1e4ebb;hp=c6faef15f8241c364fe2920f9635bf693ad6575d;hpb=15f58ff3dfd79651a95535b53f864ea0e8cb6620;p=kivitendo-erp.git diff --git a/SL/Controller/Reconciliation.pm b/SL/Controller/Reconciliation.pm index c6faef15f..1236c4465 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!'); } @@ -406,8 +406,8 @@ sub _filter_to_where { } if ( $self->{bank_account}->reconciliation_starting_date ) { - push @bt_where, (transdate => { gt => $self->{bank_account}->reconciliation_starting_date }); - push @bb_where, (transdate => { gt => $self->{bank_account}->reconciliation_starting_date }); + push @bt_where, (transdate => { ge => $self->{bank_account}->reconciliation_starting_date }); + push @bb_where, (transdate => { ge => $self->{bank_account}->reconciliation_starting_date }); } # don't try to reconcile opening and closing balance transactions