]> git.koha-community.org Git - koha.git/commit
Bug 12830: Move the order-related code into Koha::Acquisition::Order
authorJonathan Druart <jonathan.druart@biblibre.com>
Wed, 27 Aug 2014 10:36:04 +0000 (12:36 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Tue, 28 Oct 2014 14:10:36 +0000 (11:10 -0300)
commit3d61550e22c36a02e88bfa1fbd3152b8bfc69d11
treea02bb5f85dcf5b4e3a5745e08ca99361cfa36b89
parenta781391a95cbcd15ed694c4ac0c88d25d9ee0006
Bug 12830: Move the order-related code into Koha::Acquisition::Order

The C4::Acquisition module should be exploded in order to add
readability and maintainability to this part of the code.

This patch is a POC, it introduces a new Koha::Acquisition::Order module and put in
it the code from NewOrder and NewOrderItem.

Test plan:
1/ Create an order, modify it, receive it, cancel the receipt.
2/ Launch the prove command on all unit tests modified by this patch and
verify that all pass.

Signed-off-by: Paola Rossi <paola.rossi@cineca.it>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
17 files changed:
C4/Acquisition.pm
Koha/Acquisition/Order.pm [new file with mode: 0644]
acqui/addorder.pl
acqui/addorderiso2709.pl
acqui/finishreceive.pl
t/db_dependent/Acquisition.t
t/db_dependent/Acquisition/CancelReceipt.t
t/db_dependent/Acquisition/GetBasketsInfosByBookseller.t
t/db_dependent/Acquisition/GetOrdersByBiblionumber.t
t/db_dependent/Acquisition/Invoices.t
t/db_dependent/Acquisition/NewOrder.t
t/db_dependent/Acquisition/OrderFromSubscription.t
t/db_dependent/Acquisition/TransferOrder.t
t/db_dependent/Acquisition/close_reopen_basket.t
t/db_dependent/Bookseller.t
t/db_dependent/Budgets.t
t/db_dependent/Letters.t