Lines 1141-1150
sub checkauth {
Link Here
|
1141 |
my $desk = Koha::Desks->find($desk_id); |
1141 |
my $desk = Koha::Desks->find($desk_id); |
1142 |
$desk_name = $desk ? $desk->desk_name : ''; |
1142 |
$desk_name = $desk ? $desk->desk_name : ''; |
1143 |
} |
1143 |
} |
1144 |
if ( $query->param('register_id') ) { |
1144 |
if ( C4::Context->preference('UseCashRegisters') ) { |
1145 |
$register_id = $query->param('register_id'); |
1145 |
my $register = |
1146 |
my $register = Koha::Cash::Registers->find($register_id); |
1146 |
$query->param('register_id') |
1147 |
$register_name = $register ? $register->name : ''; |
1147 |
? Koha::Cash::Registers->find($query->param('register_id')) |
|
|
1148 |
: Koha::Cash::Registers->search( |
1149 |
{ branch => $branchcode, branch_default => 1 }, |
1150 |
{ rows => 1 } )->single; |
1151 |
$register_id = $register->id if ($register); |
1152 |
$register_name = $register->name if ($register); |
1148 |
} |
1153 |
} |
1149 |
my $branches = { map { $_->branchcode => $_->unblessed } Koha::Libraries->search }; |
1154 |
my $branches = { map { $_->branchcode => $_->unblessed } Koha::Libraries->search }; |
1150 |
if ( $type ne 'opac' and C4::Context->boolean_preference('AutoLocation') ) { |
1155 |
if ( $type ne 'opac' and C4::Context->boolean_preference('AutoLocation') ) { |