kwood Posted June 29, 2021 Share Posted June 29, 2021 I am unable to work out why i do not get a borderline separating my last item on my invoices. It even does this using the standard default invoicepdf.tpl. The example being: As you can see above, there is no line between the last two description items. # Invoice Items $tblhtml = '<table width="100%" bgcolor="#ccc" cellspacing="1" cellpadding="2" border="0"> <tr height="30" bgcolor="#2E3192" style="font-weight:bold;text-align:center;color:#fff;"> <td width="80%">' . Lang::trans('invoicesdescription') . '</td> <td width="20%">' . Lang::trans('quotelinetotal') . '</td> </tr>'; foreach ($invoiceitems as $item) { $tblhtml .= ' <tr bgcolor="#fff"> <td align="left">' . nl2br($item['description']) . '<br /></td> <td align="center">' . $item['amount'] . '</td> </tr>'; } $tblhtml .= ' <tr height="30" bgcolor="#2E3192" style="font-weight:bold;color:#fff;"> <td align="right">' . Lang::trans('invoicessubtotal') . '</td> <td align="center">' . $subtotal . '</td> </tr>'; I do not understand if the 'foreach' is working with all the other description items, why doesn't it do it for the last? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 29, 2021 Share Posted June 29, 2021 42 minutes ago, kwood said: As you can see above, there is no line between the last two description items. if you zoom in, is it there ? i've seen it occur when, on initial viewing, a line seems to be missing, but when you zoom in, it's definitely there. 0 Quote Link to comment Share on other sites More sharing options...
kwood Posted June 29, 2021 Author Share Posted June 29, 2021 2 minutes ago, brian! said: if you zoom in, is it there ? i've seen it occur when, on initial viewing, a line seems to be missing, but when you zoom in, it's definitely there. Yes it is! Thanks, I didn't think of doing that! 🤦♂️ 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.