fix: cron sendEmailsRemindersOnInvoiceDueDate if contact exists and mail on thridparty exists there is an error

This commit is contained in:
Florian HENRY 2023-04-26 17:50:59 +02:00
parent a3bd4a8cfd
commit 0d830aef89

View File

@ -5552,7 +5552,7 @@ class Facture extends CommonInvoice
$to[] = $recipient->email;
}
if (empty($to)) {
$errormesg = "Failed to send remind to thirdparty id=".$tmpinvoice->socid.". No email defined for user.";
$errormesg = "Failed to send remind to thirdparty id=".$tmpinvoice->socid.". No email defined for invoice or customer.";
$error++;
}
} else {