From cfdab8707899f349e758dc8a9eaeaf8b062506f0 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 23 Mar 2023 17:28:10 +0100 Subject: [PATCH] Fix add more info on agenda for sendEmailsRemindersOnInvoiceDueDateOK --- htdocs/compta/facture/class/facture.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/compta/facture/class/facture.class.php b/htdocs/compta/facture/class/facture.class.php index a4e7bd52430..85020ab2150 100644 --- a/htdocs/compta/facture/class/facture.class.php +++ b/htdocs/compta/facture/class/facture.class.php @@ -5656,7 +5656,7 @@ class Facture extends CommonInvoice $actioncomm->contact_id = 0; $actioncomm->code = 'AC_EMAIL'; - $actioncomm->label = 'sendEmailsRemindersOnInvoiceDueDateOK'; + $actioncomm->label = 'sendEmailsRemindersOnInvoiceDueDateOK (nbdays='.$nbdays.' paymentmode='.$paymentmode.' template='.$template.' forcerecipient='.$forcerecipient.')'; $actioncomm->note_private = $sendContent; $actioncomm->fk_project = $tmpinvoice->fk_project; $actioncomm->datep = dol_now(); @@ -5666,6 +5666,7 @@ class Facture extends CommonInvoice $actioncomm->userownerid = $user->id; // Owner of action // Fields when action is an email (content should be added into note) $actioncomm->email_msgid = $cMailFile->msgid; + $actioncomm->email_subject = $sendTopic; $actioncomm->email_from = $from; $actioncomm->email_sender = ''; $actioncomm->email_to = $to;