fix: cron sendEmailsRemindersOnInvoiceDueDate if contact exists and email exists the is an error
This commit is contained in:
parent
1f97fcd2eb
commit
a3bd4a8cfd
@ -5550,7 +5550,8 @@ class Facture extends CommonInvoice
|
|||||||
}
|
}
|
||||||
if (empty($to) && !empty($recipient->email)) {
|
if (empty($to) && !empty($recipient->email)) {
|
||||||
$to[] = $recipient->email;
|
$to[] = $recipient->email;
|
||||||
} else {
|
}
|
||||||
|
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 user.";
|
||||||
$error++;
|
$error++;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user