Files
ventas_php/templates/lists/conceptos-cobrar.tpl

34 lines
1.3 KiB
Smarty
Executable File

<table width="100%" cellpadding="0" cellspacing="0" id="boxTblC" style="border-top:1px solid #CCCCCC">
<thead>
<tr>
<th width="" align="center">Descripci&oacute;n</th>
<th width="50" align="center" height="30">Cant.</th>
<th width="90" align="center">P. Unit.</th>
<th width="90" align="center">Total</th>
<th width="20" align="center">&nbsp;</th>
</tr>
</thead>
<tbody>
{foreach from=$productos item=item key=key}
<tr>
<td align="left" class="bordeTop">{$item.nombre}</td>
<td align="center" class="bordeTop">{$item.cantidad}</td>
<td align="center" class="bordeTop">{$item.precioUnitario|number_format:2:".":","}</td>
<td align="center" class="bordeTop">{$item.total|number_format:2:".":","}</td>
<td align="center" class="bordeTop"></td>
</tr>
<tr>
<td align="left">
Desc. {if $item.tipoDesc == "Dinero"}${/if} {$item.valDesc} {if $item.tipoDesc == "Porcentaje"}%{/if}
</td>
<td align="center" colspan="2"></td>
<td align="center">{$item.totalDesc|number_format:2:".":","}</td>
<td></td>
</tr>
{foreachelse}
<tr>
<td colspan="6" align="center">Ning&uacute;n producto encontrado.</td>
</tr>
{/foreach}
</tbody>
</table>