Primer commit del sistema avantika sin cambios

This commit is contained in:
2026-01-06 19:42:24 -06:00
commit 3ae4be5957
7127 changed files with 440072 additions and 0 deletions

46
templates/items/ventas-base.tpl Executable file
View File

@@ -0,0 +1,46 @@
{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>