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 |
my $lrp = |
848 |
$item->girfield( 'library_rotation_plan', $occurrence ); |
849 |
if ($lrp) { |
850 |
my $rota = |
851 |
Koha::StockRotationRotas->find( { title => $lrp }, |
852 |
{ key => 'stockrotationrotas_title' } ); |
853 |
if ($rota) { |
854 |
$rota->add_item($itemnumber); |
855 |
$logger->trace("Item added to rota $rota->id"); |
856 |
} |
857 |
else { |
858 |
$logger->error( |
859 |
"No rota found matching $lrp in orderline"); |
860 |
} |
861 |
} |
830 |
} |
862 |
} |
831 |
|
863 |
|
832 |
++$occurrence; |
864 |
++$occurrence; |
833 |
- |
|
|