Skip to main content

Swiss QR Bill and pdf attach invoice

More
4 years 4 days ago - 4 years 4 days ago #345315 by jean-loup
Dear Support,

Any change to join as second page the Swiss QR bill to the invoice sent by mail. And to have 2 pages in the invoice sent?

I can imagine that it would be easier than to integrate directly the QR Bill info at the bottom of the invoice, on the same page...

Thanks for your help

Jean-Loup

Last edit: 4 years 4 days ago by jean-loup.

Please Log in or Create an account to join the conversation.

More
4 years 3 days ago #345323 by nicolas
Hi,

Either way is not that simple.

I think the best would be to develop a third plugin which would implement the onBeforeMailPrepare event so that it could check the attachments with $mailer->getAttachments(), merge the PDF attachments with github.com/clegginabox/pdf-merger , remove them with $mailer->removeAttachment($index) and add the merged PDF with $mailer->addAttachment($path, $name)
So not impossible but there are several hours of development.
The following user(s) said Thank You: jean-loup

Please Log in or Create an account to join the conversation.

Time to create page: 0.136 seconds
Powered by Kunena Forum