Bugzilla – Attachment 126035 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.48 KB, created by
Martin Renvoize (ashimema)
on 2021-10-11 09:28:25 UTC
(
hide
)
Description:
Bug 29177: Remove TODO in acqui/finishreceive
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2021-10-11 09:28:25 UTC
Size:
1.48 KB
patch
obsolete
>From e708e352122aba6d2e5c786f4d5dc100f5876da0 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 > >Replacing a multiple object->column(value) by ->update. > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > 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