Files
ventas_php/templates/lists/monederos-historial.tpl

32 lines
983 B
Smarty
Executable File

<table width="100%" cellpadding="0" cellspacing="0" id="subTbl">
<thead>
<tr>
<th width="150" bgcolor="#00CC00"><div align="center">Fecha</div></th>
<th width="150" bgcolor="#00CC00"><div align="center">Movimiento</div></th>
<th width="150" bgcolor="#00CC00"><div align="center">Cantidad</div></th>
</tr>
</thead>
<tbody>
{foreach from=$item.historial item=it key=k}
<tr>
<td align="center">{$it.fecha|date_format:"%d-%m-%Y"}</td>
<td align="center">
{if $it.tipo == "Devolucion"}
Abono por Devoluci&oacute;n No. {$it.devolucionId}
{elseif $it.tipo == "Inicial"}
Saldo Inicial
{elseif $it.tipo == "Abono"}
Abono por Venta {$it.ventaId}
{elseif $it.tipo == "Pago"}
Pago por Venta No. {$it.ventaId}
{/if}
</td>
<td align="center">${$it.cantidad|number_format:2:'.':','}</td>
</tr>
{foreachelse}
<tr>
<td colspan="3" align="center">Ning&uacute;n movimiento encontrado.</td>
</tr>
{/foreach}
</tbody>
</table>