Lines 830-848
sub quote_item {
Link Here
|
830 |
); |
830 |
); |
831 |
++$created; |
831 |
++$created; |
832 |
|
832 |
|
833 |
my $lrp = |
833 |
my $lrp = $item->girfield('library_rotation_plan'); |
834 |
$item->girfield( 'library_rotation_plan' ); |
|
|
835 |
if ($lrp) { |
834 |
if ($lrp) { |
836 |
my $rota = |
835 |
my $rota = Koha::StockRotationRotas->find( |
837 |
Koha::StockRotationRotas->find( { title => $lrp }, |
836 |
{ title => $lrp }, |
838 |
{ key => 'stockrotationrotas_title' } ); |
837 |
{ key => 'stockrotationrotas_title' } |
|
|
838 |
); |
839 |
if ($rota) { |
839 |
if ($rota) { |
840 |
$rota->add_item($itemnumber); |
840 |
$rota->add_item($itemnumber); |
841 |
$logger->trace("Item added to rota $rota->id"); |
841 |
$logger->trace("Item added to rota $rota->id"); |
842 |
} |
842 |
} else { |
843 |
else { |
843 |
$logger->error("No rota found matching $lrp in orderline"); |
844 |
$logger->error( |
|
|
845 |
"No rota found matching $lrp in orderline"); |
846 |
} |
844 |
} |
847 |
} |
845 |
} |
848 |
} |
846 |
} |
849 |
- |
|
|