<<

NAME

StockRotationStage - Koha StockRotationStage Object class

SYNOPSIS

StockRotationStage class used primarily by stockrotation .pls and the stock rotation cron script.

DESCRIPTION

Standard Koha::Objects definitions, and additional methods.

API

Class Methods

_type

stockrotationitems

  my $stages = Koha::StockRotationStage->stockrotationitems;

Returns the items associated with the current stage.

branchcode

  my $branch = Koha::StockRotationStage->branchcode;

Returns the branch associated with the current stage.

rota

  my $rota = Koha::StockRotationStage->rota;

Returns the rota associated with the current stage.

siblings

  my $siblings = $stage->siblings;

Koha::Object wrapper around DBIx::Class::Ordered.

next_siblings

  my $next_siblings = $stage->next_siblings;

Koha::Object wrapper around DBIx::Class::Ordered.

previous_siblings

  my $previous_siblings = $stage->previous_siblings;

Koha::Object wrapper around DBIx::Class::Ordered.

next_sibling

  my $next = $stage->next_sibling;

Koha::Object wrapper around DBIx::Class::Ordered.

previous_sibling

  my $previous = $stage->previous_sibling;

Koha::Object Wrapper around DBIx::Class::Ordered.

first_sibling

  my $first = $stage->first_sibling;

Koha::Object Wrapper around DBIx::Class::Ordered.

last_sibling

  my $last = $stage->last_sibling;

Koha::Object Wrapper around DBIx::Class::Ordered.

move_previous

  1|0 = $stage->move_previous;

Koha::Object Wrapper around DBIx::Class::Ordered.

move_next

  1|0 = $stage->move_next;

Koha::Object Wrapper around DBIx::Class::Ordered.

move_first

  1|0 = $stage->move_first;

Koha::Object Wrapper around DBIx::Class::Ordered.

move_last

  1|0 = $stage->move_last;

Koha::Object Wrapper around DBIx::Class::Ordered.

move_to

  1|0 = $stage->move_to($position);

Koha::Object Wrapper around DBIx::Class::Ordered.

move_to_group

  1|0 = $stage->move_to_group($rota_id, [$position]);

Koha::Object Wrapper around DBIx::Class::Ordered.

delete

  1|0 = $stage->delete;

Koha::Object Wrapper around DBIx::Class::Ordered.

investigate

  my $report = $stage->investigate($report_so_far);

Return a stage based report. This report will mutate and augment the report that is passed to it. It slots item reports into the branched and temporary rota sections of the report. It also increments a number of counters.

For details of intent and context of this procedure, please see Koha::StockRotationRota->investigate.

AUTHOR

Alex Sassmannshausen <alex.sassmannshausen@ptfs-europe.com>

<<