Koha/acqui
Jonathan Druart d2c2e7740f
Bug 24161: Keep tracks of late orders claims
So far we only record the number of claims and the date of the last
claim, in the aqorders table.
To keep track of the different claim dates, this patchset is going to
make the following DB changes:
  * Create a new table 'aqorders_claims' (id, ordernumber, claimed_on)
  * Remove the two columns from the aqorders table: claims_count and
  claimed_date

This will allow to display the different claim dates where needed: on
the late orders page, and the basket page.

To avoid additional fetches of Koha::Acquisition::Orders, GetLateOrders
has been moved to Koha::Acquisition::Orders->filter_by_late
That way we are going to add consistency, robustness, and cover the
feature with new tests.

Test plan:
0/ Create a bunch of new orders. Make sure they are from different
vendor (with different delivery time).
1/ Go to the late orders page and claim some orders
2/ Reclaim some of those orders
3/ Confirm that you can see the different claim dates for a given orders
(the history of the late orders claims is kept and displayed)

4/ Bonus point: Regression tests:

a. Modify the closedate of the basket in the database. That
will allow you to make sure the patch set did not introduce regressions.
It would be good to test the different filters on the late orders page:
 * delay
 * Estimated delivery date from/to
 * Vendor

b. Confirm that the subtotal and the total values from the late orders
page is correct.

c. Test the update database entry: do not apply these patches, claims
some orders against master. Apply the patch, execute the update DB entry
then confirm that the number of claims is correct (note that the dates
will not as it is not possible to guess them).

QA note: the branchcode parameter has been removed from filter_by_late.
At first glance it seems that it was not used.

Sponsored-by: Cork Institute of Technology
Signed-off-by: Angela O'Connor Desmond <angela.oconnordesmond@staff.ittralee.ie>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-05-04 09:44:44 +01:00
..
acqui-home.pl
add_user_search.pl
addorder.pl Bug 24347: (follow-up) Remove custom catalog search from acquisitions 2020-01-30 10:59:27 +00:00
addorderiso2709.pl Bug 23463: Replace AddItem calls with Koha::Item->store 2020-03-23 09:26:26 +00:00
ajax-getauthvaluedropbox.pl Bug 22391: Remove group by clause in ajax-getauthvaluedropbox.pl 2019-02-21 16:48:28 +00:00
basket.pl Bug 24161: Keep tracks of late orders claims 2020-05-04 09:44:44 +01:00
basketgroup.pl Bug 9993: On editing basket group delivery place resets to logged in branch 2020-02-04 10:21:38 +00:00
basketheader.pl Bug 23863: Editing a basket clears create_items value 2019-10-24 10:56:01 +01:00
booksellers.pl Bug 19809: Re-allow to call Koha::Objects::find in list context 2020-01-23 10:27:28 +00:00
cancelorder.pl Bug 13208: [FOLLOW-UP] Creating and implementing new Koha::Acquisition::Basket[s] modules 2017-10-09 14:00:58 -03:00
check_budget_total.pl Bug 19993: use Modern::Perl in Acquisition perl scripts 2018-02-05 09:45:47 -03:00
check_uniqueness.pl Bug 23463: Replace SearchItemsByField by SearchItems 2020-03-23 09:26:09 +00:00
duplicate_orders.pl Bug 24733: created_by param should be an arrayref 2020-02-26 20:38:46 +00:00
edi_ean.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
edifactmsgs.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
edimsg.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
finishreceive.pl Bug 23596: Edit suggestion's reason when receiving 2020-04-14 16:30:16 +01:00
histsearch.pl Bug 14669: Add search option for managing library to orders search 2019-10-08 14:04:48 +01:00
invoice-files.pl
invoice.pl Bug 11514: Untranslatable "Uncertain" text in acq 2019-11-06 16:54:42 +00:00
invoices.pl Bug 19993: use Modern::Perl in Acquisition perl scripts 2018-02-05 09:45:47 -03:00
lateorders-export.pl Bug 24161: Keep tracks of late orders claims 2020-05-04 09:44:44 +01:00
lateorders.pl Bug 24161: Keep tracks of late orders claims 2020-05-04 09:44:44 +01:00
modordernotes.pl
neworderempty.pl Bug 20728: Replace the calls by their Koha::Acq::Orders->search equivalent 2020-04-14 16:39:06 +01:00
newordersubscription.pl
newordersuggestion.pl Bug 4833: (QA follow-up) Add budgetname to SearchSuggestion 2019-05-15 16:46:47 +00:00
ordered.pl Bug 25223: Make join of aqbasket and aqorders explicit 2020-04-22 09:29:13 +01:00
orderreceive.pl Bug 23596: Edit suggestion's reason when receiving 2020-04-14 16:30:16 +01:00
parcel.pl Bug 24672: (bug 24430 follow-up) Do not get active orders on deleted biblio record 2020-03-24 09:31:34 +00:00
parcels.pl
showorder.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
spent.pl Bug 23397: (follow-up) Split and display itemtypes 2019-09-06 13:17:46 +01:00
supplier.pl Bug 19993: use Modern::Perl in Acquisition perl scripts 2018-02-05 09:45:47 -03:00
transferorder.pl
uncertainprice.pl Bug 18177: remove aqbooksellers.booksellerurl 2020-03-27 12:15:47 +00:00
updatesupplier.pl
z3950_search.pl Bug 21921: Add date publication year to biblio Z39.50 search form in acquisition 2020-02-17 13:44:34 +00:00