Jump to content

Last item on invoice doesn't display its border line


kwood

Recommended Posts

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:

image.png.e965b467a244ae26fa00027ca10d1588.png

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?

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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! 🤦‍♂️

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated