Koha/acqui
Jonathan Druart 3aeb1fc7e8 Bug 19256: Make Koha::Acq::Order using Koha::Object
At the moment we have 2 different modules for acquisition orders:
Koha::Tmp::Order[s] and Koha::Acquisition::Order
The later has been added before the creation of Koha::Object.
Koha::Tmp::Order[s] has been created to make the TT syntax for notices
works with acquisition order data.

This patch removes the temporary packages Koha::Tmp::Order[s] and adapt
the code of Koha::Acquisition::Order[s] to be based on Koha::Object[s].

It also overloads Koha::Object->new to add the trick that was done in
Koha::Acquisition::Order->insert. This is needed because acqui/addorder.pl
is called from several places and CGI->Vars is used to retrieved order's
attributes (and so much more). To avoid regression, the easiest (but not
cleanest) way to do is to filter on aqorders column's names.
This is *not* a pattern to follow!

Test plan:
Create basket and add orders from different ways, then continue a whole
acquisition process

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2017-09-07 15:03:04 -03:00
..
pdfformat
acqui-home.pl Bug 17829: Move GetMember to Koha::Patron 2017-07-10 13:14:19 -03:00
add_user_search.pl
addorder.pl Bug 19256: Make Koha::Acq::Order using Koha::Object 2017-09-07 15:03:04 -03:00
addorderiso2709.pl Bug 19256: Make Koha::Acq::Order using Koha::Object 2017-09-07 15:03:04 -03:00
ajax-getauthvaluedropbox.pl
basket.pl Bug 19257: Prevent warn when reopening a basket 2017-09-07 14:38:22 -03:00
basketgroup.pl Bug 18262: Koha::Biblio - Remove GetBiblioData - part 1 2017-07-14 12:22:23 -03:00
basketheader.pl Bug 19130: (followup) Controller scripts should preserve behaviour 2017-08-25 11:53:44 -03:00
booksellers.pl Bug 19130: (followup) Controller scripts should preserve behaviour 2017-08-25 11:53:44 -03:00
cancelorder.pl
check_budget_total.pl
check_duplicate_barcode_ajax.pl
check_uniqueness.pl
edi_ean.pl
edifactmsgs.pl
edimsg.pl
finishreceive.pl Bug 19256: Make Koha::Acq::Order using Koha::Object 2017-09-07 15:03:04 -03:00
histsearch.pl
invoice-files.pl
invoice.pl Bug 18471 - Receiving order with unitprice greater than 1000 processing incorrectly 2017-04-28 06:27:51 -04:00
invoices.pl Bug 19130: (followup) Controller scripts should preserve behaviour 2017-08-25 11:53:44 -03:00
lateorders-export.pl
lateorders.pl
modordernotes.pl
neworderbiblio.pl Bug 17829: Move GetMember to Koha::Patron 2017-07-10 13:14:19 -03:00
neworderempty.pl Bug 17829: Move GetMember to Koha::Patron 2017-07-10 13:14:19 -03:00
newordersubscription.pl
newordersuggestion.pl
ordered.pl
orderreceive.pl Bug 19194: Check itemtype is defined when receiving an order 2017-09-01 10:45:36 -03:00
parcel.pl Bug 18259: [QA Follow-up] Replace variable name 2017-07-14 12:02:30 -03:00
parcels.pl Bug 18432: code comments assume male gender 2017-04-21 10:56:43 -04:00
spent.pl
supplier.pl
transferorder.pl Bug 19130: (followup) Controller scripts should preserve behaviour 2017-08-25 11:53:44 -03:00
uncertainprice.pl Bug 11122 - publisher code and publication year not fetched in acq orders 2017-06-05 11:48:16 -03:00
updatesupplier.pl Bug 18716: Remove CGI::param warns from updatesupplier.pl 2017-06-09 11:57:00 -03:00
z3950_search.pl