.. include:: /Includes.rst.txt .. _feature-1791240550: =================================================== Feature: Give a working-time model an annual target =================================================== Description =========== A working-time model may carry ``annualTargetSeconds`` with ``referenceYearStartMonth`` and ``targetDistribution`` (``plan`` or ``even``). For a reference year, ``getWorkingTimeModel`` reports ``plannedAnnualSeconds``, the row targets summed over every date, and ``annualMismatchSeconds`` against the annual target; ``listWorkingTimeModels`` with ``annualMismatch=true`` lists the models whose plan misses it. Impact ====== New columns ``annual_target_seconds``, ``reference_year_start_month`` and ``target_distribution`` in ``working_time_model_version``. An even distribution without an annual target is rejected with ``422``. .. index:: API, Database, Frontend, package:adsum-working-time