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)
committerMatt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Mon, 15 May 2023 12:06:25 +0000 (12:06 +0000)
commitc48087b551e9db34ea503c3ea7af7f0490fcb83a
treecbdabb6a2a1b457679d7012cb8870675752b2c8c
parent59a1e4b9fb3fbdac289dab1031d3dbc3648ebed0
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>
(cherry picked from commit 64c4f115cde75c48f71cfd0d7bdb220f48212daf)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Koha/Acquisition/Orders.pm
t/db_dependent/Koha/Acquisition/Order.t