Bug 19120: Leave cancelled ordered items alone when reopening basket

TEST PLAN
---------
1) Apply first patch
2) prove t/db_dependent/Acquisition/close_reopen_basket.t
   -- FAILS
3) Apply this patch
4) prove t/db_dependent/Acquisition/close_reopen_basket.t
   -- SUCCESS!
5) run koha qa test tools

Followed test plan, patch worked as described
Signed-off-by: Alex Buckley <alexbuckley@catalyst.net.nz>

Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Mark Tompsett 2017-09-01 21:23:20 -04:00 committed by Jonathan Druart
parent d34fae9499
commit 632e2ad51d

View file

@ -264,7 +264,7 @@ sub ReopenBasket {
UPDATE aqorders
SET orderstatus = 'new'
WHERE basketno = ?
AND orderstatus != 'complete'
AND orderstatus NOT IN ( 'complete', 'cancelled' )
}, {}, $basketno);
return;
}