.. include:: /Includes.rst.txt .. _bugfix-1793192913: ============================================================ Bugfix: Show a school day as a school day, not as an absence ============================================================ Description =========== A school day on which nothing was worked showed as "Absent" in the day list, the month grid and the reports, although the apprentice was at school: its target after the credit was either a remainder or zero, and a day without time worked was an absence either way. A day that carries a school credit and has no time worked now has the status ``school`` (in German "Berufsschule"), both halves of it are the grid code ``school``, and the remainder, if any, stays in the delta as minus time. A school day with time worked is classified by the time worked against the target left, as before. The attendance rate of the dashboards does not expect work on a school day. The status and the code are in the contract of the attendance days, the grid and the filter of the days. Impact ====== Days get the new status when they are calculated next; ``app:attendance:recalculate-days`` recalculates the days before today on request. Clients that list the status or grid codes of the API have to accept ``school``. .. index:: API, Frontend, package:adsum-attendance, package:adsum-reporting