Bug 33653: Never consider received orders as late
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 3 May 2023 13:18:13 +0000 (15:18 +0200)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 9 May 2023 13:58:07 +0000 (10:58 -0300)
commit64c4f115cde75c48f71cfd0d7bdb220f48212daf
treedfef57ccfba8d3b16ecfefaf752d96c2585fe822
parentf7b1c85f736dad33b9e67fce2ac2219716c2b704
Bug 33653: Never consider received orders as late

We should not list received orders on the late orders page.

Test plan:
* Create a basket
* Create a normal order (not from a subscription, no standing order)
* Leave estimated delivery date empty
* Close the basket
* Create a new invoice and receive the order line
* Go to acq > late orders
* Verify the order is not in the list
* Set filter for 'To' date into the future, i.e. 01/01/2025
=> Without this patch the order shows up
=> With this patch applied the received order does not show up

Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/Acquisition/Orders.pm
t/db_dependent/Koha/Acquisition/Order.t