Bugzilla – Attachment 37958 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 - Transfer order from one vendor to another vendor Previous orderstatus is not changed
Bug-13993---Transfer-order-from-one-vendor-to-anot.patch (text/plain), 1.42 KB, created by
Mark Tompsett
on 2015-04-16 12:59:20 UTC
(
hide
)
Description:
Bug 13993 - Transfer order from one vendor to another vendor Previous orderstatus is not changed
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2015-04-16 12:59:20 UTC
Size:
1.42 KB
patch
obsolete
>From 4e3bbbac9975841b922839eaacb2ca183d409964 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 - Transfer order from one vendor to another vendor > Previous orderstatus is not changed > >To Test: >1) Create a vendor for ex: A >2) Create a basket under vendor A >3) Create a order >4) Create a vendor for ex: B >5) Create a basket under vendor B >6) Search vendor A and basket/order >7) Click on Transfer link and choose the vendor and basket in which you want to transfer the order >8) Go to mysql prompt and see previous orderstatus. >For ex: >mysql> select orderstatus from aqorders where ordernumber = 2; >+-------------+ >| orderstatus | >+-------------+ >| cancelled | >+-------------+ >--- > C4/Acquisition.pm | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/C4/Acquisition.pm b/C4/Acquisition.pm >index 1b3047a..6191035 100644 >--- a/C4/Acquisition.pm >+++ b/C4/Acquisition.pm >@@ -1856,11 +1856,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}; >-- >1.9.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 13993
:
37797
|
37798
|
37957
|
37958
|
37959
|
37977
|
37978
|
37979
|
38668
|
38669
|
38670
|
38674
|
38675
|
38676
|
39017
|
39018
|
39019
|
39535
|
39536
|
39537
|
39538