|
Lines 95-101
my $rs = $schema->resultset('VendorEdiAccount')->search(
Link Here
|
| 95 |
{ vendor_id => $booksellerid, } ); |
95 |
{ vendor_id => $booksellerid, } ); |
| 96 |
$template->param( ediaccount => ($rs->count > 0)); |
96 |
$template->param( ediaccount => ($rs->count > 0)); |
| 97 |
|
97 |
|
| 98 |
unless (CanUserManageBasket($loggedinuser, $basket, $userflags)) { |
98 |
unless (CanUserManageBasket($logged_in_patron->unblessed, $basket, $userflags)) { |
| 99 |
$template->param( |
99 |
$template->param( |
| 100 |
cannot_manage_basket => 1, |
100 |
cannot_manage_basket => 1, |
| 101 |
basketno => $basketno, |
101 |
basketno => $basketno, |
|
Lines 287-294
if ( $op eq 'list' ) {
Link Here
|
| 287 |
|
287 |
|
| 288 |
#if the basket is closed,and the user has the permission to edit basketgroups, display a list of basketgroups |
288 |
#if the basket is closed,and the user has the permission to edit basketgroups, display a list of basketgroups |
| 289 |
my ($basketgroup, $basketgroups); |
289 |
my ($basketgroup, $basketgroups); |
| 290 |
my $patron = Koha::Patrons->find($loggedinuser); |
290 |
if ($basket->{closedate} && haspermission($logged_in_patron->userid, { acquisition => 'group_manage'} )) { |
| 291 |
if ($basket->{closedate} && haspermission($patron->userid, { acquisition => 'group_manage'} )) { |
|
|
| 292 |
$basketgroups = GetBasketgroups($basket->{booksellerid}); |
291 |
$basketgroups = GetBasketgroups($basket->{booksellerid}); |
| 293 |
for my $bg ( @{$basketgroups} ) { |
292 |
for my $bg ( @{$basketgroups} ) { |
| 294 |
if ($basket->{basketgroupid} && $basket->{basketgroupid} == $bg->{id}){ |
293 |
if ($basket->{basketgroupid} && $basket->{basketgroupid} == $bg->{id}){ |