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:
Marcel de Rooy 2021-07-15 06:13:36 +00:00 committed by Jonathan Druart
parent 13b5908c87
commit f5a21f5924
1 changed files with 6 additions and 27 deletions

View File

@ -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;