mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-11 17:27:31 +02:00
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:
1 file changed
+2
-7
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user