[Koha-bugs] [Bug 30362] GetSoonestRenewDate is technically wrong when NoRenewalBeforePrecision set to date soonest renewal is today

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jul 20 03:48:28 CEST 2023


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

David Cook <dcook at prosentient.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dcook at prosentient.com.au

--- Comment #2 from David Cook <dcook at prosentient.com.au> ---
Yeah, this is driving me crazy.

Consider the following scenario:

No renew before = 4 days

Due Date = 2023-07-24 23:59:59

Now = 2023-07-20 11:43:00

Soonest Exact Precision = 2023-07-20 23:59:59

Soonest Date Precision = 2023-07-20 00:00:00

--

So "Now" is only < "Soonest" when using "Exact Precision". It's almost always
going to be > "Soonest" when using "Date Precision".

I reckon if we have a "No renew before", then we should respect whatever value
is produced by that algorithm.

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


More information about the Koha-bugs mailing list