Primer commit del sistema avantika sin cambios
This commit is contained in:
@@ -0,0 +1,313 @@
|
||||
<?php /* Smarty version Smarty3-b7, created on 2014-09-11 10:29:37
|
||||
compiled from "./templates/forms/agregar-factura.tpl" */ ?>
|
||||
<?php /*%%SmartyHeaderCode:9886695365411bfe196ee19-01561789%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
||||
$_smarty_tpl->decodeProperties(array (
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'2d6e31e5d15342b8a3b94db152d7a5a175d8b10a' =>
|
||||
array (
|
||||
0 => './templates/forms/agregar-factura.tpl',
|
||||
1 => 1410130449,
|
||||
),
|
||||
),
|
||||
'nocache_hash' => '9886695365411bfe196ee19-01561789',
|
||||
'function' =>
|
||||
array (
|
||||
),
|
||||
'has_nocache_code' => false,
|
||||
)); /*/%%SmartyHeaderCode%%*/?>
|
||||
<div id="divForm">
|
||||
<form id="nuevaFactura" name="nuevaFactura" method="post">
|
||||
<input type="hidden" id="userId" name="userId" value="" />
|
||||
<?php if ($_smarty_tpl->getVariable('ventaId')->value=="publico"){?>
|
||||
<input type="hidden" id="tickets" name="tickets" value="<?php echo $_smarty_tpl->getVariable('notasPorFacturar')->value;?>
|
||||
" />
|
||||
<?php }else{ ?>
|
||||
<input type="hidden" id="ventaId" name="ventaId" value="<?php echo $_smarty_tpl->getVariable('ventaId')->value;?>
|
||||
" />
|
||||
<?php }?>
|
||||
<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="<?php echo $_smarty_tpl->getVariable('post')->value['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="<?php echo $_smarty_tpl->getVariable('post')->value['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="<?php echo $_smarty_tpl->getVariable('post')->value['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="<?php echo $_smarty_tpl->getVariable('post')->value['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="<?php echo $_smarty_tpl->getVariable('post')->value['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="<?php echo $_smarty_tpl->getVariable('post')->value['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="<?php echo $_smarty_tpl->getVariable('post')->value['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="<?php echo $_smarty_tpl->getVariable('post')->value['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="<?php echo $_smarty_tpl->getVariable('post')->value['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="<?php echo $_smarty_tpl->getVariable('post')->value['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="<?php echo $_smarty_tpl->getVariable('post')->value['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="<?php echo $_smarty_tpl->getVariable('post')->value['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="<?php echo $_smarty_tpl->getVariable('post')->value['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="<?php echo $_smarty_tpl->getVariable('post')->value['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="<?php echo $_smarty_tpl->getVariable('post')->value['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">
|
||||
<?php $_smarty_tpl->tpl_vars['moneda'] = new Smarty_Variable;
|
||||
$_from = $_smarty_tpl->getVariable('tiposDeMoneda')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||||
if (count($_from) > 0){
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['moneda']->key => $_smarty_tpl->tpl_vars['moneda']->value){
|
||||
?>
|
||||
<option value="<?php echo $_smarty_tpl->getVariable('moneda')->value['tipo'];?>
|
||||
"><?php echo $_smarty_tpl->getVariable('moneda')->value['moneda'];?>
|
||||
</option>
|
||||
<?php }} ?>
|
||||
</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">
|
||||
<?php $_smarty_tpl->tpl_vars['iva'] = new Smarty_Variable;
|
||||
$_from = $_smarty_tpl->getVariable('retIvas')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||||
if (count($_from) > 0){
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['iva']->key => $_smarty_tpl->tpl_vars['iva']->value){
|
||||
?>
|
||||
<option value="<?php echo $_smarty_tpl->getVariable('iva')->value;?>
|
||||
"><?php echo $_smarty_tpl->getVariable('iva')->value;?>
|
||||
</option> <br />
|
||||
<?php }} ?>
|
||||
</select>
|
||||
</div>
|
||||
<div style="width:62px;float:left">% IEPS:</div>
|
||||
<div style="width:126px;float:left"><input name="porcentajeIEPS" id="porcentajeIEPS" type="text" value="<?php echo $_smarty_tpl->getVariable('post')->value['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="<?php echo $_smarty_tpl->getVariable('post')->value['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="<?php echo $_smarty_tpl->getVariable('post')->value['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">
|
||||
<?php $_smarty_tpl->tpl_vars['isr'] = new Smarty_Variable;
|
||||
$_from = $_smarty_tpl->getVariable('retIsrs')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||||
if (count($_from) > 0){
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['isr']->key => $_smarty_tpl->tpl_vars['isr']->value){
|
||||
?>
|
||||
<option value="<?php echo $_smarty_tpl->getVariable('isr')->value;?>
|
||||
"><?php echo $_smarty_tpl->getVariable('isr')->value;?>
|
||||
</option> <br />
|
||||
<?php }} ?>
|
||||
</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">
|
||||
<?php $_smarty_tpl->tpl_vars['comprobante'] = new Smarty_Variable;
|
||||
$_from = $_smarty_tpl->getVariable('comprobantes')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||||
if (count($_from) > 0){
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['comprobante']->key => $_smarty_tpl->tpl_vars['comprobante']->value){
|
||||
?>
|
||||
<option value="<?php echo $_smarty_tpl->getVariable('comprobante')->value['tiposComprobanteId'];?>
|
||||
-<?php echo $_smarty_tpl->getVariable('comprobante')->value['serieId'];?>
|
||||
"><?php echo $_smarty_tpl->getVariable('comprobante')->value['nombre'];?>
|
||||
- <?php echo $_smarty_tpl->getVariable('comprobante')->value['consecutivo'];?>
|
||||
</option>
|
||||
|
||||
<?php }} ?>
|
||||
</select></div>
|
||||
<div style="width:90px;float:left">Sucursal:</div>
|
||||
<div style="width:155px;float:left">
|
||||
<div class="txtFrm" style="width:140px"><?php echo $_smarty_tpl->getVariable('infSuc')->value['nombre'];?>
|
||||
</div>
|
||||
<input type="hidden" name="sucursalId" id="sucursalId" value="<?php echo $_smarty_tpl->getVariable('infSuc')->value['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="<?php echo $_smarty_tpl->getVariable('post')->value['cantidad'];?>
|
||||
" size="15" class="largeInput" placeholder="Cantidad"/></div>
|
||||
<div style="width:150px;float:left">
|
||||
<input name="noIdentificacion" id="noIdentificacion" type="text" value="<?php echo $_smarty_tpl->getVariable('post')->value['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="<?php echo $_smarty_tpl->getVariable('post')->value['unidad'];?>
|
||||
" size="15" class="largeInput" placeholder="Unidad"/></div>
|
||||
<div style="width:150px;float:left">
|
||||
<input name="valorUnitario" id="valorUnitario" type="text" value="<?php echo $_smarty_tpl->getVariable('post')->value['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">
|
||||
<?php $_smarty_tpl->tpl_vars['iva'] = new Smarty_Variable;
|
||||
$_from = $_smarty_tpl->getVariable('excentoIva')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||||
if (count($_from) > 0){
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['iva']->key => $_smarty_tpl->tpl_vars['iva']->value){
|
||||
?>
|
||||
<option value="<?php echo $_smarty_tpl->getVariable('iva')->value;?>
|
||||
"><?php echo $_smarty_tpl->getVariable('iva')->value;?>
|
||||
</option> <br />
|
||||
<?php }} ?>
|
||||
</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"><?php echo $_smarty_tpl->getVariable('post')->value['descripcion'];?>
|
||||
</textarea>
|
||||
</div>
|
||||
<div style="clear:both"></div>
|
||||
<hr />
|
||||
</div>
|
||||
</form>
|
||||
Conceptos Cargados:
|
||||
<div align="center" id="loader2" style="display:none">
|
||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
||||
/images/load.gif">
|
||||
</div>
|
||||
<div id="conceptos">
|
||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/conceptos-facturacion.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
|
||||
echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
|
||||
|
||||
</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">
|
||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/boxes/total-desglosado.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
|
||||
echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
|
||||
|
||||
</div>
|
||||
<hr />
|
||||
</div>
|
||||
|
||||
<div align="center" id="loader" style="display:none">
|
||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
||||
/images/loading.gif">
|
||||
<br>
|
||||
Generando Comprobante...
|
||||
<br />Este proceso puede tardar unos segundos.
|
||||
</div>
|
||||
|
||||
<div align="center" id="loaderPrev" style="display:none">
|
||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
||||
/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