JEISA-WEBAPP/scripts
Dave a30270e77f fix(quotes): wrap item descriptions on the quote PDF
Item descriptions were cut off with an ellipsis. Long names like
"PRO132T-C24 - CARBON BRUSH EACH, PRO152T" lost their tail, which on a
quotation reads as a mistake.

Descriptions now wrap onto as many lines as they need and the row grows
to fit, so the full name is always printed. SKU, quantity, price and
total stay on the first line of the row.

While wrapping, the quote PDF gained the page handling the purchase
order PDF already had: a row that no longer fits moves to a new page
with the column headers repeated, and the totals and notes blocks
break to a new page rather than running off the bottom. Before this
the quote PDF had no page breaks at all, so a long quote simply ran
off the page.

Addresses also keep their line breaks now instead of being flattened
into one line.

The two quote PDF builders - "Download PDF" and the copy stored in
PocketBase - were near-identical copies of ~275 lines. They now share
one builder (quotePdf.ts), so a layout fix can no longer land in one
and miss the other.
2026-10-21 08:40:39 +02:00
..
add-customer-fields.mjs feat(quotes,customers): address + VAT on quotes, 30-day validity, searchable customer 2026-10-21 04:45:58 +02:00
add-quote-deleted-flag.mjs feat(quotes): delete quotes from the app, add customer inline with full details 2026-10-21 05:09:11 +02:00
backfill-quote-validity.mjs feat(quotes,customers): address + VAT on quotes, 30-day validity, searchable customer 2026-10-21 04:45:58 +02:00
create-user-quote.mjs fix(quotes,po): repair item storage, totals and PDF line items 2026-10-20 20:13:46 +02:00
fix-items-field.mjs fix(quotes,po): repair item storage, totals and PDF line items 2026-10-20 20:13:46 +02:00
fix-users-collection.mjs feat(settings): add user management, fix totals and mobile layout 2026-10-21 03:13:01 +02:00
generate-icons.mjs Add icon generation script and new icons for PWA and favicons 2025-09-25 00:50:36 +02:00
mcp-create-po.mjs feat(po): add MCP server, agent-friendly PO API, and PDF rendering 2026-09-07 11:12:13 +02:00
po-photo-ingest.mjs feat(po): add MCP server, agent-friendly PO API, and PDF rendering 2026-09-07 11:12:13 +02:00
preview-quote-pdf.mjs fix(quotes): wrap item descriptions on the quote PDF 2026-10-21 08:40:39 +02:00
probe-pb-schema.mjs feat(po): add MCP server, agent-friendly PO API, and PDF rendering 2026-09-07 11:12:13 +02:00
push-migrations.mjs feat(po): add MCP server, agent-friendly PO API, and PDF rendering 2026-09-07 11:12:13 +02:00
test-pb-mcp.mjs feat(po): add MCP server, agent-friendly PO API, and PDF rendering 2026-09-07 11:12:13 +02:00
test-po-api.mjs feat(po): add MCP server, agent-friendly PO API, and PDF rendering 2026-09-07 11:12:13 +02:00
test-quote-pdf.mjs fix(quotes,po): repair item storage, totals and PDF line items 2026-10-20 20:13:46 +02:00