Bug 13726: Make Koha::Acq::Bookseller using Koha::Object
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 17 Feb 2015 13:37:10 +0000 (14:37 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 30 Dec 2016 11:54:32 +0000 (11:54 +0000)
commit5c0dfe852396f6391ad1b9873eebed7fb8134437
tree0918464a6b2cb25c7c4feb08049c076a3d79b2b7
parentaf171f9b21da8fa1c22754caa541e826ffeee529
Bug 13726: Make Koha::Acq::Bookseller using Koha::Object

This patch create a Koha::Acquisition::Booksellers module and
Koha::Acquisition::Bookseller::Contract[s] modules.

All code in the acquisition module is adapted to use the CRUD methods of
Koha::Object[s].
The former C4 routines are removed.

Test plan:
Since a lot of files are impacted by this patch, try a complete
acquisition workflow and try to catch errors.
Be focused on bookseller and bookseller' contacts data.

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
57 files changed:
C4/Acquisition.pm
C4/Bookseller.pm
C4/Bookseller/Contact.pm [deleted file]
Koha/Acquisition/Bookseller.pm
Koha/Acquisition/Bookseller/Contact.pm [new file with mode: 0644]
Koha/Acquisition/Bookseller/Contacts.pm [new file with mode: 0644]
Koha/Acquisition/Booksellers.pm [new file with mode: 0644]
Koha/Object.pm
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/pdfformat/layout2pages.pm
acqui/pdfformat/layout2pagesde.pm
acqui/pdfformat/layout3pages.pm
acqui/pdfformat/layout3pagesfr.pm
acqui/supplier.pl
acqui/transferorder.pl
acqui/uncertainprice.pl
acqui/updatesupplier.pl
acqui/z3950_search.pl
admin/aqcontract.pl
admin/currency.pl
catalogue/moredetail.pl
serials/acqui-search-result.pl
serials/subscription-detail.pl
t/Prices.t
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/OrderUsers.t
t/db_dependent/Acquisition/StandingOrders.t
t/db_dependent/Acquisition/TransferOrder.t
t/db_dependent/Acquisition/close_reopen_basket.t
t/db_dependent/AdditionalField.t
t/db_dependent/Bookseller.t
t/db_dependent/Budgets.t
t/db_dependent/Contract.t
t/db_dependent/Letters.t
t/db_dependent/Serials.t
t/db_dependent/Serials/Claims.t