refactor(order): rename Bestellbestaetigung to Angebotsbestaetigung
All checks were successful
Staging Build / build (push) Successful in 3m22s

This commit is contained in:
DanielS
2026-06-26 09:06:45 +02:00
parent fbab22506b
commit ccdfa7402b
5 changed files with 9 additions and 9 deletions

View File

@@ -205,7 +205,7 @@ export async function submitOrder(params: {
)
// 6. PDF in Supabase Storage hochladen
const fileName = `bestellbestaetigung_${order.id}.pdf`
const fileName = `angebotsbestaetigung_${order.id}.pdf`
const { error: uploadError } = await supabase
.storage
.from('invoices')
@@ -227,8 +227,8 @@ export async function submitOrder(params: {
await sendMail({
to: user.email,
subject: `Bestellbestätigung ${orderNumber}`,
text: `Hallo,\n\nvielen Dank für Ihre Bestellung bei CASPOS Shop!\n\nBestelldetails:\n- Bestellnummer: ${orderNumber}\n- Datum: ${formattedDate}\n- Endkunde: ${customerSnapshot.company_name}\n- Gesamtsumme: ${formattedTotal}\n\nIm Anhang dieser E-Mail finden Sie Ihre Bestellbestätigung als PDF-Dokument.\n\nViele Grüße,\nIhr CASPOS Shop-Team`,
subject: `Angebotsbestätigung ${orderNumber}`,
text: `Hallo,\n\nvielen Dank für Ihre Bestellung bei CASPOS Shop!\n\nBestelldetails:\n- Bestellnummer: ${orderNumber}\n- Datum: ${formattedDate}\n- Endkunde: ${customerSnapshot.company_name}\n- Gesamtsumme: ${formattedTotal}\n\nIm Anhang dieser E-Mail finden Sie Ihre Angebotsbestätigung als PDF-Dokument.\n\nViele Grüße,\nIhr CASPOS Shop-Team`,
html: `
<div style="font-family: sans-serif; max-width: 600px; margin: 0 auto; padding: 20px; border: 1px solid #e2e8f0; border-radius: 8px;">
<h2 style="color: #0f172a; margin-bottom: 16px;">Vielen Dank für Ihre Bestellung!</h2>
@@ -255,7 +255,7 @@ export async function submitOrder(params: {
</tr>
</table>
</div>
<p style="color: #475569; font-size: 16px; line-height: 1.5;">Im Anhang dieser E-Mail finden Sie Ihre Bestellbestätigung als PDF-Dokument.</p>
<p style="color: #475569; font-size: 16px; line-height: 1.5;">Im Anhang dieser E-Mail finden Sie Ihre Angebotsbestätigung als PDF-Dokument.</p>
<p style="color: #475569; font-size: 16px; line-height: 1.5; margin-top: 24px;">Mit freundlichen Grüßen,<br>Ihr CASPOS Shop-Team</p>
<hr style="border: 0; border-top: 1px solid #e2e8f0; margin: 24px 0;">
<p style="color: #94a3b8; font-size: 12px; text-align: center;">Diese E-Mail wurde automatisch generiert. Bitte antworten Sie nicht darauf.</p>
@@ -263,7 +263,7 @@ export async function submitOrder(params: {
`,
attachments: [
{
filename: `Bestellbestaetigung_${orderNumber}.pdf`,
filename: `Angebotsbestaetigung_${orderNumber}.pdf`,
content: buffer,
contentType: 'application/pdf',
}