Packs / hr-and-people-public
payroll-run-export
Run a monthly payroll sheet where every net pay adds up, approve it and export it
Install
logicpacks pack use hr-and-people-public/payroll-run-exportget_pack hr-and-people-public/payroll-run-exportThe second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.
Keys it needs (names only)
None.
Playbooks included
- Spec:
spec/SPEC.md(goal, steps, edge cases, don’ts) - Routes:
stdlib-referencefrappe-hr - Checks: 2 in
outcome/checks.yaml - Code:
refflow.pyschema.json - Tools: python3, docker
Usage, last 8 weeks
New: no recorded use yet.
Purpose (from spec/SPEC.md)
Goal
Run a monthly payroll sheet where every net pay adds up, approve it and export it. Our reference flow (code/refflow.py, stdlib sqlite) proves the records, allowed moves, numbers and export; the same rules carry over to the self-hosted app.
Steps
- One payslip per employee per period: gross, tax, deductions, net.
- Every row must satisfy net = gross - tax - deductions (rejected otherwise).
- draft -> approved -> paid; a draft can't jump to paid.
- Export the period CSV for the bank upload.
Edge cases
- Tax rules change each budget; tax is an input here, not computed.
- Mid-month joiners: prorate gross before entering.
Don'ts
- Don't email payroll exports; share them through the vault or drive with access control.
- Fixtures use made-up people and amounts.
Check
lp pack check hr-and-people/payroll-run-export runs outcome/checks.yaml.