No description
Find a file
Mavis 7cf8d4b2e2 feat(order): new /order tab — stock-code picker + qty, cost preview, PDF export
Quick order-builder for the user. Pick a stock code, set a qty, hit Add.
Default unit price is the HIGHEST price ever paid for each code (worst-
case budget), with the reference invoice [no + date] shown in the table
so the price source is auditable. Ties broken by most-recent date so
the source reflects current market, not an old historical peak.

UI:
- Stock code dropdown shows code, description, default price, ref inv
- Inline-editable qty + unit price per row
- Running grand total at bottom
- Clear button (with confirm) wipes the list
- Export PDF button calls window.print() — browser "Save as PDF" gives
  a clean table with no chrome (header/nav/controls hidden via @media
  print stylesheet)

Persistence:
- List kept in localStorage key 'jei:order-list' across reloads

Files:
- app/order/page.tsx       [server: fetches stock codes + lines, builds highest-price map]
- app/order/OrderClient.tsx [client: UI, state, print stylesheet]
- app/layout.tsx           [nav: added Order link]

PB query note: when using `fields=...` to limit the response, you must
also include 'expand.invoice.invoice_no' and 'expand.invoice.invoice_date'
in the field selector, otherwise PB drops the expand data entirely.
2026-09-19 01:13:22 +02:00
app feat(order): new /order tab — stock-code picker + qty, cost preview, PDF export 2026-09-19 01:13:22 +02:00
data/review/ocr feat: OCR scanned PDFs and capture all 11 missing stock codes 2026-09-18 06:12:30 +02:00
docs/superpowers feat(payments): relax batch_ref regex to allow spaces, slashes, dots, colons, etc. 2026-09-19 01:13:15 +02:00
invoices chore: track renamed proforma PDFs (147842, 148931, 149943) 2026-09-18 23:14:49 +02:00
scripts feat: add ZAR Paid field to JEI_payment_batches (optional) 2026-09-18 23:10:54 +02:00
.gitignore chore: track renamed proforma PDFs (147842, 148931, 149943) 2026-09-18 23:14:49 +02:00
next-env.d.ts feat: working JEI invoice tracker with PB import + UI on port 6002 2026-09-17 23:07:56 +02:00
next.config.js feat: working JEI invoice tracker with PB import + UI on port 6002 2026-09-17 23:07:56 +02:00
NOTES.md chore: move JEI dev port from 6003 to 5001 (user preference) 2026-09-18 21:24:07 +02:00
package-lock.json feat: working JEI invoice tracker with PB import + UI on port 6002 2026-09-17 23:07:56 +02:00
package.json chore: move JEI dev port from 6003 to 5001 (user preference) 2026-09-18 21:24:07 +02:00
postcss.config.js feat: working JEI invoice tracker with PB import + UI on port 6002 2026-09-17 23:07:56 +02:00
tailwind.config.ts feat: working JEI invoice tracker with PB import + UI on port 6002 2026-09-17 23:07:56 +02:00
tsconfig.json feat: working JEI invoice tracker with PB import + UI on port 6002 2026-09-17 23:07:56 +02:00