From b26a6f40b9b0749bd9349e507a76a02ddef65198 Mon Sep 17 00:00:00 2001 From: BOHA Date: Thu, 2 Apr 2026 11:13:29 +0200 Subject: [PATCH] fix: invoice PDF shows unit next to quantity (e.g. 193,50 / ks) Adjusted column widths to prevent header overlap. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/routes/admin/invoices-pdf.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/routes/admin/invoices-pdf.ts b/src/routes/admin/invoices-pdf.ts index 254437b..ed99ce5 100644 --- a/src/routes/admin/invoices-pdf.ts +++ b/src/routes/admin/invoices-pdf.ts @@ -427,7 +427,7 @@ export default async function invoicesPdfRoutes( return ` ${i + 1} ${escapeHtml(item.description)} - ${formatNum(qty, qtyDecimals)} + ${formatNum(qty, qtyDecimals)}${item.unit ? ` / ${escapeHtml(item.unit)}` : ""} ${formatNum(unitPrice)} ${formatNum(lineSubtotal)} ${applyVat ? Math.floor(vatRate) : 0}% @@ -944,9 +944,9 @@ ${indentCSS} - - - + + +
${escapeHtml(t.col_no)}${escapeHtml(t.col_desc)}${escapeHtml(t.col_qty)}${escapeHtml(t.col_no)}${escapeHtml(t.col_desc)}${escapeHtml(t.col_qty)} ${escapeHtml(t.col_unit_price)} ${escapeHtml(t.col_price)} ${escapeHtml(t.col_vat_pct)}