Primer commit del sistema avantika sin cambios
This commit is contained in:
229
templates/forms/agregar-factura.tpl
Executable file
229
templates/forms/agregar-factura.tpl
Executable file
@@ -0,0 +1,229 @@
|
||||
<div id="divForm">
|
||||
<form id="nuevaFactura" name="nuevaFactura" method="post">
|
||||
<input type="hidden" id="userId" name="userId" value="" />
|
||||
{if $ventaId == "publico"}
|
||||
<input type="hidden" id="tickets" name="tickets" value="{$notasPorFacturar}" />
|
||||
{else}
|
||||
<input type="hidden" id="ventaId" name="ventaId" value="{$ventaId}" />
|
||||
{/if}
|
||||
<fieldset>
|
||||
<div id="loadingDivDatosFactura"></div>
|
||||
|
||||
<div class="formLine" style="text-align:left;">
|
||||
<div style="width:90px;float:left">RFC:</div>
|
||||
<div style="width:172px;float:left">
|
||||
<input name="rfc" id="rfc" type="text" value="{$post.rfc}" size="20" class="largeInput" onkeyup="SuggestCliente()"/>
|
||||
<div style="position:relative">
|
||||
<div class="suggestGral" style="display:none;" id="sugClteDiv"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="width:140px;float:left">Razón Social:</div>
|
||||
<div style="width:320px;float:left"><input name="razonSocial" id="razonSocial" type="text" value="{$post.razonSocial}" disabled="disabled" style="background-color:#eee" size="67" class="largeInput"/></div>
|
||||
<div style="clear:both"></div>
|
||||
|
||||
</div>
|
||||
<div class="formLine">
|
||||
<div style="width:90px;float:left">Calle:</div>
|
||||
<div style="width:320px;float:left"><input name="calle" id="calle" type="text" value="{$post.calle}" disabled="disabled" style="background-color:#eee" size="40" class="largeInput"/></div>
|
||||
<div style="width:90px;float:left">No. Exterior:</div>
|
||||
<div style="width:155px;float:left"><input name="noExt" id="noExt" type="text" value="{$post.noExt}" disabled="disabled" style="background-color:#eee" size="15" class="largeInput"/></div>
|
||||
<div style="width:90px;float:left">No. Interior:</div>
|
||||
<div style="width:155px;float:left"><input name="noInt" id="noInt" type="text" value="{$post.noInt}" disabled="disabled" style="background-color:#eee" size="18" class="largeInput"/></div>
|
||||
<div style="clear:both"></div>
|
||||
</div>
|
||||
|
||||
<div class="formLine">
|
||||
<div style="width:90px;float:left">Colonia:</div>
|
||||
<div style="width:320px;float:left"><input name="colonia" id="colonia" type="text" value="{$post.colonia}" disabled="disabled" style="background-color:#eee" size="40" class="largeInput"/></div>
|
||||
<div style="width:90px;float:left">Municipio:</div>
|
||||
<div style="width:155px;float:left"><input name="municipio" id="municipio" type="text" value="{$post.municipio}" disabled="disabled" style="background-color:#eee" size="15" class="largeInput"/></div>
|
||||
<div style="width:90px;float:left">Estado:</div>
|
||||
<div style="width:155px;float:left"><input name="estado" id="estado" type="text" value="{$post.estado}" disabled="disabled" style="background-color:#eee" size="18" class="largeInput" /></div>
|
||||
<div style="clear:both"></div>
|
||||
</div>
|
||||
|
||||
<div class="formLine">
|
||||
<div style="width:90px;float:left">Localidad:</div>
|
||||
<div style="width:320px;float:left"><input name="localidad" id="localidad" type="text" value="{$post.localidad}" disabled="disabled" style="background-color:#eee" size="40" class="largeInput"/></div>
|
||||
<div style="width:90px;float:left">CP:</div>
|
||||
<div style="width:155px;float:left"><input name="cp" id="cp" type="text" value="{$post.cp}" disabled="disabled" style="background-color:#eee" size="15" class="largeInput"/></div>
|
||||
<div style="width:90px;float:left">Pais:</div>
|
||||
<div style="width:155px;float:left"><input name="pais" id="pais" type="text" value="{$post.pais}" disabled="disabled" style="background-color:#eee" size="18" class="largeInput"/></div>
|
||||
<div style="clear:both"></div>
|
||||
</div>
|
||||
|
||||
<div class="formLine">
|
||||
<div style="width:90px;float:left">Referencia:</div>
|
||||
<div style="width:320px;float:left"><input name="referencia" id="referencia" type="text" value="{$post.referencia}" disabled="disabled" style="background-color:#eee" size="40" class="largeInput"/></div>
|
||||
<div style="width:90px;float:left">Email:</div>
|
||||
<div style="width:400px;float:left"><input name="email" id="email" type="text" value="{$post.email}" disabled="disabled" style="background-color:#eee" size="53" class="largeInput"/></div>
|
||||
<div style="clear:both"></div>
|
||||
</div>
|
||||
|
||||
<div class="formLine">
|
||||
<div style="width:90px;float:left">Forma de Pago:</div>
|
||||
<div style="width:320px;float:left"><input name="formaDePago" id="formaDePago" type="text" value="Pago en Una Sola Exhibicion" size="40" class="largeInput"/></div>
|
||||
<div style="width:90px;float:left">Condiciones de Pago:</div>
|
||||
<div style="width:400px;float:left"><input name="condicionesDePago" id="condicionesDePago" type="text" value="{$post.condicionesDePago}" size="53" class="largeInput"/></div>
|
||||
<div style="clear:both"></div>
|
||||
</div>
|
||||
|
||||
<div class="formLine">
|
||||
<div style="width:90px;float:left">Método de Pago:</div>
|
||||
<div style="width:200px;float:left"><input name="metodoDePago" id="metodoDePago" type="text" value="{$post.metodoPago}" size="20" class="largeInput"/></div>
|
||||
<div style="width:90px;float:left">Número de Cuenta:</div>
|
||||
<div style="width:100px;float:left"><input name="numCtaPago" id="numCtaPago" type="text" value="" size="4" class="largeInput" maxlength="4" /></div>
|
||||
<div style="width:90px;float:left">% de IVA:</div>
|
||||
<div style="width:120px;float:left">
|
||||
<select name="tasaIva" id="tasaIva" class="largeInput" style="width:100px">
|
||||
<option value="0">0</option>
|
||||
<option value="11">11</option>
|
||||
<option value="16" selected="selected">16</option>
|
||||
</select></div>
|
||||
<div style="width:90px;float:left">Tipo de Moneda:</div>
|
||||
<div style="width:120px;float:left">
|
||||
<select name="tiposDeMoneda" id="tiposDeMoneda" class="largeInput" style="width:100px">
|
||||
{foreach from=$tiposDeMoneda item=moneda}
|
||||
<option value="{$moneda.tipo}">{$moneda.moneda}</option>
|
||||
{/foreach}
|
||||
</select></div>
|
||||
<div style="clear:both"></div>
|
||||
</div>
|
||||
|
||||
<div class="formLine">
|
||||
<div style="width:90px;float:left">% Retencion Iva:</div>
|
||||
<div style="width:135px;float:left">
|
||||
<select name="porcentajeRetIva" id="porcentajeRetIva" class="largeInput">
|
||||
{foreach from=$retIvas item=iva}
|
||||
<option value="{$iva}">{$iva}</option> <br />
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
<div style="width:62px;float:left">% IEPS:</div>
|
||||
<div style="width:126px;float:left"><input name="porcentajeIEPS" id="porcentajeIEPS" type="text" value="{$post.porcentajeIEPS}" size="12" class="largeInput"/></div>
|
||||
|
||||
<div style="width:85px;float:left">% de Descuento:</div>
|
||||
<div style="width:155px;float:left"><input name="porcentajeDescuento" id="porcentajeDescuento" type="text" value="{$post.porcentajeDescuento}" size="15" class="largeInput"/></div>
|
||||
<div style="width:90px;float:left">Tipo de Cambio:</div>
|
||||
<div style="width:135px;float:left"><input name="tipoDeCambio" id="tipoDeCambio" type="text" value="{$post.tipoDeCambio}" size="18" class="largeInput"/></div>
|
||||
<div style="clear:both"></div>
|
||||
</div>
|
||||
|
||||
<div class="formLine">
|
||||
<div style="width:90px;float:left">% Retencion ISR:</div>
|
||||
<div style="width:135px;float:left">
|
||||
<select name="porcentajeRetIsr" id="porcentajeRetIsr" class="largeInput">
|
||||
{foreach from=$retIsrs item=isr}
|
||||
<option value="{$isr}">{$isr}</option> <br />
|
||||
{/foreach}
|
||||
</select></div>
|
||||
<div style="width:90px;float:left">Comprobante:</div>
|
||||
<div style="width:340px;float:left">
|
||||
<select name="tiposComprobanteId" id="tiposComprobanteId" class="largeInput" style="width:315px">
|
||||
{foreach from=$comprobantes item=comprobante}
|
||||
<option value="{$comprobante.tiposComprobanteId}-{$comprobante.serieId}">{$comprobante.nombre} - {$comprobante.consecutivo}</option>
|
||||
|
||||
{/foreach}
|
||||
</select></div>
|
||||
<div style="width:90px;float:left">Sucursal:</div>
|
||||
<div style="width:155px;float:left">
|
||||
<div class="txtFrm" style="width:140px">{$infSuc.nombre}</div>
|
||||
<input type="hidden" name="sucursalId" id="sucursalId" value="{$infSuc.sucursalId}" />
|
||||
</div>
|
||||
<div style="clear:both"></div>
|
||||
</div>
|
||||
|
||||
<div class="formLine">
|
||||
<hr />
|
||||
</div>
|
||||
|
||||
<span id="loadingDivConcepto"></span>
|
||||
<div class="formLine">
|
||||
<div style="width:150px;float:left">Cantidad:</div>
|
||||
<div style="width:150px;float:left">No. Ident:</div>
|
||||
<div style="width:150px;float:left">Unidad:</div>
|
||||
<div style="width:150px;float:left">Valor Unitario:</div>
|
||||
<div style="width:150px;float:left">Excento Iva:</div>
|
||||
<div style="clear:both"></div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<form id="conceptoForm" name="conceptoForm">
|
||||
<input type="hidden" name="type" id="type" value="" />
|
||||
<div class="formLine">
|
||||
<div style="width:150px;float:left">
|
||||
<input name="cantidad" id="cantidad" type="text" value="{$post.cantidad}" size="15" class="largeInput" placeholder="Cantidad"/></div>
|
||||
<div style="width:150px;float:left">
|
||||
<input name="noIdentificacion" id="noIdentificacion" type="text" value="{$post.noIdentificacion}" size="15" class="largeInput" placeholder="No. Identificacion"/>
|
||||
<div style="position:relative">
|
||||
<div class="suggestGral" style="display:none;" id="sugProdDiv"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="width:150px;float:left">
|
||||
<input name="unidad" id="unidad" type="text" value="{$post.unidad}" size="15" class="largeInput" placeholder="Unidad"/></div>
|
||||
<div style="width:150px;float:left">
|
||||
<input name="valorUnitario" id="valorUnitario" type="text" value="{$post.valorUnitario}" size="15" class="largeInput" placeholder="Valor Unitario"/></div>
|
||||
<div style="width:150px;float:left">
|
||||
<select name="excentoIva" id="excentoIva" class="largeInput" style="width:120px">
|
||||
{foreach from=$excentoIva item=iva}
|
||||
<option value="{$iva}">{$iva}</option> <br />
|
||||
{/foreach}
|
||||
</select></div>
|
||||
<div style="width:132px;float:left; cursor:pointer" id="agregarConceptoDiv" class="button"><span>Agregar</span></div>
|
||||
<div style="clear:both"></div>
|
||||
</div>
|
||||
<div class="formLine">
|
||||
<div style="width:30%;float:left">
|
||||
<textarea placeholder="Escribe tu concepto aqui" name="descripcion" id="descripcion" cols="33" rows="5" class="largeInput wide">{$post.descripcion}</textarea>
|
||||
</div>
|
||||
<div style="clear:both"></div>
|
||||
<hr />
|
||||
</div>
|
||||
</form>
|
||||
Conceptos Cargados:
|
||||
<div align="center" id="loader2" style="display:none">
|
||||
<img src="{$WEB_ROOT}/images/load.gif">
|
||||
</div>
|
||||
<div id="conceptos">
|
||||
{include file="$DOC_ROOT/templates/lists/conceptos-facturacion.tpl"}
|
||||
</div>
|
||||
<br /><br />
|
||||
|
||||
<div class="formLine">
|
||||
<div>Observaciones:</div>
|
||||
<div><textarea placeholder="Observaciones" name="observaciones" cols="33" rows="5" id="observaciones" class="largeInput wide"></textarea></div>
|
||||
<hr />
|
||||
</div>
|
||||
|
||||
<div class="formLine">
|
||||
<div>Totales Desglosados:</div>
|
||||
<div id="totalesDesglosadosDiv">
|
||||
{include file="$DOC_ROOT/templates/boxes/total-desglosado.tpl"}
|
||||
</div>
|
||||
<hr />
|
||||
</div>
|
||||
|
||||
<div align="center" id="loader" style="display:none">
|
||||
<img src="{$WEB_ROOT}/images/loading.gif">
|
||||
<br>
|
||||
Generando Comprobante...
|
||||
<br />Este proceso puede tardar unos segundos.
|
||||
</div>
|
||||
|
||||
<div align="center" id="loaderPrev" style="display:none">
|
||||
<img src="{$WEB_ROOT}/images/loading.gif">
|
||||
<br>
|
||||
Generando Vista Previa del Comprobante...
|
||||
<br />Este proceso puede tardar unos segundos.
|
||||
</div>
|
||||
|
||||
<div align="center" id="contTemp"></div>
|
||||
|
||||
<div style="clear:both"></div>
|
||||
<div class="formLine" style="text-align:center; padding-left:320px" id ="reemplazarBoton">
|
||||
<a class="button" id="generarFactura" name="generarFactura"><span>Generar Comprobante</span></a>
|
||||
<a class="button" id="vistaPrevia" name="vistaPrevia"><span>Vista Previa</span></a>
|
||||
</div>
|
||||
|
||||
</fieldset>
|
||||
</div>
|
||||
Reference in New Issue
Block a user