Bugzilla – Attachment 125738 Details for
Bug 29177
Remove TODO in acqui/finishreceive.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29177: Remove TODO in acqui/finishreceive
Bug-29177-Remove-TODO-in-acquifinishreceive.patch (text/plain), 1.45 KB, created by
Marcel de Rooy
on 2021-10-05 14:07:42 UTC
(
hide
)
Description:
Bug 29177: Remove TODO in acqui/finishreceive
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2021-10-05 14:07:42 UTC
Size:
1.45 KB
patch
obsolete
>From e8c573e6986b271dfa754f18e290b276fb1b523c Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Tue, 5 Oct 2021 14:05:49 +0000 >Subject: [PATCH] Bug 29177: Remove TODO in acqui/finishreceive >Content-Type: text/plain; charset=utf-8 > >Replacing a multiple object->column(value) by ->update. >--- > acqui/finishreceive.pl | 15 ++++++++------- > 1 file changed, 8 insertions(+), 7 deletions(-) > >diff --git a/acqui/finishreceive.pl b/acqui/finishreceive.pl >index 378acf1cd2..93391e8fad 100755 >--- a/acqui/finishreceive.pl >+++ b/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) { >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 29177
:
125738
|
126035