Lines 1131-1140
sub checkauth {
Link Here
|
1131 |
my $desk = Koha::Desks->find($desk_id); |
1131 |
my $desk = Koha::Desks->find($desk_id); |
1132 |
$desk_name = $desk ? $desk->desk_name : ''; |
1132 |
$desk_name = $desk ? $desk->desk_name : ''; |
1133 |
} |
1133 |
} |
1134 |
if ( $query->param('register_id') ) { |
1134 |
if ( C4::Context->preference('UseCashRegisters') ) { |
1135 |
$register_id = $query->param('register_id'); |
1135 |
my $register = |
1136 |
my $register = Koha::Cash::Registers->find($register_id); |
1136 |
$query->param('register_id') |
1137 |
$register_name = $register ? $register->name : ''; |
1137 |
? Koha::Cash::Registers->find($query->param('register_id')) |
|
|
1138 |
: Koha::Cash::Registers->search( |
1139 |
{ branch => $branchcode, branch_default => 1 }, |
1140 |
{ rows => 1 } )->single; |
1141 |
$register_id = $register->id if ($register); |
1142 |
$register_name = $register->name if ($register); |
1138 |
} |
1143 |
} |
1139 |
my $branches = { map { $_->branchcode => $_->unblessed } Koha::Libraries->search }; |
1144 |
my $branches = { map { $_->branchcode => $_->unblessed } Koha::Libraries->search }; |
1140 |
if ( $type ne 'opac' and C4::Context->boolean_preference('AutoLocation') ) { |
1145 |
if ( $type ne 'opac' and C4::Context->boolean_preference('AutoLocation') ) { |