Merge pull request #20761 from javieralapps4up/patch-1

Using deprecated $tmpinvoice->fk_soc
This commit is contained in:
Laurent Destailleur 2022-05-04 00:02:15 +02:00 committed by GitHub
commit 358685e9d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5221,11 +5221,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++;
}