[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
Fri Oct 13 09:24:15 CEST 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28224
Jonathan Druart <jonathan.druart+koha at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|Signed Off |In Discussion
--- Comment #8 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
With the following lines in IntranetUserJS, whoever can set the values they
want in whichever date inputs:
const OrderSearchFromDate = 3;
if ( $("body").attr("id") == "acq_histsearch" ) {
let now = dayjs();
let from = now.subtract(OrderSearchFromDate, 'day').format("YYYY-MM-DD");
$("#from").val(from);
}
Don't you think it's preferable to advertise this solution instead of creating
one pref per need?
Switching to in discussion.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list