Lines 204-216
if ( $op eq 'delete_confirm' ) {
Link Here
|
204 |
} |
204 |
} |
205 |
} |
205 |
} |
206 |
#if the basket is closed,and the user has the permission to edit basketgroups, display a list of basketgroups |
206 |
#if the basket is closed,and the user has the permission to edit basketgroups, display a list of basketgroups |
207 |
my $basketgroups; |
207 |
my ($basketgroup, $basketgroups); |
208 |
my $member = GetMember(borrowernumber => $loggedinuser); |
208 |
my $member = GetMember(borrowernumber => $loggedinuser); |
209 |
if ($basket->{closedate} && haspermission({ acquisition => 'group_manage'} )) { |
209 |
if ($basket->{closedate} && haspermission({ acquisition => 'group_manage'} )) { |
210 |
$basketgroups = GetBasketgroups($basket->{booksellerid}); |
210 |
$basketgroups = GetBasketgroups($basket->{booksellerid}); |
211 |
for my $bg ( @{$basketgroups} ) { |
211 |
for my $bg ( @{$basketgroups} ) { |
212 |
if ($basket->{basketgroupid} && $basket->{basketgroupid} == $bg->{id}){ |
212 |
if ($basket->{basketgroupid} && $basket->{basketgroupid} == $bg->{id}){ |
213 |
$bg->{default} = 1; |
213 |
$bg->{default} = 1; |
|
|
214 |
$basketgroup = $bg; |
214 |
} |
215 |
} |
215 |
} |
216 |
} |
216 |
my %emptygroup = ( id => undef, |
217 |
my %emptygroup = ( id => undef, |
Lines 404-409
my $total_est_gste;
Link Here
|
404 |
qty_total => $qty_total, |
405 |
qty_total => $qty_total, |
405 |
GST => $gist, |
406 |
GST => $gist, |
406 |
basketgroups => $basketgroups, |
407 |
basketgroups => $basketgroups, |
|
|
408 |
basketgroup => $basketgroup, |
407 |
grouped => $basket->{basketgroupid}, |
409 |
grouped => $basket->{basketgroupid}, |
408 |
unclosable => @orders ? 0 : 1, |
410 |
unclosable => @orders ? 0 : 1, |
409 |
has_budgets => $has_budgets, |
411 |
has_budgets => $has_budgets, |