]> git.koha-community.org Git - koha.git/commit
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)
committerChris Cormack <chris@bigballofwax.co.nz>
Sat, 14 Feb 2015 07:26:53 +0000 (20:26 +1300)
commit0ddc368620bbb5e4b5246f2e2b9f7aa07b2f0d1f
tree5a5fd5b93f7cdbbdec91a044ecbec47ae107a734
parent7226f8ced30038d95d73e7389fedd6e76aff3c36
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>
(cherry picked from commit f19a1777a0847ce2dc10b7f259bf76fc2d382d19)
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Koha/Acquisition/Order.pm
t/db_dependent/Acquisition/CancelReceipt.t