Files
ventas_php/templates/items/ventas-base.tpl

46 lines
2.0 KiB
Smarty
Executable File

{if $item.ventaIdAnt > 0}
{assign var="vClass" value="txtGreen"}
{/if}
<tr>
<td align="center">
{* if $item.status == "Activo" && $Usr.type == "facturacion"}
<input type="checkbox" id="mark-{$item.ventaId}" class="spanMark" {if $notasPorFacturarDesglosado[$item.ventaId]}checked{/if} />
{/if *}
</td>
<td align="center" class="{$vClass}"><div align="center">{$item.folio}</div></td>
<td align="center" class="{$vClass}"><div align="center">{$item.sucursal}</div></td>
<td align="center" class="{$vClass}"><div align="center">{$item.usuario}</div></td>
<td align="center" class="{$vClass}"><div align="center">{$item.fecha}</div></td>
<td align="center" class="{$vClass}"><div align="center">{$item.total|number_format:2:".":","}</div></td>
<td align="center" class="{$vClass}"><div align="center">
{if $item.cancelDev == 1 && $item.status == "Cancelado"}
Cancelado por Devoluci&oacute;n
{else}
{$item.status}
{/if}
</div></td>
<td align="center"><div align="center">
<a href="javascript:void(0)" onclick="PrintTicket({$item.ventaId})" title="Ver Ticket">
<img src="{$WEB_ROOT}/images/icons/ticket.png" border="0"/>
</a>
{*}
<a href="{$WEB_ROOT}/venta-detalles/id/{$item.ventaId}" title="Ver Detalles">
<img src="{$WEB_ROOT}/images/icons/details.png" border="0"/>
</a>
{*}
{if $item.status == "Activo" && $Usr.type == "admin"}
<a href="javascript:void(0)" onclick="CancelVentaCentral({$item.ventaId})" title="Cancelar Venta">
<img src="{$WEB_ROOT}/images/icons/delete.gif" border="0"/>
</a>
{/if}
{if $item.status == "Activo" && ($Usr.type == "facturacion" || $Usr.type == "gerente")}
<a href="{$WEB_ROOT}/facturacion-nueva/ventaId/{$item.ventaId}" title="Facturar">
<img src="{$WEB_ROOT}/images/fe.png" width="16px" border="0" />
</a>
{/if}
</div>
</td>
</tr>