Feature: A note and the certificate with a sickness report 

Description 

The dialog Report sick takes two optional additions:

  • Note for HR, a hint such as how the employee can be reached. Only the employee and HR read and change it; the form asks not to enter a diagnosis. Managers, colleagues, notifications and events never carry it.
  • Upload certificate, the medical certificate the employee already has. It is recorded for the reported days, or for the first day of an open-ended report.

createSicknessReport accepts note (at most 500 characters) and certificateAttachmentId (an unused upload of purpose sicknessCertificate); updateSicknessReport accepts note. The sickness report answers note to the employee and HR only.

Screen forms gained the field type file, which uploads the chosen file at once and sends the ID of the upload.

Impact 

The column sickness_report.note is added by a migration. Existing reports have no note.