98 lines
3.8 KiB
Smarty
Executable File
98 lines
3.8 KiB
Smarty
Executable File
<div class="grid_16" id="content">
|
|
|
|
<div class="grid_9">
|
|
<h1 class="catalogos">Productos</h1>
|
|
</div>
|
|
|
|
<div class="grid_6" id="eventbox"></div>
|
|
<div class="clear"></div>
|
|
{if $Usr.type == "almacen" || $Usr.type == "centralizador"}
|
|
{include file="forms/search-inventario-sucursal.tpl"}
|
|
{else}
|
|
{if $infR.repInvParcialId == ''}
|
|
{include file="forms/search-inventario.tpl"}
|
|
{/if}
|
|
{/if}
|
|
{if $msg != ""}
|
|
<div align="center" style="color:#009900; font-size:14px; padding-top:15px">
|
|
<img src="{$WEB_ROOT}/images/icons/ok2.png" /><br /><b>
|
|
{if $msg == "Saved"}
|
|
El producto fue agregado correctamente.
|
|
{elseif $msg == "Updated"}
|
|
El producto fue actualizado correctamente
|
|
{/if}
|
|
</b></div>
|
|
{/if}
|
|
|
|
<div class="grid_15" id="contenido">
|
|
|
|
{if $infR.repInvParcialId == ''}
|
|
{include file="lists/inventario.tpl"}
|
|
{elseif $Usr.type == 'gerente'}
|
|
{if $msgReport == 'success'}
|
|
|
|
<div align="center">
|
|
<img src="{$WEB_ROOT}/images/icons/ok2.png">
|
|
<h2>El reporte fue enviado correctamente.</h2>
|
|
</div>
|
|
|
|
<div align="center"><a href="{$WEB_ROOT}/inventario"> << Regresar</a></div>
|
|
|
|
{elseif $msgReport == 'typeFail'}
|
|
|
|
<div align="center">
|
|
<img src="{$WEB_ROOT}/images/cancel.png">
|
|
<h2>El formato del archivo es incorrecto. Debe ser *.txt</h2>
|
|
</div>
|
|
|
|
<div align="center"><a href="{$WEB_ROOT}/inventario"> << Regresar</a></div>
|
|
|
|
{elseif $infR.tipo == "Parcial"}
|
|
<div align="center">
|
|
<h2>Solicitud de Reporte de Inventario Parcial</h2>
|
|
Por favor, indique la cantidad de prendas que tiene en estos momentos de los siguientes productos:
|
|
</div>
|
|
|
|
{include file="lists/inventario-reporte.tpl"}
|
|
|
|
<div id="loader" style="padding-bottom:15px"></div>
|
|
|
|
<div class="formLine" style="text-align:center; padding-left:430px" id="btnSendR">
|
|
<a class="button" id="btnSave" onclick="SaveReportParcial()"><span>Guardar</span></a>
|
|
</div>
|
|
|
|
{else}
|
|
<div align="center">
|
|
<h2>Solicitud de Reporte de Inventario Total</h2>
|
|
Por favor, seleccione el archivo de texto (.txt) que contiene los datos de inventario:
|
|
</div>
|
|
<br />
|
|
<div align="center">
|
|
<form name="frmReporte" id="frmReporte" enctype="multipart/form-data" method="post">
|
|
<input type="hidden" name="type" id="type" value="sendReport" />
|
|
<input type="hidden" name="repInvParcialId" id="repInvParcialId" value="{$infR.repInvParcialId}" />
|
|
<input type="file" name="fileReport" id="fileReport" />
|
|
</form>
|
|
</div>
|
|
|
|
<div id="loader" style="padding:10px"></div>
|
|
|
|
<div class="formLine" style="text-align:center; padding-left:430px" id="btnSendR">
|
|
<a class="button" id="btnSave" onclick="SaveReportTotal()"><span>Guardar</span></a>
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
{else}
|
|
<div align="center">
|
|
<h2>Inventario no disponible por el momento. <br /> Se ha solicitado reporte para esta sucursal.</h2>
|
|
</div>
|
|
{/if}
|
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</div> |