Bug 12557: UT: The item is not created
The UT was buggy. I have just fix that in another patch on bug 12555. Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
parent
55ca3c5581
commit
daede131e0
1 changed files with 1 additions and 0 deletions
|
@ -69,6 +69,7 @@ CancelReceipt($ordernumber);
|
|||
my $order = GetOrder( $ordernumber );
|
||||
is(scalar GetItemnumbersFromOrder($order->{ordernumber}), 0, "Create items on receiving: 0 item exist after cancelling a receipt");
|
||||
|
||||
$itemnumber = AddItem({}, $biblionumber);
|
||||
t::lib::Mocks::mock_preference('AcqCreateItem', 'ordering');
|
||||
t::lib::Mocks::mock_preference('AcqItemSetSubfieldsWhenReceiptIsCancelled', '7=9'); # notforloan is mapped with 952$7
|
||||
( undef, $ordernumber ) = C4::Acquisition::NewOrder(
|
||||
|
|
Loading…
Reference in a new issue