You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when using the cron and the creation of new recurred invoices, using the automatic notification of new invoice for third party, the mail send talks about an invoice that is not validated (PROV) and there is no pdf attached to the mail.
Discovering the log, it seems that the sending process come before the validation process of invoice. That's why there is no pdf and name is PROV.
Dolibarr Version
19.0.3
Environment PHP
8.2
Environment Database
No response
Steps to reproduce the behavior and expected behavior
For a client, I've decided to notify him every time there is a new invoice validated.
So I've created the third party as follow:
I create a recur invoice model.
In email I've selected the right format FCAuto as follow:
In automatic notification I've selected also the right preset:
The cron worked well and created the new invoice as it should do so till this point it's all ok
But in the email received, it says:
So first thing wrong:
the name of the invoice is PROV47 that is an invoice not validated.
the pdf doesn't exists
In the invoice module all is correct to me
When I saw the lof, I saw that mail are send before validating the invoice.
In the log I see this :
CMailFile::CMailfile: charset=UTF-8 from=
CMailFile::CMailfile: subject= Votre facture (PROV44)
CMailFile::CMailfile: sendmode=smtps addr_bcc=, replyto=
HookManager::initHooks Loading hooks: context=mail-path=/removeconf/class/actions_removeconf.class.php
CMailFile::sendfile: sendMsg, HOST=ssl://ssl0.ovh.net, PORT=465
CMailFile::sendfile: mail end success
and AFTER I see this:
commonGenerateDocument modele=sponge outputlangs->defaultlang=fr_FR
So that could tell that the mail is send before the validation process.
Is it enough to understand this bug ?
I had also the same issue while validating memberships where a new member received the mail of the new membership saying that it was enclosed the invoice, but without the invoice. Maybe I can reproduce the issue in another article ?
Thank you,
Attached files
No response
The text was updated successfully, but these errors were encountered:
Bug
Hello everyone,
when using the cron and the creation of new recurred invoices, using the automatic notification of new invoice for third party, the mail send talks about an invoice that is not validated (PROV) and there is no pdf attached to the mail.
Discovering the log, it seems that the sending process come before the validation process of invoice. That's why there is no pdf and name is PROV.
Dolibarr Version
19.0.3
Environment PHP
8.2
Environment Database
No response
Steps to reproduce the behavior and expected behavior
For a client, I've decided to notify him every time there is a new invoice validated.
So I've created the third party as follow:
I create a recur invoice model.
In email I've selected the right format FCAuto as follow:
In automatic notification I've selected also the right preset:
The cron worked well and created the new invoice as it should do so till this point it's all ok
But in the email received, it says:
So first thing wrong:
In the invoice module all is correct to me
When I saw the lof, I saw that mail are send before validating the invoice.
In the log I see this :
CMailFile::CMailfile: charset=UTF-8 from=
CMailFile::CMailfile: subject= Votre facture (PROV44)
CMailFile::CMailfile: sendmode=smtps addr_bcc=, replyto=
HookManager::initHooks Loading hooks: context=mail-path=/removeconf/class/actions_removeconf.class.php
CMailFile::sendfile: sendMsg, HOST=ssl://ssl0.ovh.net, PORT=465
CMailFile::sendfile: mail end success
and AFTER I see this:
commonGenerateDocument modele=sponge outputlangs->defaultlang=fr_FR
So that could tell that the mail is send before the validation process.
Is it enough to understand this bug ?
I had also the same issue while validating memberships where a new member received the mail of the new membership saying that it was enclosed the invoice, but without the invoice. Maybe I can reproduce the issue in another article ?
Thank you,
Attached files
No response
The text was updated successfully, but these errors were encountered: