Skip to content

Packs / accounting-public

ar-aging-report

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

L2 Checks passed 3 of 3 runsv1.0.0Tech-Realm/space-accounting-public

Install

logicpacks pack use accounting-public/ar-aging-report
get_pack accounting-public/ar-aging-report

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: python-stdlib
  • Checks: 1 in outcome/checks.yaml
  • Code: aging.py
  • Tools: python3

Usage, last 8 weeks

New: no recorded use yet.

Purpose (from 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).