Maxmito Posted October 11, 2016 Share Posted October 11, 2016 Hello! it looks like that invoices and delivery slips share the same header is there the way to differentiate it? I already searched in the forum but no answer yet. Thanks! Link to comment Share on other sites More sharing options...
RaWMotorsports Posted October 11, 2016 Share Posted October 11, 2016 i would say create a header_invoice.tpl and call it instead of the header in the invoice template ? Maybe need to go in the PHP related ? Don't know where the header is called. Link to comment Share on other sites More sharing options...
rocky Posted October 11, 2016 Share Posted October 11, 2016 It's the getHeader() function in classes/pdf/HTMLTemplateInvoice.php you'll need to override: return $this->smarty->fetch($this->getTemplate('header')); Change 'header' to 'header-invoice' and then copy and paste pdf/header.tpl to pdf/header-invoice.tpl. Link to comment Share on other sites More sharing options...
Maxmito Posted October 16, 2016 Author Share Posted October 16, 2016 Hi Rocky at the end this is exactly what I did (more details here). Thanks a lot for the input! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now