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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FHdE9nEh8zHhQNGpCgrtYe
This commit is contained in:
Claude committed 2026-08-14 14:29:06 +00:00
1 parent 02b70d6b59
commit 02645c34a5
1 file changed
+2 -7
+2 -7
View File
@@ -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");