From 02645c34a5f7e4528e4d102d4fda5191d961b8d0 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 14 Aug 2026 14:29:06 +0000 Subject: [PATCH] refactor(rapprochement): end supplier mail body at the closing line The generated body stopped with the brand name and the store, which would be repeated by the Outlook signature configured on each workstation. It now ends at "Cordialement," and lets that signature carry the brand, the store details and the logo. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01FHdE9nEh8zHhQNGpCgrtYe --- client/src/lib/supplierMail.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/client/src/lib/supplierMail.ts b/client/src/lib/supplierMail.ts index 4254c6e..7df5d97 100644 --- a/client/src/lib/supplierMail.ts +++ b/client/src/lib/supplierMail.ts @@ -20,9 +20,6 @@ export interface SupplierMailDelivery { group?: { name?: string | null } | null; } -/** Enseigne utilisée dans la signature des mails fournisseurs. */ -export const COMPANY_NAME = "LaFoir'Fouille"; - /** * Objet du mail : identifie la livraison concernée. */ @@ -77,9 +74,6 @@ export function buildSupplierMailBody(delivery: SupplierMailDelivery): string { details.push(`- Référence facture : ${delivery.invoiceReference}`); } - // Signature : enseigne + magasin enregistré sur la livraison - const signature = [COMPANY_NAME, delivery.group?.name].filter(Boolean).join("\n"); - const lines = [ "Bonjour,", "", @@ -93,8 +87,9 @@ export function buildSupplierMailBody(delivery: SupplierMailDelivery): string { "", "Vous en remerciant par avance.", "", + // Le corps s'arrête ici : l'enseigne, le magasin et le logo sont apportés + // par la signature configurée dans Outlook sur le poste. "Cordialement,", - ...(signature ? [signature] : []), ]; return lines.join("\n");