wages/backend/src/lib
jtricerolph 2690ee149f Switch syncActuals to timesheets endpoint — PBI-matched method
Uses /api/v2/timesheets/on/{date} per day (no location param), expands
nested shifts[], skips leave (leave_request_id!=null), and post-filters
to this hotel's departments via location_id match on the departments
list. This mirrors exactly what the FD's Power BI query does and should
give the correct £51k timesheet figure for June.

Also simplifies compareEndpoints to two variants: A (old shifts method)
vs B (new timesheets method) so the discrepancy is immediately visible.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-23 14:03:43 +00:00
..
scheduler.js Initial scaffold: wages app 2026-07-23 09:03:52 +00:00
workforce.js Switch syncActuals to timesheets endpoint — PBI-matched method 2026-07-23 14:03:43 +00:00