This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/themes/default/blocks/payment/allocate.tpl

52 lines
1.9 KiB
Smarty
Raw Normal View History

2010-11-29 22:41:08 +00:00
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
<!-- @todo change to exe() -->
{$method->exe_noauth($meth.0,$meth.1)}
{if ($method->result == false)}
{$block->display('core:method_error')}
{else}
{include file='file:../core/search_show_pre.tpl'}
<!-- Display each record -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td class="table_heading">{t}Invoice Date{/t}</td>
<td class="table_heading">{t}Invoice Number{/t}</td>
<td class="table_heading">{t}Invoice Amount{/t}</td>
<td class="table_heading">{t}Invoice Balance{/t}</td>
<td class="table_heading">{t}Allocate{/t}</td>
</tr>
{foreach from=$invoices item=record}
<tr id="row{$record.id}" onclick="row_sel('{$record.id}',1);" ondblclick="window.location='?_page=invoice:view&amp;id={$record.id},';" onmouseover="row_mouseover('{$record.id}','row_mouse_over_select','row_mouse_over');" onmouseout="row_mouseout('{$record.id}','{$record._C}','row_select');" class="{$record._C}">
<td>{$list->date($record.date_orig)}</td>
<td id="record{$record.id}" style="width: 150px;">{$record.id}</td>
<td>{$list->format_currency_num($record.total_amt,$smarty.const.SESS_CURRENCY)} ({$list->format_currency_num($record.credit_amt,$smarty.const.SESS_CURRENCY)})</td>
<td>{$list->format_currency_num($record.balance,$smarty.const.SESS_CURRENCY)}</td>
<td><input type="text" name="payment_item_allocate[{$record.id}]" value="{$record.alloc_amt}"/></td>
</tr>
{/foreach}
</table>
</td>
</tr>
<tr class="row1">
<td>&nbsp;</td>
</tr>
<tr class="row2">
{include file='file:../core/view_td_submit.tpl'}
</tr>
</table>
<div>
<input type="hidden" name="do[]" value="payment_item:allocate"/>
</div>
</form>
</div>
{/if}