fix: cron sendEmailsRemindersOnInvoiceDueDate if contact exists and email exists the is an error

This commit is contained in:
Florian HENRY 2023-04-26 17:48:09 +02:00
parent 1f97fcd2eb
commit a3bd4a8cfd

View File

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