Oh OK so this is expected behavior. In production you’ll start / end work periods daily and it will work fine.
SambaPOS does not use exact date ranges. It finds the first work period that ends after start date. This is work period 1. And it finds second work period that started before end date. This is work period 2. The date range will be start date/time for wp1 and end date/time for wp2.
If we don’t do that yesterday’s tickets you’ve created after midnight will appear in today’s report.