[Koha-bugs] [Bug 28224] Make date range for order search configurable

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sat Sep 16 03:37:28 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28224

David Nind <david at davidnind.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #155697|0                           |1
        is obsolete|                            |

--- Comment #2 from David Nind <david at davidnind.com> ---
Created attachment 155727
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=155727&action=edit
Bug 28224: Make date range for order search configurable

When searching orders in the acquisitions module the search
is automatically limited to orders created within the last year.

In some circumstances, like when testing migration data or
when working with standing orders, this can get annoying and
is not very useful.

This patch adds the OrderSearchFromDate system preference to
make this date configurable.

To test:
* Go to acquisitions > order search > config icon > advanced search
* Verify the From date is from one year ago
* Apply patch and run database update
* Verify the date is still the same
* Update the OrderSearchFromDate system preference to x days ago
  Example: 3
* Verify the date on the search form changes accordingly
* Add a basket with an order line
* Add another basket, add an order line using "From existing orders (copy)"
* Verify the date on the form is calculated correctly to the pref setting
* Copy your existing order
* Use the order search and send it empty - your 2 order lines should be shown

To test the search itself, you need baskets with different creation dates,
as the search searches aqbasket.creationdate.
  UPDATE aqbasket SET creationdate = "YYYY-MM-DD" WHERE basketno = X;

* Verify the search form and the top bar search respect the new from setting.

Sponsored by: The Research University in the Helmholtz Association (KIT)

Signed-off-by: David Nind <david at davidnind.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list