API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen
Entity · monthly_closings

Monthly Closing Schema

Schema-ID
monthly_closing
Collection
monthly_closings
Permissions
  • Lezenmonthly_closing_view
  • Aanmakentime_account_close
  • Wijzigentime_account_close
  • Verwijderentime_account_close

Velden

Monthly Closing Schema

monthly_closings4 permissions

Periodenabschluss eines Zeitkontos mit Lock-Level

userIduuidvereist
accountIduuidvereist

Referenz auf time_account._id

yearintegervereist
2020 – 2100
monthintegervereist
1 – 12
lockLevelstringvereist
OPENCLOSEDEXPORTEDHARD_LOCKED
Default: "OPEN"read-only
closedAtdatetimeoptioneel
read-onlynullable
closedBystringoptioneel
max. 64 tekensread-onlynullable
payrollExportedAtdatetimeoptioneel
read-onlynullable
payrollExportRefstringoptioneel

Batch-ID / Referenz der Payroll-Schnittstelle (z.B. DATEV-Batch-Nr.)

max. 200 tekensread-onlynullable
summaryobjectoptioneel

Aggregat des Monats. Wird beim CLOSED-Übergang geschrieben und bei Ripple-Recalc aktualisiert.

read-onlynullable
sollMinutesintegeroptioneel
≥ 0Default: 0
actualMinutesintegeroptioneel
≥ 0Default: 0
deltaMinutesintegeroptioneel

Kombinierter Tagesdelta-Saldo (actual − soll) — Backwards-Compat. Ab ADR 0050a zerlegt in flexDeltaMinutes − shortfallMinutes + overtimeDeltaMinutes.

Default: 0
flexDeltaMinutesintegeroptioneel

Σ Mehrstunden innerhalb des Gleitzeitrahmens. Bestandteil der FLEX-Konto-Buchung. Siehe ADR 0050a.

≥ 0Default: 0
overtimeDeltaMinutesintegeroptioneel

Σ Stunden außerhalb des Gleitzeitrahmens (vor Multiplikator). Quelle für die OVERTIME-Konto-Buchung. Siehe ADR 0050a.

≥ 0Default: 0
overtimeCreditedMinutesintegeroptioneel

Tatsächlich auf das OVERTIME-Konto gebuchte Minuten (saldo-wirksam) = overtimeDeltaMinutes × outsideFlexMultiplier. Bei Approval-Mode (Phase 2): 0 wenn die Buchung PENDING ist; wird beim Approve auf den korrekten Wert gesetzt. Siehe ADR 0050a.

≥ 0Default: 0
overtimePendingMinutesintegeroptioneel

Auf Genehmigung wartende Minuten (Phase 2 ADR 0050a). Sind in `overtimeDeltaMinutes` enthalten, aber noch NICHT in `overtimeCreditedMinutes`. Werden beim Approve in overtimeCreditedMinutes überführt.

≥ 0Default: 0
shortfallMinutesintegeroptioneel

Σ Minus-Stunden des Monats. Wird vom flexDeltaMinutes abgezogen, bevor auf das FLEX-Konto gebucht wird. Siehe ADR 0050a.

≥ 0Default: 0
vacationDaysnumberoptioneel
≥ 0Default: 0
sickDaysnumberoptioneel
≥ 0Default: 0
holidayDaysnumberoptioneel
≥ 0Default: 0
balanceBeforeCloseintegeroptioneel
Default: 0
balanceAfterCloseintegeroptioneel
Default: 0
surchargeBreakdownobjectoptioneel
nullable
baseMinutesintegeroptioneel
≥ 0Default: 0
nightMinutesintegeroptioneel
≥ 0Default: 0
weekendMinutesintegeroptioneel
≥ 0Default: 0
holidayMinutesintegeroptioneel
≥ 0Default: 0
overtimeMinutesintegeroptioneel
≥ 0Default: 0
insideFlexWindowMinutesintegeroptioneel

Summe der Ist-Minuten innerhalb des Gleitzeitrahmens im Monat (nur bei FLEXTIME mit gesetztem flexWindow).

≥ 0Default: 0
outsideFlexWindowMinutesintegeroptioneel

Summe der Ist-Minuten außerhalb des Gleitzeitrahmens im Monat. Quelle für `summary.overtimeDeltaMinutes` — fließt ab ADR 0050a in das OVERTIME-Konto.

≥ 0Default: 0
appliedPercentsobjectoptioneel
nightnumberoptioneel
≥ 0
weekendnumberoptioneel
≥ 0
holidaynumberoptioneel
≥ 0
overtimenumberoptioneel
≥ 0
surchargeAmountCentsintegeroptioneel
≥ 0Default: 0
recalculationPendingbooleanoptioneel

Wird auf true gesetzt, wenn eine rückwirkende Änderung erkannt wurde. Der Retro-Worker arbeitet die Neuberechnung ab.

Default: false
recalculationReasonstringoptioneel

Freitext zur Ursache (z.B. "Krankmeldung 12.03. nachgereicht")

max. 1000 tekensnullable
notesstringoptioneel
max. 4000 tekensnullable

Standaard-endpoints

Deze resource volgt het generieke CRUD-contract van het platform. Lees de conventies voor paginering, idempotentie, optimistic locking en audit. De belangrijkste endpoints:

  • GET /api/v1/monthly_closings — Lijst, gepagineerd + filterbaar
  • GET /api/v1/monthly_closings/<id> — Enkele entity
  • POST /api/v1/monthly_closings — Aanmaken
  • PATCH /api/v1/monthly_closings/<id> — Gedeeltelijke update
  • DELETE /api/v1/monthly_closings/<id> — Soft-delete
  • GET /api/v1/monthly_closings/<id>/timeline — Audit + activiteiten

Zoeken