44 lines
1.7 KiB
Smarty
Executable File
44 lines
1.7 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ó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"> </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">
|
|
<div style="float:left">
|
|
<select class="smallInput" name="tipoDesc_{$key}" id="tipoDesc_{$key}" onchange="UpdatePrecios({$key})">
|
|
<option value="">Sel. Descuento</option>
|
|
<option value="Dinero">En Dinero</option>
|
|
<option value="Porcentaje">En Porcentaje</option>
|
|
</select>
|
|
</div>
|
|
<div style="float:left">
|
|
<input type="text" class="smallInput" name="valDesc_{$key}" id="valDesc_{$key}" placeholder="Cantidad" onblur="UpdatePrecios({$key})" />
|
|
</div>
|
|
</td>
|
|
<td align="center"></td>
|
|
<td></td>
|
|
<td align="center"><div id="txtTotalProd_{$key}">0.00</div></td>
|
|
<td></td>
|
|
</tr>
|
|
{foreachelse}
|
|
<tr>
|
|
<td colspan="6" align="center">Ningún producto encontrado.</td>
|
|
</tr>
|
|
{/foreach}
|
|
</tbody>
|
|
</table> |