Erik H. Posted March 27, 2013 Share Posted March 27, 2013 Hi, We are having an issue after the update of WHMCS. Our custom template ends all lines on invoices with <br />. So our invoice lines look like: Colocation rackspace - (15-04-2013 - 14-05-2013)<br /> Lokatie: Evoswitch<br /> Aantal U: 46U<br /> Stroom: 25A stroom (gezekerd op 32A) no-break<br /> Dataverkeer: 150 Mbps (95%) - premium<br /> IP adressen: 1 /27 - 32 IP's (27 bruikbaar)<br /> Uplink: 1 GE poort (UTP) (N+1)<br /> Support: Best effort<br /> Although we have spoken to WHMCS support several times we are unable to find a resolution. Does anyone have any suggestion how to resolve this. Basically we do not want to process the <br /> tag because the items are already on their separate lines and we do NOT want blank lines between the invoice lines. The suggestion of WHMCS support to use nl2br only gives us TWO <br /> lines so that didn't really help.... Waiting for your suggestions 0 Quote Link to comment Share on other sites More sharing options...
omnigenus Posted March 27, 2013 Share Posted March 27, 2013 Since you see those line breaks on your invoice, i guess you don't use HTML in your PDF invoice template. Why don't you simply use tables and those line breaks will simply become normal new lines, not visible code? 0 Quote Link to comment Share on other sites More sharing options...
Erik H. Posted March 27, 2013 Author Share Posted March 27, 2013 When we use the "default" template, that IS processing HTML, we have blank lines between the product lines. This is really ugly. Basically we don't want to have/see/process the <br /> 0 Quote Link to comment Share on other sites More sharing options...
omnigenus Posted March 27, 2013 Share Posted March 27, 2013 Try changing the items loop to this: foreach ($invoiceitems AS $item) { $tblhtml .= ' <tr bgcolor="#fff"> <td align="left">'.$item['description'].'</td> <td align="center">'.$item['amount'].'</td> </tr>'; } 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.