Bugzilla – Attachment 96323 Details for
Bug 14963
Add the ability to suggest purchase from existing titles
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14963: Set status=ORDERED for suggestions created from existing record
Bug-14963-Set-statusORDERED-for-suggestions-create.patch (text/plain), 1.73 KB, created by
Nick Clemens (kidclamp)
on 2019-12-16 12:41:03 UTC
(
hide
)
Description:
Bug 14963: Set status=ORDERED for suggestions created from existing record
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2019-12-16 12:41:03 UTC
Size:
1.73 KB
patch
obsolete
>From b1918c9db8a698aab6da65ec3cfd4d90ffe0b0dc Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 7 Nov 2019 18:18:31 +0100 >Subject: [PATCH] Bug 14963: Set status=ORDERED for suggestions created from > existing record >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Sponsored-by: BULAC - http://www.bulac.fr/ > >Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr> > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > acqui/addorder.pl | 16 ++++++++++++---- > 1 file changed, 12 insertions(+), 4 deletions(-) > >diff --git a/acqui/addorder.pl b/acqui/addorder.pl >index 2c269e01ed..9ff4e79604 100755 >--- a/acqui/addorder.pl >+++ b/acqui/addorder.pl >@@ -269,13 +269,21 @@ if ( $basket->{is_standing} || $orderinfo->{quantity} ne '0' ) { > > # create the record in catalogue, with framework '' > my ($biblionumber,$bibitemnum) = AddBiblio($record,''); >- # change suggestion status if applicable >- if ($$orderinfo{suggestionid}) { >- ModSuggestion( {suggestionid=>$$orderinfo{suggestionid}, STATUS=>'ORDERED', biblionumber=>$biblionumber} ); >- } >+ > $orderinfo->{biblionumber}=$biblionumber; > } > >+ # change suggestion status if applicable >+ if ( $orderinfo->{suggestionid} ) { >+ ModSuggestion( >+ { >+ suggestionid => $orderinfo->{suggestionid}, >+ biblionumber => $orderinfo->{biblionumber}, >+ STATUS => 'ORDERED', >+ } >+ ); >+ } >+ > $orderinfo->{unitprice} = $orderinfo->{ecost} if not defined $orderinfo->{unitprice} or $orderinfo->{unitprice} eq ''; > > $orderinfo = C4::Acquisition::populate_order_with_prices( >-- >2.11.0
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 14963
:
95170
|
95173
|
95174
|
95175
|
95195
|
95196
|
95197
|
95198
|
95200
|
95201
|
95202
|
95203
|
95204
|
95205
|
95206
|
95207
|
96322
| 96323 |
96324