# payroll-run-export

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

- **Space:** hr-and-people-public (https://github.com/Tech-Realm/space-hr-and-people-public/tree/main/payroll-run-export)
- **Level:** L2 (as the registry reports it)
- **Keys it needs (names only):** none
- **Tools:** python3, docker
- **Routes:** stdlib-reference, frappe-hr; checks: 2
- **Uses:** new (no recorded use yet)
- **Install:** `logicpacks pack use hr-and-people-public/payroll-run-export` or MCP `get_pack hr-and-people-public/payroll-run-export`
- **Files:** CHANGELOG.md, code/refflow.py, code/schema.json, outcome/EVIDENCE.md, outcome/checks.yaml, outcome/fixtures/scenario.json, outcome/results.json, pack.yaml, refs/refs.yaml, spec/SPEC.md, spec/source.md

## Purpose (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.



---

Canonical URL: https://logicpacks.io/packs/hr-and-people-public/payroll-run-export

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](/llms.txt). Plain facts: [/about.md](/about.md). Safety: [/safety.md](/safety.md).
