Lines 776-781
sub quote_item {
Link Here
|
776 |
itemnumber => $itemnumber, |
776 |
itemnumber => $itemnumber, |
777 |
} |
777 |
} |
778 |
); |
778 |
); |
|
|
779 |
|
780 |
my $lrp = |
781 |
$item->girfield( 'library_rotation_plan', $occurrence ); |
782 |
if ($lrp) { |
783 |
my $rota = |
784 |
Koha::StockRotationRotas->find( { title => $lrp }, |
785 |
{ key => 'stockrotationrotas_title' } ); |
786 |
if ($rota) { |
787 |
$rota->add_item($itemnumber); |
788 |
$logger->trace("Item added to rota $rota->id"); |
789 |
} |
790 |
else { |
791 |
$logger->error( |
792 |
"No rota found matching $lrp in orderline"); |
793 |
} |
794 |
} |
779 |
} |
795 |
} |
780 |
|
796 |
|
781 |
++$occurrence; |
797 |
++$occurrence; |
Lines 827-832
sub quote_item {
Link Here
|
827 |
itemnumber => $itemnumber, |
843 |
itemnumber => $itemnumber, |
828 |
} |
844 |
} |
829 |
); |
845 |
); |
|
|
846 |
|
847 |
if (my $lrp = $item->girfield( 'library_rotation_plan', $occurrence) ) { |
848 |
my $rota = Koha::StockRotationRotas->find({ title => $lrp}, {key => 'stockrotationrotas_title'}); |
849 |
$rota->add_item($itemnumber); |
850 |
} |
830 |
} |
851 |
} |
831 |
|
852 |
|
832 |
++$occurrence; |
853 |
++$occurrence; |
833 |
- |
|
|