Jump to content

Unpaid invoices on Client Summary page (admin)


Patty

Recommended Posts

I'm trying to place a list of unpaid invoice on the Client Summary page so I can see right away the info about due payment for clients and with one click go to the invoice page.

 

I tried to copy the code for domain info but it's not working, it doesn't show anything. Could someone take a look at the code below and tell me what I'm doing wrong and how to make it right?

 

TIA for any clues.

 

Here's the code:

 

<table width="100%" class="form">
<tr><td colspan="2" class="fieldarea" style="text-align:center;"><strong>Invoices Due</strong></td></tr>
<tr><td align="center">
<div class="tablebg">
<table class="datatable" width="100%" border="0" cellspacing="1" cellpadding="3">
<tr><th width="20"></th><th>ID</th><th>Invoice Date</th><th>Due Date</th><th>Amount</th><th>Status</th><th width="20"></th></tr>
{foreach key=num from=$invoicesummary item=invoice}
<tr><td><input type="checkbox" name="selinvoices[]" value="{$invoice.id}" /></td><td><a href="clientsinvoices.php?userid={$clientsdetails.userid}&invoiceid={$invoice.id}">{$invoice.idshort}</a></td><td>{$invoice.date}</td><td>{$invoice.duedate}</td><td>{$invoice.total}</td><td>{$invoice.status}</td><td><a href="clientsinvoice.php?userid={$clientsdetails.userid}&invoiceid={$invoice.id}"><img src="images/edit.gif" width="16" height="16" border="0" alt="Edit"></a></td></tr>
{foreachelse}
<tr><td colspan="9">No Unpaid Invoices</td></tr>
{/foreach}
</table>
</div>
</td></tr></table>
<img src="images/spacer.gif" width="1" height="4" /><br />

Link to comment
Share on other sites

I'm also trying to show client's billable items on his summary page but it's not working either. This is the code I'm using.

 

Would somebody pleeeeease take a look and tell me what I'm doing wrong? What are the correct variables to use?

 

I'd be grateful if someone with more knowledge than me could shed a light.

 

TIA :)

 

<table width="100%" class="form">
<tr><td colspan="2" class="fieldarea" style="text-align:center;"><strong>Billable Items</strong></td></tr>
<tr><td align="center">
<div class="tablebg">
<table class="datatable" width="100%" border="0" cellspacing="1" cellpadding="3">
<tr><th width="20"></th><th>ID</th><th>Description</th><th>Due Date</th><th>Amount</th><th width="20"></th></tr>
{foreach key=num from=$billableitems item=billableitem}
<tr><td><input type="checkbox" name="selbillableitem[]" value="{$billableitem.id}" /></td><td><a href="clientsbillableitems.php?userid={$clientsdetails.userid}&billableitemid={$billableitem.id}">{$billableitem.id}</a></td><td>{$billableitem.description}</td><td>{$billableitem.duedate}</td><td>{$billableitem.amount}</td><td><a href="clientsbillableitems.php?userid={$clientsdetails.userid}&billableitemid={$billableitem.id}"><img src="images/edit.gif" width="16" height="16" border="0" alt="Edit"></a></td></tr>
{foreachelse}
<tr><td colspan="9">No Billable Items</td></tr>
{/foreach}
</table>
</div>
</td></tr></table>

Link to comment
Share on other sites

  • 2 weeks later...

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