Bug 11549: make it possible to receive and cancel the receipt of a transferred order
authorJonathan Druart <jonathan.druart@biblibre.com>
Tue, 14 Jan 2014 11:06:34 +0000 (12:06 +0100)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 23 Jan 2014 16:18:22 +0000 (16:18 +0000)
commit6d63881e0447bae83d21b6f082ee1549277c6071
treed08336a13edbaf00d78b45d245608df37cebddc1
parente974b554a5cc08413e66c43072e857f3d2b5458e
Bug 11549: make it possible to receive and cancel the receipt of a transferred order

To reproduce the issue:
- transfer an order from a basket to another. Note the previous
ordernumber (X) and the new one (Y).
- receive the order
- cancel the receipt
- verify the order has been deleted:
select count(*) from aqorders where ordernumber=Y;
select * from aqorders_transfers where ordernumber_from = X;
The value for ordernumber_to is null.

To test this patch:
- apply this patch
- transfer an order from a basket to another
- receive the order
- cancel the receipt
- verify the order still exist in the basket where the transfer has been
  done.

Signed-off-by: Sonia BOUIS <sonia.bouis@univ-lyon3.fr>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
C4/Acquisition.pm