Lines 207-214
if ( $op eq 'delete_confirm' ) {
Link Here
|
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 ($basketgroup, $basketgroups); |
209 |
my ($basketgroup, $basketgroups); |
210 |
my $member = GetMember(borrowernumber => $loggedinuser); |
210 |
my $staffuser = GetMember(borrowernumber => $loggedinuser); |
211 |
if ($basket->{closedate} && haspermission({ acquisition => 'group_manage'} )) { |
211 |
if ($basket->{closedate} && haspermission($staffuser->{userid}, { 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}){ |
Lines 287-299
if ( $op eq 'delete_confirm' ) {
Link Here
|
287 |
my @orders = GetOrders($basketno); |
287 |
my @orders = GetOrders($basketno); |
288 |
|
288 |
|
289 |
if ($basket->{basketgroupid}){ |
289 |
if ($basket->{basketgroupid}){ |
290 |
my $basketgroup = GetBasketgroup($basket->{basketgroupid}); |
290 |
$basketgroup = GetBasketgroup($basket->{basketgroupid}); |
291 |
for my $key (keys %$basketgroup ){ |
291 |
$basketgroup->{deliveryplacename} = C4::Branch::GetBranchName( $basketgroup->{deliveryplace} ); |
292 |
$basketgroup->{"basketgroup$key"} = delete $basketgroup->{$key}; |
292 |
$basketgroup->{billingplacename} = C4::Branch::GetBranchName( $basketgroup->{billingplace} ); |
293 |
} |
|
|
294 |
$basketgroup->{basketgroupdeliveryplace} = C4::Branch::GetBranchName( $basketgroup->{basketgroupdeliveryplace} ); |
295 |
$basketgroup->{basketgroupbillingplace} = C4::Branch::GetBranchName( $basketgroup->{basketgroupbillingplace} ); |
296 |
$template->param(%$basketgroup); |
297 |
} |
293 |
} |
298 |
my $borrower= GetMember('borrowernumber' => $loggedinuser); |
294 |
my $borrower= GetMember('borrowernumber' => $loggedinuser); |
299 |
my $budgets = GetBudgetHierarchy; |
295 |
my $budgets = GetBudgetHierarchy; |