From: Nahuel ANGELINETTI Date: Wed, 6 May 2009 10:26:55 +0000 (+0200) Subject: (bug #3193) fix the comtd value in acqui-home.pl X-Git-Tag: v3.00.02-stable~69 X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=5ccafb55e22c787c76a043138207f2a051077622;p=koha.git (bug #3193) fix the comtd value in acqui-home.pl this patch fix the value of the comtd value which is not the same as in bookfund.pl, clicking on the value from acqui-home. Signed-off-by: Galen Charlton Signed-off-by: Henri-Damien LAURENT --- diff --git a/C4/Bookfund.pm b/C4/Bookfund.pm index b794aae154..8e9c95f25a 100644 --- a/C4/Bookfund.pm +++ b/C4/Bookfund.pm @@ -272,7 +272,7 @@ sub GetBookFundBreakdown { while ( my $data = $sth->fetchrow_hashref ) { my $left = $data->{'tleft'}; - if ( (!$left && (!$data->{'datereceived'}||$data->{'datereceived'} eq '0000-00-00') ) || $left eq '' ) { + if ( !$left || $left eq '' ) { $left = $data->{'quantity'}; } if ( $left && $left > 0 ) {