MC/website/docs/postbank-payroll.md

44 lines
2.6 KiB
Markdown

# P&O payroll
The central scheduler processes one monthly salary per verified staff identity.
The highest valid active rank sets the wage; departments do not stack. Official
accounts, deployment identities and duplicate linked Minecraft identities are
excluded. The default schedule is the 28th in Europe/Brussels and is disabled
until rollout. Big Four control identities manage settings in the bank dashboard's
P&O Payroll tab.
Payroll reuses an active personal current account (102 or 108). If absent, the
payroll transaction creates a free personal Start package and current account
**108**, with zero opening funds. This does not create a staff/Public 979 account
or claim that the employee accepted terms. A blocked or closed personal current
account requires review rather than a replacement account.
Each period freezes rank, policy version, tax parameters and payslip amounts
before posting. An employee payment atomically moves employer cost from Website
bank treasury to P&O, net salary to the personal account, and social contributions
plus income tax to I.D. Taxes. P&O retains no generated money. All three legs
share the transaction with account provisioning and the paid marker. Insufficient
funds roll everything back. Unpaid recipients are rechecked against current
appointments and identity before posting.
The model is fictional DM payroll using selected Belgian-inspired 2026 parameters,
not a real Belgian payroll calculation. Defaults are net DM per month:
Officer 2,800; Branch Lead 3,360; Department Head 4,200; Executive 5,040;
Owner & CEO 5,600. The payroll policy can be changed centrally.
`scripts/rollout-postbank-payroll.mjs --actor=UUID` previews eligibility without
creating accounts. `--apply` enables the current policy and runs the initial
current-period payroll once. Repeating it cannot pay the same period/person
again. Use the physical release path when invoking the script.
The rollout first prepares a versioned public tariff register and its PDF. A
failed document render stops the rollout before payroll is enabled. The central
scheduler retries pending tariff documents. Anonymous clients read
`GET /api/bank/public/rates` and download the exact publication through
`GET /api/bank/public/rates.pdf?version=UUID`; pending PDFs never fall back to an
older document. Public snapshots contain tax parameters, not private rank wages
or individual payslips. The public Rates & Charges page uses this same register.
Validation includes concurrent-run idempotency, account 108 provisioning,
salary/tax conservation and rollback on insufficient funds. The same concurrent
rollout was verified in isolated MySQL tables without production payments.