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

--- Comment #22 from Paul Derscheid <[email protected]> ---
Testing notes

On ktd (dates relative to checkout day; bookable item, two patrons; renewals
allowed 2, renewal period 7). The booking picker currently allows starts from
tomorrow (+1) at the earliest, so all bookings below start at +1 or later and
every same-day checkout goes through the early-collection confirmation first.

1. Override sync: booking + -> +8, checked out with due +11 -> booking end
followed to +11.
2. Clash warning: bookings A (patron 1, +1 -> +8) and B (patron 2, +10 -> +14),
checkout to patron 1 with due +11 (inside B's window) -> BOOKED_DUE_DATE_CLASH
shown; after confirming, checkout used the requested date and booking A kept
its original end date.
3. Renewal, refusal: with B still active, the checkouts table refuses renewal
outright ("Item booked for another patron"), the calculated renewal date runs
into B.
4. Renewal, sync: after cancelling B, renewed via the checkouts table with an
explicit renewal due date -> checkout and booking end both moved to the
requested date, booking still issued.
5. On-site (follow-up): SpecifyDueDate off, booking +1 -> +8,
bookings_lead_period 5, on-site checkout today via the early-collection confirm
-> due end of today, not the booking end date.
6. Early collection with short override (follow-up): SpecifyDueDate on, booking
+3 -> +10 under the same lead period, checked out today with due +1, renewed to
+2 ->  booking issued with start pulled back to the checkout day and end
following the renewal; no inverted period.

Setup note for steps 5/6: place the bookings before setting
bookings_lead_period, otherwise the picker blocks the near-term start dates.
The rule is evaluated live at checkout time either way.

The Biblio::check_booking exemption only shows when the updated window no
longer overlaps the stored one, which the UI flows above never produce once the
start has been pulled back. That path is covered by the new Biblio.t and
Circulation.t tests.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to