Fix Sending Email when Forcing a Recurring Invoice into an Invoice

This commit is contained in:
johnnyq 2025-10-22 16:28:53 -04:00
parent 2dc66b329b
commit 0cacf83ae5
1 changed files with 1 additions and 1 deletions

View File

@ -1798,7 +1798,7 @@ if (isset($_GET['force_recurring'])) {
//Also update the newly created invoice with the new amounts
mysqli_query($mysqli,"UPDATE invoices SET invoice_amount = $new_recurring_invoice_amount WHERE invoice_id = $new_invoice_id");
if ($config_recurring_invoice_auto_send_invoice == 1) {
if ($config_recurring_auto_send_invoice == 1) {
$sql = mysqli_query($mysqli,"SELECT * FROM invoices
LEFT JOIN clients ON invoice_client_id = client_id
LEFT JOIN contacts ON clients.client_id = contacts.contact_client_id AND contact_primary = 1