Bug 13881: DBRev 19.12.00.090
[koha.git] / Koha / StockRotationStages.pm
blobadc6c81007224890e77037e2d3023d6c840b9eb9
1 package Koha::StockRotationStages;
3 # Copyright PTFS Europe 2016
5 # This file is part of Koha.
7 # Koha is free software; you can redistribute it and/or modify it
8 # under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 3 of the License, or
10 # (at your option) any later version.
12 # Koha is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with Koha; if not, see <http://www.gnu.org/licenses>.
20 use Modern::Perl;
22 use Koha::Database;
23 use Koha::StockRotationStage;
25 use base qw(Koha::Objects);
27 =head1 NAME
29 StockRotationStages - Koha StockRotationStages Object class
31 =head1 SYNOPSIS
33 StockRotationStages class used primarily by stockrotation .pls and the stock
34 rotation cron script.
36 =head1 DESCRIPTION
38 Standard Koha::Objects definitions, and additional methods.
40 =head1 API
42 =head2 Class Methods
44 =cut
46 =head3 investigate
48 my $report = $stages->investigate($rota_so_far);
50 Return a report detailing the current status and required actions for all
51 relevant items spread over the set of stages.
53 For details of intent and context of this procedure, please see
54 Koha::StockRotationRota->investigate.
56 =cut
58 sub investigate {
59 my ( $self, $report ) = @_;
61 while ( my $stage = $self->next ) {
62 $report = $stage->investigate($report);
65 return $report;
68 =head3 _type
70 =cut
72 sub _type {
73 return 'Stockrotationstage';
76 =head3 object_class
78 =cut
80 sub object_class {
81 return 'Koha::StockRotationStage';
86 =head1 AUTHOR
88 Alex Sassmannshausen <alex.sassmannshausen@ptfs-europe.com>
90 =cut