Bugzilla – Attachment 39537 Details for
Bug 13993
Set correct orderstatus when order is transferred from one vendor to another
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13993 - (3) Transfer order leaves incorrect orderstatus
Bug-13993---3-Transfer-order-leaves-incorrect-orde.patch (text/plain), 1.46 KB, created by
Jonathan Druart
on 2015-05-26 16:13:05 UTC
(
hide
)
Description:
Bug 13993 - (3) Transfer order leaves incorrect orderstatus
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2015-05-26 16:13:05 UTC
Size:
1.46 KB
patch
obsolete
>From 0bf2fd355736396af92804e48a505d5121a31107 Mon Sep 17 00:00:00 2001 >From: Amit Gupta <amit.gupta@informaticsglobal.com> >Date: Tue, 14 Apr 2015 14:07:07 +0530 >Subject: [PATCH] Bug 13993 - (3) Transfer order leaves incorrect orderstatus > >11) Apply patch (3) >12) Log in to staff client >13) Acquisitions >14) Create a basket for two different vendors >15) Place an order in one vendor's basket. >16) Transfer the order to the other vendor's basket. >17) prove -v t/db_dependent/Acquisition/TransferOrder.t > -- This should succeed without intervention. >18) Run koha qa test tools for the last 3 commits. > >Signed-off-by: Indranil Das Gupta <indradg@gmail.com> > >Signed-off-by: Indranil Das Gupta (L2C2 Technologies) <indradg@gmail.com> > >Signed-off-by: Jonathan Druart <jonathan.druart@koha-community.org> >--- > C4/Acquisition.pm | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/C4/Acquisition.pm b/C4/Acquisition.pm >index 01b815a..d1d42e0 100644 >--- a/C4/Acquisition.pm >+++ b/C4/Acquisition.pm >@@ -1862,11 +1862,11 @@ sub TransferOrder { > > $query = q{ > UPDATE aqorders >- SET datecancellationprinted = CAST(NOW() AS date) >+ SET datecancellationprinted = CAST(NOW() AS date), orderstatus = ? > WHERE ordernumber = ? > }; > $sth = $dbh->prepare($query); >- $rv = $sth->execute($ordernumber); >+ $rv = $sth->execute('cancelled', $ordernumber); > > delete $order->{'ordernumber'}; > delete $order->{parent_ordernumber}; >-- >2.1.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 13993
:
37797
|
37798
|
37957
|
37958
|
37959
|
37977
|
37978
|
37979
|
38668
|
38669
|
38670
|
38674
|
38675
|
38676
|
39017
|
39018
|
39019
|
39535
|
39536
| 39537 |
39538