[Koha-patches] [PATCH 2/3] Bug 13993 - (2) Correct poorly transferred orders

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


From: Mark Tompsett <mtompset at hotmail.com>

Added Atomic Update to fix poorly transferred orders

TEST PLAN
---------
8) Apply patch (2)
9) Run the database updates
   $ ./installer/data/mysql/updatedatabase.pl
   -- This should run without error
10) prove -v t/db_dependent/Acquisition/TransferOrder.t
    -- This should fail, because the transfer function is still
       not fixed.

Signed-off-by: Indranil Das Gupta (L2C2 Technologies) <indradg at gmail.com>
---
 .../Bug-13993-Correct-OrderStatus-Of-Poorly-Transferred-Orders.sql     | 3 +++
 1 file changed, 3 insertions(+)
 create mode 100644 installer/data/mysql/atomicupdate/Bug-13993-Correct-OrderStatus-Of-Poorly-Transferred-Orders.sql

diff --git a/installer/data/mysql/atomicupdate/Bug-13993-Correct-OrderStatus-Of-Poorly-Transferred-Orders.sql b/installer/data/mysql/atomicupdate/Bug-13993-Correct-OrderStatus-Of-Poorly-Transferred-Orders.sql
new file mode 100644
index 0000000..0a05ae5
--- /dev/null
+++ b/installer/data/mysql/atomicupdate/Bug-13993-Correct-OrderStatus-Of-Poorly-Transferred-Orders.sql
@@ -0,0 +1,3 @@
+UPDATE aqorders SET orderstatus='cancelled'
+                WHERE (datecancellationprinted IS NOT NULL OR
+                       datecancellationprinted<>'0000-00-00');
-- 
1.9.1



More information about the Koha-patches mailing list