Skip to content

Packs / hr-and-people-public

payroll-run-export

Run a monthly payroll sheet where every net pay adds up, approve it and export it

L2 Checks passed 3 of 3 runsv1.0.0Tech-Realm/space-hr-and-people-public

Install

logicpacks pack use hr-and-people-public/payroll-run-export
get_pack hr-and-people-public/payroll-run-export

The 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

  1. One payslip per employee per period: gross, tax, deductions, net.
  2. Every row must satisfy net = gross - tax - deductions (rejected otherwise).
  3. draft -> approved -> paid; a draft can't jump to paid.
  4. 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.