this is the mpdf_helper:
http://www.codeshare.io/LsOO8
this is the template:
http://www.codeshare.io/z71dV
What is in the template:
- the header and footer html code are embedded in two global variables used from the mpdf_helper
- added custom field “registered office”, that is different from company office address
- added custom fields bank_name, bank_account_owner, bank_iban (weird they are not available as standard fields) and put this fields in block defore invoice items. In this block a translation record is needed for the words “Wire Information”
- change some css rules to better fit the overall design
What is missing in the software (used some custom fields in the template to fix this lack:
- bank details (we want to be paid by customers, right?
)
- payments terms (15 days invoice date, 30 days invoice date, Cash In Advance, and so on…)
- registered address
- Notes to be added at the end of items list
I made this template upon my own needs. In order to use for other people, you will need to add more checks, custom fields and change them in the code.