Bug 27944: (follow-up) Move statuses to constants
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
13b5908c87
commit
f5a21f5924
|
|
@ -19,37 +19,16 @@ package Koha::ArticleRequest::Status;
|
|||
|
||||
use Modern::Perl;
|
||||
|
||||
use constant Requested => 'REQUESTED';
|
||||
use constant Pending => 'PENDING';
|
||||
use constant Processing => 'PROCESSING';
|
||||
use constant Completed => 'COMPLETED';
|
||||
use constant Canceled => 'CANCELED';
|
||||
|
||||
=head1 AUTHOR
|
||||
|
||||
Kyle M Hall <kyle@bywatersolutions.com>
|
||||
|
||||
=cut
|
||||
|
||||
=head2 Requested
|
||||
|
||||
returns constant string 'REQUESTED'
|
||||
|
||||
=cut
|
||||
|
||||
sub Requested {
|
||||
return 'REQUESTED';
|
||||
}
|
||||
|
||||
sub Pending {
|
||||
return 'PENDING';
|
||||
}
|
||||
|
||||
sub Processing {
|
||||
return 'PROCESSING';
|
||||
}
|
||||
|
||||
sub Completed {
|
||||
return 'COMPLETED';
|
||||
}
|
||||
|
||||
sub Canceled {
|
||||
return 'CANCELED';
|
||||
}
|
||||
|
||||
|
||||
1;
|
||||
|
|
|
|||
Loading…
Reference in New Issue