|
Lines 206-218
if ( $op eq 'delete_confirm' ) {
Link Here
|
| 206 |
} |
206 |
} |
| 207 |
} |
207 |
} |
| 208 |
#if the basket is closed,and the user has the permission to edit basketgroups, display a list of basketgroups |
208 |
#if the basket is closed,and the user has the permission to edit basketgroups, display a list of basketgroups |
| 209 |
my $basketgroups; |
209 |
my ($basketgroup, $basketgroups); |
| 210 |
my $member = GetMember(borrowernumber => $loggedinuser); |
210 |
my $member = GetMember(borrowernumber => $loggedinuser); |
| 211 |
if ($basket->{closedate} && haspermission({ acquisition => 'group_manage'} )) { |
211 |
if ($basket->{closedate} && haspermission({ acquisition => 'group_manage'} )) { |
| 212 |
$basketgroups = GetBasketgroups($basket->{booksellerid}); |
212 |
$basketgroups = GetBasketgroups($basket->{booksellerid}); |
| 213 |
for my $bg ( @{$basketgroups} ) { |
213 |
for my $bg ( @{$basketgroups} ) { |
| 214 |
if ($basket->{basketgroupid} && $basket->{basketgroupid} == $bg->{id}){ |
214 |
if ($basket->{basketgroupid} && $basket->{basketgroupid} == $bg->{id}){ |
| 215 |
$bg->{default} = 1; |
215 |
$bg->{default} = 1; |
|
|
216 |
$basketgroup = $bg; |
| 216 |
} |
217 |
} |
| 217 |
} |
218 |
} |
| 218 |
my %emptygroup = ( id => undef, |
219 |
my %emptygroup = ( id => undef, |
|
Lines 339-344
if ( $op eq 'delete_confirm' ) {
Link Here
|
| 339 |
currency => $cur->{'currency'}, |
340 |
currency => $cur->{'currency'}, |
| 340 |
listincgst => $bookseller->{listincgst}, |
341 |
listincgst => $bookseller->{listincgst}, |
| 341 |
basketgroups => $basketgroups, |
342 |
basketgroups => $basketgroups, |
|
|
343 |
basketgroup => $basketgroup, |
| 342 |
grouped => $basket->{basketgroupid}, |
344 |
grouped => $basket->{basketgroupid}, |
| 343 |
unclosable => @orders ? 0 : 1, |
345 |
unclosable => @orders ? 0 : 1, |
| 344 |
has_budgets => $has_budgets, |
346 |
has_budgets => $has_budgets, |