Jump to content

Modify some client viewinvoice.tpl & invoicepdf.tpl


lims

Recommended Posts

i'm already custom for viewinvoice.tpl & invoicepdf.tpl

some  modified   only show if invoice paid and refund and replace Balance to Credit Balance

Capture.thumb.PNG.755722ff7d4f3a51e69c463d7431e676.PNG

in viewinvoice.tpl its work by use this

<td class="text-right" colspan="3"><strong>{$LANG.statscreditbalance}</strong></td>
<td class="text-center">{$clientsstats.creditbalance}</td>

but i have issues in invoicepdf.tpl can't show Credit Balance Available

here this PDF :

$tblhtml .= '
    <tr height="30" bgcolor="#efefef" style="font-weight:bold;">
        <td colspan="3" align="right">' . Lang::trans('statscreditbalance') . '</td>
        <td align="center">' . $clientsstats.creditbalance . '</td>
    </tr>
</table>';
$pdf->writeHTML($tblhtml, true, false, false, false, '');

Output not get show Credit Balance Available

Capture2.thumb.PNG.73c69327a2235fd2fb767068d1170d42.PNG

any idea for display available balance ?

@brian! help me

Edited by lims
Link to comment
Share on other sites

5 minutes ago, brian! said:

have you tried the code below ?


formatcurrency($clientsdetails['credit'],$clientsdetails['currency'])

it definitely won't be clientsstats as that's only used on the site.

@brian! thanks so much.. this code is work perfect 🤞

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