Patty Posted October 7, 2009 Share Posted October 7, 2009 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 /> 0 Quote Link to comment Share on other sites More sharing options...
Patty Posted October 10, 2009 Author Share Posted October 10, 2009 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> 0 Quote Link to comment Share on other sites More sharing options...
rliskey Posted October 20, 2009 Share Posted October 20, 2009 also would like to display billable items to clients. 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.