Payroll

Payroll Module

The payroll module handles the entire pay process according to Swiss standards, from pay slips to employment certificates.

Main models

  • Employe — Full employee record (personal data, bank details, AHV)
  • FicheSalaire — Monthly pay slip with detailed line items
  • CertificatSalaire — Annual salary certificate (Swissdec form 11)
  • DeclarationCotisations — Quarterly AHV/BVG/UVG declarations
  • CertificatTravail — Employment certificate on departure

Features

  • Pay slips — Automatic deduction calculation:
  • AHV/IV/EO (5.3%)
  • Unemployment insurance ALV (1.1%)
  • BVG (2nd pillar, according to scale)
  • UVG (accident insurance)
  • Withholding tax (if applicable)
  • Salary certificate — Official form 11, Swissdec compliant
  • Contribution declarations — Aggregation by fund
  • Employment certificate — Generation with standard wording
  • Professional PDFs — All documents as polished PDFs
  • Swiss formatting — Amounts with apostrophe (1'234.56 CHF)

PDF generation

Each document has a dedicated PDF service:

Document Service
Pay slip pdf_fiche_salaire.py
Salary certificate pdf_certificat_salaire.py
Contribution declaration pdf_declaration.py
Employment certificate pdf_certificat_travail.py

Styles are shared via pdf_styles.py (colours, fonts, logo).

Interactions

  • Accounting — Payroll generates expense journal entries
  • Documents — Pay slip PDFs are stored in MinIO
  • Analytics — Payroll costs, trends, breakdown by department
  • Import/Export — Export payroll data as CSV
On this page