[Koha-patches] [PATCH] bug2505: Quieting a warn on acqui/neworderempty.pl

Chris Cormack chrisc at catalyst.net.nz
Wed Jul 14 06:32:43 CEST 2010


---
 acqui/basket.pl |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/acqui/basket.pl b/acqui/basket.pl
index 005fcb9..2f2d85a 100755
--- a/acqui/basket.pl
+++ b/acqui/basket.pl
@@ -230,8 +230,9 @@ if ( $op eq 'delete_confirm' ) {
     my @books_loop;
 
     for my $order ( @results ) {
-        my $rrp = $order->{'listprice'} || 0;
-		my $qty = $order->{'quantity'} || 0;
+        my $rrp = 0;
+	$rrp =  $order->{'listprice'} if (defined $order->{'listprice'});
+	my $qty = $order->{'quantity'} || 0;
         if (!defined $order->{quantityreceived}) {
             $order->{quantityreceived} = 0;
         }
-- 
1.7.0.4



More information about the Koha-patches mailing list