From 32e7fb28ff98c5fb805638514215182b6b01e600 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Mon, 26 Sep 2016 11:37:27 +0200 Subject: [PATCH] YearEndTransactions: undefined warnings behoben --- SL/Controller/YearEndTransactions.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/Controller/YearEndTransactions.pm b/SL/Controller/YearEndTransactions.pm index 75998c5c6..37517bae8 100644 --- a/SL/Controller/YearEndTransactions.pm +++ b/SL/Controller/YearEndTransactions.pm @@ -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; } -- 2.20.1