Phase7: Void/Refund logic
All checks were successful
Build and Push / build (push) Successful in 1m46s

This commit is contained in:
2026-05-25 22:52:54 +02:00
parent 6fed5b083b
commit 1c61111da3
3 changed files with 23 additions and 30 deletions

View File

@@ -1261,10 +1261,12 @@ export async function sendCreditNoteEmail(params: {
const safeNumberINV = escapeHtml(params.invoiceNumber);
const safeReason = params.reason ? escapeHtml(params.reason) : null;
// Red accent (#DC2626) for the credit-note emails, mirroring the
// PDF accent so the document family reads visually consistent.
// The invoice email uses emerald; the credit note uses red.
const ACCENT = "#DC2626";
// PieCed brand emerald — same accent the invoice email uses.
// A credit note is still a PieCed IT document; the company
// identity stays consistent across the document family. The
// doc type is distinguished by the subject line and copy, not
// by colour.
const ACCENT = "#10B981";
try {
await getTransporter().sendMail({