From ecb18547c089f82cc4cbe02c9ea5cf2ebd210560 Mon Sep 17 00:00:00 2001 From: Andreas Knuth Date: Mon, 25 May 2026 15:23:50 -0500 Subject: [PATCH] Net 14 --- public/js/modals/email-modal.js | 6 +++--- public/js/views/invoice-view.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/public/js/modals/email-modal.js b/public/js/modals/email-modal.js index 08038bf..e69d345 100644 --- a/public/js/modals/email-modal.js +++ b/public/js/modals/email-modal.js @@ -229,11 +229,11 @@ function renderModalContent() { // Dynamischer Text für die Fälligkeit let paymentText = ''; if (currentInvoice.terms && currentInvoice.terms.toLowerCase().includes('receipt')) { - paymentText = 'Our terms are Net 30.'; + paymentText = 'Our terms are Net 14.'; } else if (dueDateStr !== 'Upon Receipt') { paymentText = `payable by ${dueDateStr}.`; } else { - paymentText = 'Our terms are Net 30.'; + paymentText = 'Our terms are Net 14.'; } let defaultHtml = ''; @@ -256,7 +256,7 @@ function renderModalContent() { // Standard template defaultHtml = `

Dear ${customerName},

-

Attached is invoice #${invoiceNum} for service performed at your location. The total amount due is $${totalDue}, ${paymentText}

+

Attached is invoice #${invoiceNum} for service performed at your location. The total amount due is $${totalDue}., ${paymentText}

Please pay at your earliest convenience. We appreciate your continued business.

If you have any questions about the invoice, feel free to reply to this email.

Best regards,

diff --git a/public/js/views/invoice-view.js b/public/js/views/invoice-view.js index af360c8..aa6e7f0 100644 --- a/public/js/views/invoice-view.js +++ b/public/js/views/invoice-view.js @@ -117,8 +117,8 @@ function getTermDays(inv) { return parseInt(match[1], 10); } - // Default in deiner App ist Net 30 - return 30; + // Default in deiner App ist Net 14 + return 14; } function addDays(dateValue, days) { @@ -150,7 +150,7 @@ function getEffectiveDueDate(inv) { // WICHTIG: // Für Overdue zählt der erste tatsächliche Versand. - // Bei Net 30 also first_sent_date + 30 Tage. + // Bei Net 14 also first_sent_date + 30 Tage. return addDays(firstSentDate, getTermDays(inv)); }