# ar-aging-report

build an accounts-receivable aging report (current, 1-30, 31-60, 61-90, 90+ days) from open invoices

- **Space:** accounting-public (https://github.com/Tech-Realm/space-accounting-public/tree/main/ar-aging-report)
- **Level:** L2 (as the registry reports it)
- **Keys it needs (names only):** none
- **Tools:** python3
- **Routes:** python-stdlib; checks: 1
- **Uses:** new (no recorded use yet)
- **Install:** `logicpacks pack use accounting-public/ar-aging-report` or MCP `get_pack accounting-public/ar-aging-report`
- **Files:** CHANGELOG.md, code/aging.py, outcome/EVIDENCE.md, outcome/checks.yaml, outcome/fixtures/inv.csv, outcome/results.json, pack.yaml, refs/refs.yaml, spec/SPEC.md, spec/source.md

## Purpose (spec/SPEC.md)

## Goal

Build an accounts-receivable aging report (current, 1-30, 31-60, 61-90, 90+ days) from open invoices.

## Steps

1. Export open (unpaid) invoices with due dates.
2. Run `python3 code/aging.py invoices.csv --asof <period end>`.
3. Chase 31+ day buckets; consider a provision for 90+.

## Edge cases

- Partial payments: use the open balance, not the invoice total.
- Credit notes are negative amounts in the bucket of their due date.

## Don'ts

- Don't age by invoice date when terms differ per customer; use due date.

## Routes (free first)

1. `python-stdlib`: `code/aging.py` (no install).



---

Canonical URL: https://logicpacks.io/packs/accounting-public/ar-aging-report

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).
