Koha/t/db_dependent/Acquisition
Jonathan Druart 55ca3c5581 Bug 12557: Add a way to revert the changes made on items on receving
Bug 8307 introduces the AcqItemSetSubfieldsWhenReceived pref.
You can now update an item field on receiving (if you create items on
ordering).
But if the receipt is cancel, there is no way to revert these changes.

This patch adds a new pref AcqItemSetSubfieldsWhenReceiptIsCancelled to
allow to revert changes previously done on receiving

Test plan:
0/ Set the AcqCreateItems to 'ordering'
1/ Fill AcqItemSetSubfieldsWhenReceived with o=1 (UNIMARC) or 7=1
(MARC21).
2/ Fill AcqItemSetSubfieldsWhenReceiptIsCancelled with o=2 (UNIMARC) or
7=2 (MARC21)
3/ Create an order with some items
4/ Receive the order and verify the notforloan value is set to 1
5/ Cancel the receipt and verify the notforloan value is set to 2

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
2014-09-09 10:10:07 -03:00
..
CancelReceipt.t Bug 12557: Add a way to revert the changes made on items on receving 2014-09-09 10:10:07 -03:00
close_reopen_basket.t Bug 5336: (follow-up) use understandable codes rather than magic numbers for orderstatus 2013-10-22 13:29:23 +00:00
GetBasketsInfosByBookseller.t Bug 11243: UT: unit tests for GetBasketsInfosByBookseller 2014-04-20 15:19:17 +00:00
GetOrdersByBiblionumber.t Bug 10575 : GetOrdersByBiblionumber.t needs a database transaction 2013-07-15 16:20:53 +00:00
Invoices.t Bug 7288: (follow-up) add unit test for is_linked_to_subscriptions flag 2014-04-21 05:16:29 +00:00
OrderFromSubscription.t Bug 12482: removing the use of the module C4::SQLHelper.pm, it is replaced by DBIx::Class 2014-07-03 14:24:58 -03:00
TransferOrder.t Bug 12493: (followup) remove unnecessary output message 2014-07-30 10:43:01 -03:00