.. include:: /Includes.rst.txt .. _feature-1791229910: ======================================== Feature: Import a roster from a template ======================================== Description =========== ``getRosterImportTemplate`` returns an XLSX template in the planner's language for at most 28 days or the week of ``weekOf``: a row per person the planner plans with personnel number and name, a column per date, public holidays and weekly days off filled in, and a second sheet with the model codes and the word for a day off. ``importRosterEntries`` reads it back as XLSX or CSV: a model code, ``off`` or ``frei`` per cell, an empty cell keeps the day. Every imported day becomes a draft, also next to a published entry, so a published plan never changes without publishing. The whole file is checked first and rejected with the row and date of every problem; ``dryRun`` only checks. The answer counts created, changed and unchanged days. The roster week offers the template and the import. Impact ====== New operations ``GET /roster-entries/import-template`` and ``POST /roster-entries/import``. The package ``web-vision/adsum-working-time`` now requires ``phpoffice/phpspreadsheet`` itself. .. index:: API, Frontend, package:adsum-working-time