Lines 790-795
sub quote_item {
Link Here
|
790 |
itemnumber => $itemnumber, |
790 |
itemnumber => $itemnumber, |
791 |
} |
791 |
} |
792 |
); |
792 |
); |
|
|
793 |
|
794 |
my $lrp = |
795 |
$item->girfield( 'library_rotation_plan', $occurrence ); |
796 |
if ($lrp) { |
797 |
my $rota = |
798 |
Koha::StockRotationRotas->find( { title => $lrp }, |
799 |
{ key => 'stockrotationrotas_title' } ); |
800 |
if ($rota) { |
801 |
$rota->add_item($itemnumber); |
802 |
$logger->trace("Item added to rota $rota->id"); |
803 |
} |
804 |
else { |
805 |
$logger->error( |
806 |
"No rota found matching $lrp in orderline"); |
807 |
} |
808 |
} |
793 |
} |
809 |
} |
794 |
|
810 |
|
795 |
++$occurrence; |
811 |
++$occurrence; |
Lines 843-848
sub quote_item {
Link Here
|
843 |
itemnumber => $itemnumber, |
859 |
itemnumber => $itemnumber, |
844 |
} |
860 |
} |
845 |
); |
861 |
); |
|
|
862 |
|
863 |
my $lrp = |
864 |
$item->girfield( 'library_rotation_plan', $occurrence ); |
865 |
if ($lrp) { |
866 |
my $rota = |
867 |
Koha::StockRotationRotas->find( { title => $lrp }, |
868 |
{ key => 'stockrotationrotas_title' } ); |
869 |
if ($rota) { |
870 |
$rota->add_item($itemnumber); |
871 |
$logger->trace("Item added to rota $rota->id"); |
872 |
} |
873 |
else { |
874 |
$logger->error( |
875 |
"No rota found matching $lrp in orderline"); |
876 |
} |
877 |
} |
846 |
} |
878 |
} |
847 |
|
879 |
|
848 |
++$occurrence; |
880 |
++$occurrence; |
849 |
- |
|
|