]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/Controller/YearEndTransactions.pm
SL::DB::Part - Zugriff auf items und Summen überarbeitet
[kivitendo-erp.git] / SL / Controller / YearEndTransactions.pm
index 75998c5c668e8866b2d92c50c8e1bb0d17bbe4b1..37517bae8a0ffcae09f8fc356966a61fd093ffee 100644 (file)
@@ -205,7 +205,7 @@ sub get_balance {
   #$main::lxdebug->message(LXDebug->DEBUG2(),"get_balance from=".$self->cb_startdate->to_kivitendo." to=".$self->cb_date->to_kivitendo);
   my $balance = $chart->get_balance(fromdate => $self->cb_startdate, todate => $self->cb_date);
   $main::lxdebug->leave_sub();
-  return 0 unless $balance != 0;
+  return 0 if !defined $balance || $balance == 0;
   return $balance;
 }