2013-09-06 22:08:13 +02:00
|
|
|
TODO ***
|
2013-09-06 20:07:28 +02:00
|
|
|
{if condition="$notice != ''"}
|
|
|
|
<div id="notice"><p>{$notice}</p></div>
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
<div id="quick_summary">
|
|
|
|
<h2>Balance</h2>
|
|
|
|
<p class="center">Read <em>line</em> owes <em>case</em> {$currency} to <em>column</em>. You can click on links to confirm the payback.
|
2014-08-31 18:32:31 +02:00
|
|
|
<table id="balance_table">
|
2013-09-06 20:07:28 +02:00
|
|
|
<tr>
|
|
|
|
<th>Owes\To</th>
|
|
|
|
{loop="users"}
|
|
|
|
<th>{$value->getDisplayName()}</th>
|
|
|
|
{/loop}
|
|
|
|
</tr>
|
|
|
|
{loop="users"}
|
|
|
|
<tr>
|
|
|
|
<th>{$value->getDisplayName()}</th>
|
|
|
|
{loop="users"}
|
|
|
|
<td><a href="">{$value->getDisplayName()}</a></td>
|
|
|
|
{/loop}
|
|
|
|
</tr>
|
|
|
|
{/loop}
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div id="detailed_summary">
|
|
|
|
<h2>Detailed list of bills for last month</h2>
|
|
|
|
|
|
|
|
{if condition="count($invoices)>1"}
|
|
|
|
<table id="list_expenses">
|
|
|
|
<tr>
|
|
|
|
<th>Date</th>
|
|
|
|
<th>Paid by</th>
|
|
|
|
<th>Users in</th>
|
|
|
|
<th>Amount</th>
|
|
|
|
<th>What ?</th>
|
|
|
|
<th>Edit</th>
|
|
|
|
<th>Delete</th>
|
|
|
|
</tr>
|
|
|
|
{loop="invoices"}
|
|
|
|
<tr>
|
|
|
|
<td>{$value->getDate()}</td>
|
|
|
|
<td>{$value->getBuyer()->getDisplayName()}</td>
|
|
|
|
<td>{$value->getUsersIn()}</td>
|
|
|
|
<td>{$value->getAmount()}</td>
|
|
|
|
<td>{$value->getWhat()}</td>
|
|
|
|
<td><a href="index.php?do=edit_invoice&id={$value->getId()}">Edit</a></td>
|
|
|
|
<td><a href="index.php?do=delete_invoice&id={$value->getId()}">Delete</a></td>
|
|
|
|
</tr>
|
|
|
|
{/loop}
|
|
|
|
</table>
|
|
|
|
{else}
|
|
|
|
<p class="center">No bills added.</p>
|
|
|
|
{/if}
|
|
|
|
</div>
|