justinsmithies Posted October 22, 2010 Share Posted October 22, 2010 Is it possible to have more than one template of pdf invoices ? Say for example my client group "known" get sent a pdf invoice with the terms and conditions for 30 payment terms etc etc. But any other clients not in that group would only get the basic default pdf invoice. Is this possible ? Cheers, Justin Smithies 0 Quote Link to comment Share on other sites More sharing options...
m00 Posted October 22, 2010 Share Posted October 22, 2010 The PDF invoice template (/templates/<templatename>/invoicepdf.tpl) is in the PHP-language, so you could just create a simple if/else statement to solve this. The only thing you'll need is the ID of the client group. if ($clientsdetails["groupid"] == 1) { /* Code for the invoice with terms and conditions */ } else { /* Code for the basic invoice */ } Just replace the 1 with the ID of the client group. 0 Quote Link to comment Share on other sites More sharing options...
justinsmithies Posted October 26, 2010 Author Share Posted October 26, 2010 Thankyou so much , i didn't think it would be too difficult just couldn't see the wood for the trees ..... 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.