[Koha-patches] [PATCH 3/3] Bug 13993 - (3) Transfer order leaves incorrect orderstatus

Indranil Das Gupta idgbpo at gmail.com
Sun May 10 17:27:26 CEST 2015


From: Amit Gupta <amit.gupta at informaticsglobal.com>

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 at gmail.com>

Signed-off-by: Indranil Das Gupta (L2C2 Technologies) <indradg at gmail.com>
---
 C4/Acquisition.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/C4/Acquisition.pm b/C4/Acquisition.pm
index 83ec911..063b353 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



More information about the Koha-patches mailing list