Bug 12896: Move the bookseller-related code into Koha::Acquisition::Bookseller
authorJonathan Druart <jonathan.druart@biblibre.com>
Tue, 9 Sep 2014 13:56:56 +0000 (15:56 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Wed, 31 Dec 2014 17:15:58 +0000 (14:15 -0300)
commit469f36d38fe3ea82013d40b95892dfb7605b4e5f
tree3d2fb7c7d51b1bcf08358e84c338fdc0783f031e
parentba2527310866958635d807880d07d8f1b3cb4d0a
Bug 12896: Move the bookseller-related code into Koha::Acquisition::Bookseller

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::Bookseller module and put in
it the code from GetBookSeller and GetBookSellerFromId.

Test plan:
1/ Create a bookseller, modify it.
2/ Add contacts for this bookseller
3/ Create an order, receive it, transfer it
4/ 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>
32 files changed:
C4/Acquisition.pm
C4/Bookseller.pm
Koha/Acquisition/Bookseller.pm [new file with mode: 0644]
acqui/addorderiso2709.pl
acqui/basket.pl
acqui/basketgroup.pl
acqui/basketheader.pl
acqui/booksellers.pl
acqui/finishreceive.pl
acqui/invoice.pl
acqui/invoices.pl
acqui/modordernotes.pl
acqui/neworderbiblio.pl
acqui/neworderempty.pl
acqui/newordersubscription.pl
acqui/newordersuggestion.pl
acqui/orderreceive.pl
acqui/parcel.pl
acqui/parcels.pl
acqui/supplier.pl
acqui/transferorder.pl
acqui/uncertainprice.pl
acqui/z3950_search.pl
admin/aqcontract.pl
catalogue/moredetail.pl
serials/acqui-search-result.pl
serials/subscription-detail.pl
t/db_dependent/Acquisition.t
t/db_dependent/Acquisition/Invoices.t
t/db_dependent/Acquisition/OrderFromSubscription.t
t/db_dependent/Bookseller.t
t/db_dependent/Letters.t