api.routes.internal.paie

Payroll (“Paie”) support for RewakeApp: the timesheet PDF and the emails (reminders, the month sent to the accountant). The app owns the data and the rules; these routes only render and send.

Attributes

Classes

Functions

timesheet(payload) → fastapi.responses.Response

The month's timesheet in the accountant's Excel layout, as a PDF.

email(payload) → dict[str, bool]

Package Contents

api.routes.internal.paie.logger
api.routes.internal.paie.router
api.routes.internal.paie.SENDER_DOMAIN = '@rewake.fr'
api.routes.internal.paie.MAX_ATTACHMENTS_BYTES = 20971520
class api.routes.internal.paie.TimesheetRow

Bases: pydantic.BaseModel

kind: str
weekday: str = ''
day: int | None = None
week: int | None = None
worked: str = ''
non_worked: str = ''
motif: str = ''
hs125: str = ''
hs150: str = ''
class api.routes.internal.paie.TimesheetTotals

Bases: pydantic.BaseModel

worked: str = ''
non_worked: str = ''
hs125: str = ''
hs150: str = ''
class api.routes.internal.paie.TimesheetIn

Bases: pydantic.BaseModel

manager: str
employee: str
contract: str
month_label: str
place: str
date: str
rows: list[TimesheetRow]
totals: TimesheetTotals
api.routes.internal.paie.timesheet(payload: TimesheetIn) → fastapi.responses.Response

The month’s timesheet in the accountant’s Excel layout, as a PDF.

class api.routes.internal.paie.Attachment

Bases: pydantic.BaseModel

filename: str
content_base64: str
class api.routes.internal.paie.EmailIn

Bases: pydantic.BaseModel

sender: str
to: list[str]
cc: list[str]
subject: str
body: str
attachments: list[Attachment]
api.routes.internal.paie.email(payload: EmailIn) → dict[str, bool]