.. include:: /Includes.rst.txt .. _feature-1791270501: ========================================== Feature: Import punches from a spreadsheet ========================================== Description =========== HR imports clock-in, clock-out and breaks from a CSV or XLSX file with ``createPunchImport`` and downloads a template in their language with ``getPunchImportTemplate``. A worker checks every row like a punch and ``getPunchImport`` reports it as ``created``, ``duplicate`` or ``rejected`` with a reason. Local times are read in the company's time zone, a clock-out before the clock-in belongs to the next day, and an ambiguous time of the autumn clock change needs an offset. A dry run reports the same and keeps nothing; a real run records the punches with source ``import``, recalculates their days and informs HR with ``time.punchImportFinished``. Repeating a file creates nothing new. The page :guilabel:`Administration > Import punches` offers it. Impact ====== The migration adds the table ``punch_import``. The employee file reader takes a row limit, so this import allows 10000 rows while the employee import keeps 5000. .. index:: API, Frontend, Database, package:adsum-attendance