lims Posted March 6, 2019 Share Posted March 6, 2019 (edited) i'm already custom for viewinvoice.tpl & invoicepdf.tpl some modified only show if invoice paid and refund and replace Balance to Credit Balance 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 any idea for display available balance ? @brian! help me Edited March 6, 2019 by lims 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 6, 2019 Share Posted March 6, 2019 20 minutes ago, lims said: any idea for display available balance ? 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. 1 Quote Link to comment Share on other sites More sharing options...
lims Posted March 6, 2019 Author Share Posted March 6, 2019 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 🤞 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.