From 5c93753b7e97292d67438315f8df2cb625c0827f Mon Sep 17 00:00:00 2001 From: Marcus Hill Date: Sat, 16 Aug 2025 15:17:48 +0100 Subject: [PATCH] Rm extra unnecessary line in overdue invoice email --- scripts/cron.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/cron.php b/scripts/cron.php index 69f2feab..850cc132 100644 --- a/scripts/cron.php +++ b/scripts/cron.php @@ -540,7 +540,7 @@ if ($config_send_invoice_reminders == 1) { $subject = "Overdue Invoice $invoice_prefix$invoice_number"; $body = "Hello $contact_name,

Our records indicate that we have not yet received payment for the invoice $invoice_prefix$invoice_number. We kindly request that you submit your payment as soon as possible. If you have any questions or concerns, please do not hesitate to contact us at $company_email or $company_phone. -

+
Kindly review the invoice details mentioned below.

Invoice: $invoice_prefix$invoice_number
Issue Date: $invoice_date
Total: " . numfmt_format_currency($currency_format, $invoice_amount, $invoice_currency_code) . "
Due Date: $invoice_due
Over Due By: $day Days


To view your invoice, please click here.


--
$company_name - Billing
$config_invoice_from_email
$company_phone"; $mail = addToMailQueue([ @@ -560,7 +560,7 @@ if ($config_send_invoice_reminders == 1) { mysqli_query($mysqli, "INSERT INTO history SET history_status = 'Sent', history_description = 'Cron Failed to send Overdue Invoice', history_invoice_id = $invoice_id"); appNotify("Mail", "Failed to send email to $contact_email"); - + // Logging logApp("Mail", "error", "Failed to send email to $contact_email regarding $subject. $mail"); } @@ -598,7 +598,7 @@ while ($row = mysqli_fetch_array($sql_recurring_invoices)) { $client_id = intval($row['recurring_invoice_client_id']); $client_name = sanitizeInput($row['client_name']); $client_net_terms = intval($row['client_net_terms']); - + $recurring_payment_recurring_invoice_id = intval($row['recurring_payment_recurring_invoice_id']); $recurring_payment_currency_code = sanitizeInput($row['recurring_payment_currency_code']); $recurring_payment_method = sanitizeInput($row['recurring_payment_method']);