Bug 14092: Add 'any status' option to acq order search form
authorKatrin Fischer <katrin.fischer@bsz-bw.de>
Fri, 15 Sep 2023 17:09:00 +0000 (17:09 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 20 Oct 2023 19:31:15 +0000 (16:31 -0300)
commite922ac237c537de08740a01b23f9c5e58933e53a
treee386f7c7894c3f013f638d827a7435018575b13d
parentbcaaffa838c3276b8590863c826cb133dae03258
Bug 14092: Add 'any status' option to acq order search form

Sometimes it's really helpful to see all orders for a basket, a
vendor or a standing order, including the cancelled ones.
Currently this is not possible, as we have search options for
every single status and one for "any except cancelled",
but no "Any status" option.

This patch adds the "Any status" option. The sometimes
appearing empty entry is updated to "Any status except cancelled"
as this is what it does.

Testing data:
* Requires multiple order lines with different order status
* Must include at least one order line with status 'cancelled'

To test:
* Go to acquisitions
* Open the advanced search page from the top search options:
  Order search > config icon > Advanced search link
* Verify the status pull down looks as described above
* Apply patch
* Verify there is now an "Any status" option in the pull down
* Try searches for different status, including "Any status"
* Verify the results are as expected
* Create a new basket
* Create an order line by 'From an existing order (copy)'
* Verify the search form there also works as expected

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
acqui/duplicate_orders.pl
acqui/histsearch.pl
koha-tmpl/intranet-tmpl/prog/en/includes/filter-orders.inc