From 1bf920c1239332d227962acee99a31e2649d7d7e Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Mon, 9 Feb 2026 08:53:38 +0100 Subject: [PATCH] fix: correct PDF invoice address separator and translate label MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Replace ``
`` with ``\n`` in ``InvoicePDF::makeAddress()`` so dompdf renders line breaks instead of showing raw HTML tags. - Translate ``order number`` to ``Numéro de commande`` in the custom fields passed to the invoice builder. The amount-in-words was already in English because the container lacked French ICU data (``icu-data-full``); that was fixed at runtime, not in code. --- app/Repositories/Shop/InvoicePDF.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Repositories/Shop/InvoicePDF.php b/app/Repositories/Shop/InvoicePDF.php index b66685a6..5fbe8902 100644 --- a/app/Repositories/Shop/InvoicePDF.php +++ b/app/Repositories/Shop/InvoicePDF.php @@ -19,7 +19,7 @@ class InvoicePDF $invoice = Invoices::getFull($id); $customFields = []; if ($orderRef = optional($invoice->order)->ref) { - $customFields['order number'] = $orderRef; + $customFields['Numéro de commande'] = $orderRef; } $customer = new Party([ @@ -61,7 +61,7 @@ class InvoicePDF trim(($address->zipcode ?? '').' '.($address->city ?? '')), ]); - return implode('
', $lines); + return implode("\n", $lines); } public static function makeItems($details)