Cursor App Template #48 — Accounts Receivable & Payable

Accounts Receivable & Payable

Track customer invoices and vendor bills, monitor aging buckets, and analyze outstanding balances.

Overview

This app helps finance teams manage both sides of working capital — money owed to you (AR) and money you owe (AP). Browse invoices and bills in an AG Grid, filter by aging bucket and status, update payment status, and review KPI cards for total due and overdue amounts. A grouped bar chart compares AR and AP by aging bucket; Excel import/export and a PDF aging report support month-end close. Everything runs in a single self-contained HTML page with data saved locally in your browser.

Key features

Invoice & bill grid

  • AG Grid tracker — Number, type (AR/AP), party, amount, due date, status, and aging bucket columns with color-coded status and bucket labels.
  • Sample data — Eleven invoices and bills across customers and vendors with mixed statuses (Open, Overdue, Paid, Partial).
  • Overdue highlighting — Open items past their due date are flagged in the grid.

Aging & status workflow

  • Aging buckets — Current, 31–60, 61–90, and 90+ days computed from a fixed reference date.
  • Alpine.js filters — Filter by type (AR/AP), aging bucket, status, or search by customer/vendor name.
  • Aging summary panel — Count and total amount per bucket for the current filter set.
  • Status actions — Mark paid, record partial payment, or reopen a closed invoice on the selected row.

Summary metrics

  • KPI cards — Total due, overdue amount, AR outstanding, and AP outstanding update live from open and partial records.

Import, export & reporting

  • Excel import — Load invoices from a spreadsheet; new rows are merged into the grid.
  • Excel export — Download all invoices plus an aging summary sheet via SheetJS.
  • PDF aging report — jsPDF report with summary table and per-bucket totals.
  • Add invoice — Create new AR or AP records with auto-generated invoice numbers.

Data management

  • localStorage — All invoices and dark-mode preference persist across sessions.
  • Reset data — Restore the sample dataset with confirmation.
  • Dark mode — Toggle light/dark theme; AG Grid and Chart.js adapt; preference is remembered.

Data & persistence

Sample data includes eleven AR and AP records spanning customers such as Northwind Trading and vendors like Acme Industrial Supply. State saves to `localStorage` under `accounts-receivable-data` and `accounts-receivable-dark`.

Charts & reporting

The grouped bar chart compares AR and AP outstanding amounts across the four aging buckets. Excel export includes full invoice detail and a per-bucket summary; the PDF report mirrors the aging summary for printing or sharing.

Built with

Tailwind CSS (CDN), AG Grid Community, Alpine.js, Chart.js, SheetJS, and jsPDF — all loaded from CDN in a single HTML file.

Try the interactive walkthrough below. Click Walk through features and use Next / Back (or arrow keys) to explore every feature.

Dark mode and localStorage

Accounts Receivable & Payable

Track invoices and bills, monitor aging buckets, and analyze outstanding balances.

Total due$72,385.50
Overdue$36,840.50
AR outstanding$42,840.50
AP outstanding$29,545.00

Aging & status filters

Aging summary

Current (0–30 days)4 items · $23,020.00
31–60 days2 items · $11,950.50
61–90 days1 item · $3,200.00
90+ days2 items · $12,090.00

Update status

INV-1042Northwind Traders

Open · Current (0–30 days)

Aging analysis

$16K
$8K
$12K
$6K
$3K
$2K
$9K
$7K
0–30 · 31–60 · 61–90 · 90+ (AR blue / AP amber)
Invoices & bills11 shown
NumberTypePartyAmountDueStatusAging
INV-1042ARNorthwind Traders$12,400.002026-07-15OpenCurrent
INV-1043ARContoso Ltd$8,750.502026-06-20Overdue31–60
BILL-2202APGlobal Components$11,800.002026-06-05Overdue31–60
💾 Saved to localStorage

Leave a Reply