bugness-chl / sendrecurringinvoicebymail Goto Github PK
View Code? Open in Web Editor NEWDolibarr module to send recurring invoice by email
License: GNU General Public License v3.0
Dolibarr module to send recurring invoice by email
License: GNU General Public License v3.0
In Dolibarr, to generate recurring invoice, manually we have to validate a standard invoice and convert it into template invoice.
So will this module do that job. If no then how to achieve that to automate this process programmatically.
I've installed the module using the release here on Github, but in the scheduled jobs module, there's no job to run the class. Is that how it is supposed to be, is it a bug or am I missing something?
When I create a supplier invoice template, it sends an email to a random thirdparty with the supplier invoice.
It happens weither the template is set to draft or not.
I have no form to stop it.
Hi,
I test your module with mail template in HTML, but mail content received not in HTML.
Possible to have this feature ?
Thanks in advance.
Using Dolibarr 13.0.0, i am unable to find any settings für this module.
I edited the template text inside the database in order to use module for my use case.
Is there any option to set a specific template to one recurring invoice?
e.g. rec_invoice_template_customer1: E-Mail Template invoice_sepa
rec_invoice_template_customer2: E-Mail template invoice_normal
Thanks!
Hello!
I was able to install the module but I have an error saving settings on 'Sending by email'.
How can I fix this? My server is not behind a proxy :(
Token not provided refers for the user token to put in the cron command?
Access to this page this way (POST method or GET with a sensible value for 'action' parameter) is refused by CSRF protection in main.inc.php. Token not provided. If you access your server behind a proxy using url rewriting and the parameter is provided by caller, you might check that all HTTP header are propagated (or add the line $dolibarr_nocsrfcheck=1 into your conf.php file or MAIN_SECURITY_CSRF_WITH_TOKEN to 0 instead of 2 into setup).
Thanks!
Hi,
i run your code on my setup and it worked pretty cool since month. Now I updated from 17.0.3 to 18.0.4 and without any other change recurring job fails with:
cron_run_jobs.php cronjobid: 1 priority=50 entity=1 label=RecurringInvoicesJob - qualifiedPHP Warning: Undefined property: TCPDI::$page_largeur in /var/www/VHOST-hpanel-SSL/demo01/core/lib/pdf.lib.php on line 1255
PHP Warning: Undefined property: TCPDI::$margin_left in /var/www/VHOST-hpanel-SSL/demo01/core/lib/pdf.lib.php on line 1255
PHP Warning: Undefined property: TCPDI::$margin_right in /var/www/VHOST-hpanel-SSL/demo01/core/lib/pdf.lib.php on line 1255
PHP Warning: Undefined array key 0 in /var/www/VHOST-hpanel-SSL/demo01/core/class/CMailFile.class.php on line 306
PHP Fatal error: Uncaught TypeError: preg_split(): Argument #2 ($subject) must be of type string, array given in /var/www/VHOST-hpanel-SSL/demo01/includes/swiftmailer/lib/classes/Swift/Mime/Headers/AbstractHeader.php:312
Stack trace:
#0 /var/www/VHOST-hpanel-SSL/demo01/includes/swiftmailer/lib/classes/Swift/Mime/Headers/AbstractHeader.php(312): preg_split()
#1 /var/www/VHOST-hpanel-SSL/demo01/includes/swiftmailer/lib/classes/Swift/Mime/Headers/AbstractHeader.php(259): Swift_Mime_Headers_AbstractHeader->getEncodableWordTokens()
#2 /var/www/VHOST-hpanel-SSL/demo01/includes/swiftmailer/lib/classes/Swift/Mime/Headers/UnstructuredHeader.php(103): Swift_Mime_Headers_AbstractHeader->encodeWords()
#3 /var/www/VHOST-hpanel-SSL/demo01/includes/swiftmailer/lib/classes/Swift/Mime/SimpleHeaderSet.php(309): Swift_Mime_Headers_UnstructuredHeader->getFieldBody()
#4 /var/www/VHOST-hpanel-SSL/demo01/includes/swiftmailer/lib/classes/Swift/Mime/SimpleMimeEntity.php(529): Swift_Mime_SimpleHeaderSet->toString()
#5 /var/www/VHOST-hpanel-SSL/demo01/includes/swiftmailer/lib/classes/Swift/Mime/SimpleMessage.php(601): Swift_Mime_SimpleMimeEntity->toByteStream()
#6 /var/www/VHOST-hpanel-SSL/demo01/includes/swiftmailer/lib/classes/Swift/Message.php(162): Swift_Mime_SimpleMessage->toByteStream()
#7 /var/www/VHOST-hpanel-SSL/demo01/includes/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(400): Swift_Message->toByteStream()
#8 /var/www/VHOST-hpanel-SSL/demo01/includes/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(502): Swift_Transport_AbstractSmtpTransport->streamMessage()
#9 /var/www/VHOST-hpanel-SSL/demo01/includes/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(517): Swift_Transport_AbstractSmtpTransport->doMailTransaction()
#10 /var/www/VHOST-hpanel-SSL/demo01/includes/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(206): Swift_Transport_AbstractSmtpTransport->sendTo()
#11 /var/www/VHOST-hpanel-SSL/demo01/includes/swiftmailer/lib/classes/Swift/Mailer.php(71): Swift_Transport_AbstractSmtpTransport->send()
#12 /var/www/VHOST-hpanel-SSL/demo01/core/class/CMailFile.class.php(1165): Swift_Mailer->send()
#13 /var/www/VHOST-hpanel-SSL/demo01/custom/sendrecurringinvoicebymail/class/actions_sendrecurringinvoicebymail.class.php(166): CMailFile->sendfile()
#14 /var/www/VHOST-hpanel-SSL/demo01/core/class/hookmanager.class.php(254): Actionssendrecurringinvoicebymail->afterCreationOfRecurringInvoice()
#15 /var/www/VHOST-hpanel-SSL/demo01/compta/facture/class/facture-rec.class.php(1403): HookManager->executeHooks()
#16 /var/www/VHOST-hpanel-SSL/demo01/cron/class/cronjob.class.php(1290): FactureRec->createRecurringInvoices()
#17 /var/www/VHOST-hpanel-SSL-scripts-demo01/extra/scripts/cron/cron_run_jobs.php(257): Cronjob->run_jobs()
#18 {main}
thrown in /var/www/VHOST-hpanel-SSL/demo01/includes/swiftmailer/lib/classes/Swift/Mime/Headers/AbstractHeader.php on line 312
I already tried to find which of their changes causes the problem, but have not found anything helpful. I use Swiftmailer because smtp/smtps lib does not work with my sendmail setup. All other mails out of 18.0.4 works. So creating the invoice manually, even with the same mail template and subject, works fine.
Thank you for any hints.
Hello!
I'm encountering issues while attempting to override the global template. When I paste HTML and select 'Auto-select' or 'HTML', the resulting email doesn't get properly formatted.
Environment:
Doli 19.0.1
PHP 8.0.30
Ubuntu 22.04
sendrecurringinvoicebymail 0.3.4
Default mail body's format -1. (auto-select)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.