Jump to content

Refill or charge?


Osaul

Recommended Posts

Hello guys,

 

We have been upgraded billing-system WHMCS up to v6.2.2 and starting use template Six. Some of our customers want to see credit balance when they login to client area. After that we found very nice solution (https://wiki.whmcs.com/showthread.php?106891-Display-Credit-Balance-In-Six-Template) and solved this issue.

 

At now we must solve next issue - most of our customers want to see in My Invoices which exactly kind of transaction have all invoices (refill or charge), but without login to each invoice. If you have more 100 invoices there are very difficult to login each and check what is exactly the invoice - charge or refill balance? Do you know some good solution? We try to find something via forum, but there are no results yet.

 

Thanks in advance.

Link to comment
Share on other sites

When we used WHMCS v.5 we found:

<table class="table table-striped table-framed table-centered no-more-tables">
   <thead>
       <tr>
           <th{if $orderby eq "id"} class="headerSort{$sort}"{/if}><a href="clientarea.php?action=invoices&orderby=id">{$LANG.invoicestitle}</a></th>
           <th{if $orderby eq "date"} class="headerSort{$sort}"{/if}><a href="clientarea.php?action=invoices&orderby=date">{$LANG.invoicesdatecreated}</a></th>
           <th{if $orderby eq "duedate"} class="headerSort{$sort}"{/if}><a href="clientarea.php?action=invoices&orderby=duedate">{$LANG.invoicesdatedue}</a></th>
           <th{if $orderby eq "total"} class="headerSort{$sort}"{/if}><a href="clientarea.php?action=invoices&orderby=total">{$LANG.invoicestotal}</a></th>
           <th{if $orderby eq "status"} class="headerSort{$sort}"{/if}><a href="clientarea.php?action=invoices&orderby=status">{$LANG.invoicesstatus}</a></th>
           <th> </th>
       </tr>
   </thead>
   <tbody>
{foreach from=$invoices item=invoice}
       <tr>
           <td data-title="{$LANG.invoicestitle}"><a href="viewinvoice.php?id={$invoice.id}" target="_blank"><strong>{$invoice.invoicenum}</strong></a></td>
           <td data-title="{$LANG.invoicesdatecreated}">{$invoice.datecreated}</td>
           <td data-title="{$LANG.invoicesdatedue}">{$invoice.datedue}</td>
           <td data-title="{$LANG.invoicestotal}">{$invoice.total}</td>
           <td data-title="{$LANG.invoicesstatus}"><span class="label {$invoice.rawstatus}">{$invoice.statustext}</span></td>
           <td class="last textcenter"><a href="viewinvoice.php?id={$invoice.id}" target="_blank" class="btn">{$LANG.invoicesview}</a></td>
       </tr>

Replaced with:

<table class="table table-striped table-framed table-centered no-more-tables">
   <thead>
       <tr>
           <th{if $orderby eq "id"} class="headerSort{$sort}"{/if}><a href="clientarea.php?action=invoices&orderby=id">{$LANG.invoicestitle}</a></th>
           <th{if $orderby eq "date"} class="headerSort{$sort}"{/if}><a href="clientarea.php?action=invoices&orderby=date">{$LANG.invoicesdatecreated}</a></th>
           <th{if $orderby eq "duedate"} class="headerSort{$sort}"{/if}><a href="clientarea.php?action=invoices&orderby=duedate">{$LANG.invoicesdatedue}</a></th>
           <th><a href="#">{$LANG.invoicetype}</a></th>
           <th{if $orderby eq "total"} class="headerSort{$sort}"{/if}><a href="clientarea.php?action=invoices&orderby=total">{$LANG.invoicestotal}</a></th>
           <th{if $orderby eq "status"} class="headerSort{$sort}"{/if}><a href="clientarea.php?action=invoices&orderby=status">{$LANG.invoicesstatus}</a></th>
           <th> </th>
       </tr>
   </thead>
   <tbody>
{foreach from=$invoices item=invoice}
       <tr>
           <td data-title="{$LANG.invoicestitle}"><a href="viewinvoice.php?id={$invoice.id}" target="_blank"><strong>{$invoice.invoicenum}</strong></a></td>
           <td data-title="{$LANG.invoicesdatecreated}">{$invoice.datecreated}</td>
           <td data-title="{$LANG.invoicesdatedue}">{$invoice.datedue}</td>
           {getinvoicetype invoiceid=$invoice.invoicenum refill=$LANG.invoicerefill charge=$LANG.invoicecharge title=$LANG.invoicetype}
           <td data-title="{$LANG.invoicestotal}">{$invoice.total}</td>
           <td data-title="{$LANG.invoicesstatus}"><span class="label {$invoice.rawstatus}">{$invoice.statustext}</span></td>
           <td class="last textcenter"><a href="viewinvoice.php?id={$invoice.id}" target="_blank" class="btn">{$LANG.invoicesview}</a></td>
       </tr>

At now we want do it for template Six. How we can correctly add this solution to clientareainvoices.tpl?

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