Cursor App Template #47 — Purchase Order Tracking

Purchase Order Tracking

Create, track, and analyze purchase orders with status workflow and supplier spend reporting.

Overview

This app helps procurement teams manage purchase orders from draft through receipt. Browse POs in an AG Grid, create new orders with auto-generated PO numbers, advance status through a workflow, and filter or group by supplier or status. KPI cards and a supplier spend chart support reporting; Excel export includes a status summary sheet. Everything runs in a single self-contained HTML page with data saved locally in your browser.

Key features

Purchase order grid

  • AG Grid tracker — PO Number, Supplier, Amount, Date, Status, and Delivery Date columns with color-coded status.
  • Sample data — Nine purchase orders across five suppliers with mixed statuses.
  • Overdue highlighting — Open POs past their delivery date are flagged in the grid.

Create & edit POs

  • Alpine.js form — Select supplier, enter amount, PO date, delivery date, and initial status.
  • Auto PO number — Next PO number previewed before save (e.g. PO-2026-0151).
  • Edit / delete — Update existing POs from the grid or remove with confirmation.

Status tracking & grouping

  • Workflow actions — Submit, Approve, Mark shipped, Mark received, or Cancel the selected PO.
  • Status options — Draft, Submitted, Approved, Shipped, Received, Cancelled.
  • Filters — Filter by status or supplier; group summary by status or supplier showing PO count and total amount.

Summary & reporting

  • KPI cards — Total POs, total spend (excl. cancelled), open orders, and overdue deliveries.
  • Supplier chart — Bar chart of total spend by supplier.
  • Excel export — Purchase Orders sheet plus Summary by Status sheet via SheetJS.

Data management

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

Data & persistence

Sample data includes nine POs totaling over $80K across Acme Industrial Supply, Global Components Ltd, Pacific Packaging Co, TechParts Direct, and Midwest Fasteners. State saves to `localStorage` under `purchase-order-data`.

Charts & reporting

The bar chart aggregates non-cancelled PO amounts by supplier. Excel export includes full PO detail and a per-status count and amount summary.

Built with

Tailwind CSS (CDN), AG Grid Community, Alpine.js, Chart.js, and SheetJS — 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

Purchase Order Tracking

Create and track purchase orders, monitor status, and analyze spend by supplier.

Total POs9
Total spend$80,535.75
Open orders6
Overdue1

Create purchase order

PO number: PO-2026-0151

PO-2026-0146Draft

Filters

Grouped summary by status

Approved2 POs · $18,450.00
Shipped1 PO · $8,320.50

Spend by supplier

$22K
$18K
$12K
$8K
TechParts · Acme · Global · Pacific
Purchase orders9 shown
PO #SupplierAmountDateStatusDelivery
PO-2026-0142Acme Industrial$12,450.002026-06-15Received2026-07-01
PO-2026-0143Global Components$8,320.502026-06-20Shipped2026-07-10
PO-2026-0148Global Components$9,450.002026-07-05Approved2026-07-08
💾 Saved to localStorage

Leave a Reply