@@ -, +, @@ --- Koha/EDI.pm | 10 ++++++++++ 1 file changed, 10 insertions(+) --- a/Koha/EDI.pm +++ a/Koha/EDI.pm @@ -776,6 +776,11 @@ sub quote_item { itemnumber => $itemnumber, } ); + + if (my $lrp = $item->girfield( 'library_rotation_plan', $occurrence) ) { + my $rota = Koha::StockRotationRotas->find({ title => $lrp}, {key => 'stockrotationrotas_title'}); + $rota->add_item($itemnumber); + } } ++$occurrence; @@ -827,6 +832,11 @@ sub quote_item { itemnumber => $itemnumber, } ); + + if (my $lrp = $item->girfield( 'library_rotation_plan', $occurrence) ) { + my $rota = Koha::StockRotationRotas->find({ title => $lrp}, {key => 'stockrotationrotas_title'}); + $rota->add_item($itemnumber); + } } ++$occurrence; --