<<

NAME

StockRotationItem - Koha StockRotationItem Object class

SYNOPSIS

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

DESCRIPTION

Standard Koha::Objects definitions, and additional methods.

API

Class Methods

_type

itemnumber

  my $item = Koha::StockRotationItem->itemnumber;

Returns the item associated with the current stock rotation item.

stage

  my $stage = Koha::StockRotationItem->stage;

Returns the stage associated with the current stock rotation item.

needs_repatriating

  1|0 = $item->needs_repatriating;

Return 1 if this item is currently not at the library it should be at according to our stockrotation plan.

needs_advancing

  1|0 = $item->needs_advancing;

Return 1 if this item is ready to be moved on to the next stage in its rota.

repatriate

  1|0 = $sritem->repatriate

Put this item into branch transfer with 'StockrotationCorrection' comment, so that it may return to it's stage.branch to continue its rota as normal.

advance

  1|0 = $sritem->advance;

Put this item into branch transfer with 'StockrotationAdvance' comment, to transfer it to the next stage in its rota.

If this is the last stage in the rota and this rota is cyclical, we return to the first stage. If it is not cyclical, then we delete this StockRotationItem.

If this item is 'indemand', and advance is invoked, we disable 'indemand' and advance the item as per usual.

investigate

  my $report = $item->investigate;

Return the base set of information, namely this individual item's report, for generating stockrotation reports about this stockrotationitem.

AUTHOR

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

<<