(BUG #4342) should not be able to close an empty basket

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
Alex Arnaud 2010-03-26 16:51:07 +01:00 committed by Galen Charlton
parent e594317f4d
commit 129e4c045f
1 changed files with 2 additions and 0 deletions

View File

@ -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,
);
}