@@ -, +, @@ --- acqui/finishreceive.pl | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) --- a/acqui/finishreceive.pl +++ a/acqui/finishreceive.pl @@ -174,13 +174,14 @@ if ($quantityrec > $origquantityrec ) { my $new_order_object = Koha::Acquisition::Orders->find( $new_ordernumber ); # FIXME we should not need to refetch it my $items = $new_order_object->items; while ( my $item = $items->next ) { - $item->booksellerid($booksellerid); # TODO This should be done using ->set, but bug 21761 is not resolved - $item->dateaccessioned($datereceived); - $item->datelastseen($datereceived); - $item->price($unitprice); - $item->replacementprice($replacementprice); - $item->replacementpricedate($datereceived); - $item->store; + $item->update({ + booksellerid => $booksellerid, + dateaccessioned => $datereceived, + datelastseen => $datereceived, + price => $unitprice, + replacementprice => $replacementprice, + replacementpricedate => $datereceived, + }); } if ($suggestion_id) { --