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

--- Comment #61 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 203163
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=203163&action=edit
Bug 42310: (QA follow-up) Add closed_dates_in_range to Koha::Calendar

Introduces a public Koha::Calendar->closed_dates_in_range($from_dt,
$to_dt) method that returns an arrayref of ISO date strings representing
every closed day in the inclusive range, honouring weekly, annual
repeating, single and exception (open-override) closures.

This replaces callers that were reaching into Koha::Calendar private
state (_holidays, weekly_closed_days, day_month_closed_days) to
reconstruct the same logic. A follow-up under Bug 42206 converts the
REST controller; further callers can be migrated incrementally.

Test plan:
1. prove t/db_dependent/Koha/Calendar.t
2. Verify the new 'closed_dates_in_range' subtest passes

-- 
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