tomb Posted March 29, 2012 Share Posted March 29, 2012 Hello, how can I use line breaks on billable items? The Billable items UI seems to support single lines. Using the <br /> tag only works on the PDF version. Any solution for that? 0 Quote Link to comment Share on other sites More sharing options...
eCalm Posted September 2, 2013 Share Posted September 2, 2013 tomb, I am having the same issue. Did you ever find a solution? Thanks. 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted September 2, 2013 Share Posted September 2, 2013 Sure, it's possible with this trick. Open invoicepdf.tpl and add this string during the iteration of invoice items. foreach ($invoiceitems AS $item) { // random stuff $item["description"] = str_replace(array('[newline]','[bla]'),array("\n","".$bla.""), $item["description"]); // random stuff } Now everytime you write [newline] in the description of the an invoice item, in the PDF you will find a line break. You can use the same approach to include also some other stuff like images, special chars etc. 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.