Lines 84-91
Returns a list of all cash registers available that adhere to the passed filters
Link Here
|
84 |
sub all { |
84 |
sub all { |
85 |
my ( $self, $params ) = @_; |
85 |
my ( $self, $params ) = @_; |
86 |
|
86 |
|
|
|
87 |
return unless C4::Context->preference('UseCashRegisters'); |
88 |
|
87 |
my $filters = $params->{filters} // {}; |
89 |
my $filters = $params->{filters} // {}; |
88 |
my $where; |
90 |
my $where = { archived => 0 }; |
89 |
$where->{branch} = C4::Context->userenv->{'branch'} |
91 |
$where->{branch} = C4::Context->userenv->{'branch'} |
90 |
if ( $filters->{current_branch} && C4::Context->userenv ); |
92 |
if ( $filters->{current_branch} && C4::Context->userenv ); |
91 |
my $registers = Koha::Cash::Registers->search($where)->unblessed(); |
93 |
my $registers = Koha::Cash::Registers->search($where)->unblessed(); |
92 |
- |
|
|