]> git.koha-community.org Git - koha.git/commit
Bug 11744: Cancel a receipt does not delete items created on receiving
authorJonathan Druart <jonathan.druart@biblibre.com>
Wed, 19 Feb 2014 12:39:39 +0000 (13:39 +0100)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Mon, 14 Jul 2014 14:17:34 +0000 (11:17 -0300)
commit6803dc6bf59cfb4cb6e733d221739da65cf59cc0
tree247d60fb75d57e4f1ec42e815633e987996fc888
parent10689f2a9b9c4108c5b3998618afbdc3a8380a0d
Bug 11744: Cancel a receipt does not delete items created on receiving

If items is created on receiving, cancel a receipt should delete them.
The code only manage the case if the order is a child of another order
(partial).

To reproduce:
1/ Set AcqCreateItem to receiving
2/ Order one or more item(s)
3/ Receive the order and verify the item is created
4/ Cancel the receipt
5/ The item is not deleted

Test plan:
1/ Apply this patch and do again previous steps. The item should not be
deleted at step 5.
2/ Set AcqCreateItem to ordering and verify the item is not deleted.

Signed-off-by: marjorie barry-vila <marjorie.barry-vila@ccsr.qc.ca>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
C4/Acquisition.pm