Merge pull request #22499 from FHenry/15_fix_bad_error_message_CronJobSendEmailsRemindersOnInvoiceDueDate
fix: display correct id of thirdparty in Error of sendEmailsRemindersOnInvoiceDueDate
This commit is contained in:
commit
ada0f2b82a
@ -5155,11 +5155,11 @@ class Facture extends CommonInvoice
|
||||
if (!empty($recipient->email)) {
|
||||
$to = $recipient->email;
|
||||
} else {
|
||||
$errormesg = "Failed to send remind to thirdparty id=".$tmpinvoice->fk_soc.". No email defined for user.";
|
||||
$errormesg = "Failed to send remind to thirdparty id=".$tmpinvoice->socid.". No email defined for user.";
|
||||
$error++;
|
||||
}
|
||||
} else {
|
||||
$errormesg = "Failed to load recipient with thirdparty id=".$tmpinvoice->fk_soc;
|
||||
$errormesg = "Failed to load recipient with thirdparty id=".$tmpinvoice->socid;
|
||||
$error++;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user