From 129e4c045f4176d1a6356bc84bd5e781be97e421 Mon Sep 17 00:00:00 2001 From: Alex Arnaud Date: Fri, 26 Mar 2010 16:51:07 +0100 Subject: [PATCH] (BUG #4342) should not be able to close an empty basket Signed-off-by: Galen Charlton --- acqui/basket.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/acqui/basket.pl b/acqui/basket.pl index 5947b0b119..cd6704652d 100755 --- a/acqui/basket.pl +++ b/acqui/basket.pl @@ -288,6 +288,7 @@ if ( $op eq 'delete_confirm' ) { my $total_est_gste = $total_rrp_gste - ($total_rrp_gste * $discount); my $contract = &GetContract($basket->{contractnumber}); + my @orders = GetOrders($basketno); $template->param( basketno => $basketno, basketname => $basket->{'basketname'}, @@ -317,6 +318,7 @@ if ( $op eq 'delete_confirm' ) { GST => $gist, basketgroups => $basketgroups, grouped => $basket->{basketgroupid}, + unclosable => @orders ? 0 : 1, ); } -- 2.39.5