Bug 13319: Fix Koha::Acq::Order should set parent_ordernumber
authorJonathan Druart <jonathan.druart@biblibre.com>
Fri, 14 Nov 2014 15:18:09 +0000 (16:18 +0100)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Tue, 10 Feb 2015 14:24:08 +0000 (11:24 -0300)
commitf19a1777a0847ce2dc10b7f259bf76fc2d382d19
treedb6b347294caca2573be7668b7028414efec439e
parentdc5b94486304fc5353640c0341cdfa11d3367fb2
Bug 13319: Fix Koha::Acq::Order should set parent_ordernumber

The tests highligh the problem: if the parent_ordernumber attribute is
not set on inserting an order, the object returned by the method does
not contain the value (undef).

Test plan:
Verify the tests are consistent and
    prove t/db_dependent/Acquisition/CancelReceipt.t
should return green.

You can also verify that receive partially an order and cancel the
receipt work as expected.

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>
Koha/Acquisition/Order.pm
t/db_dependent/Acquisition/CancelReceipt.t