mirror of https://github.com/itflow-org/itflow
Fix Sending Email when Forcing a Recurring Invoice into an Invoice
This commit is contained in:
parent
2dc66b329b
commit
0cacf83ae5
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue