Jump to content

subtotal field in my client area invoices page not showing any data


srs

Recommended Posts

hi,

 

I need to display subtotal in my client area invoices page and I've added the subtotal field to my template. (see snippet of my client area invoice template below)

 

However, when i log in any client, no data gets populated to the subtotal field.

 

can someone advise me on how to fix this?

 

thanks

 

 

<form method="post" action="clientarea.php?action=masspay">

<table class="table table-striped table-framed table-centered">

<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 "Sub Total"} class="headerSort{$sort}"{/if}><a href="clientarea.php?action=invoices&orderby=Sub Total">{$LANG.invoicessubtotal}</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><a href="viewinvoice.php?id={$invoice.id}" target="_blank"><strong>{$invoice.invoicenum}</strong></a></td>

<td>{$invoice.datecreated}</td>

<td>{$invoice.datedue}</td>

<td>{$invoice.sub total}</td>

<td>{$invoice.total}</td>

<td><span class="label {$invoice.rawstatus}">{$invoice.statustext}</span></td>

<td class="textcenter"><a href="viewinvoice.php?id={$invoice.id}" target="_blank" class="btn">{$LANG.invoicesview}</a></td>

</tr>

Link to comment
Share on other sites

  • 2 weeks later...

hi there,

 

thanks, yeah i've tried debug and this is what i see on the debug list for subtotal.

 

invoicessubtotal => Sub Total

 

No data gets populated to my subtotal fields. any idea what's wrong with my code above?

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