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:
parent
d34fae9499
commit
632e2ad51d
1 changed files with 1 additions and 1 deletions
|
@ -264,7 +264,7 @@ sub ReopenBasket {
|
||||||
UPDATE aqorders
|
UPDATE aqorders
|
||||||
SET orderstatus = 'new'
|
SET orderstatus = 'new'
|
||||||
WHERE basketno = ?
|
WHERE basketno = ?
|
||||||
AND orderstatus != 'complete'
|
AND orderstatus NOT IN ( 'complete', 'cancelled' )
|
||||||
}, {}, $basketno);
|
}, {}, $basketno);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue