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

View File

@@ -0,0 +1,317 @@
<?php /* Smarty version Smarty3-b7, created on 2016-01-08 09:40:16
compiled from "/var/www/html/templates/ventas-ticket.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1586160899568fd860021822-27955090%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'6cadf215ee9cbaf519c629ce905c4d7215afad19' =>
array (
0 => '/var/www/html/templates/ventas-ticket.tpl',
1 => 1410130447,
),
),
'nocache_hash' => '1586160899568fd860021822-27955090',
'function' =>
array (
),
'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<html>
<head>
<title>Ticket de Venta</title>
<style type="text/css">
.txtTicket{
font-size:<?php echo $_smarty_tpl->getVariable('fontSize')->value;?>
px;
}
</style>
</head>
<body>
<table width="200" align="center" cellpadding="0" cellspacing="0" border="0" class="txtTicket">
<?php if ($_smarty_tpl->getVariable('mode')->value!="descuento"){?>
<tr>
<td align="center">
<b><?php echo $_smarty_tpl->getVariable('infE')->value['razonSocial'];?>
</b>
<br><br>
<b>DOMICILIO FISCAL</b>
<?php if ($_smarty_tpl->getVariable('infE')->value['calle']){?>
<br /><?php echo $_smarty_tpl->getVariable('infE')->value['calle'];?>
<?php }?>
<?php if ($_smarty_tpl->getVariable('infE')->value['noExt']){?>
<?php echo $_smarty_tpl->getVariable('infE')->value['noExt'];?>
<?php }?>
<?php if ($_smarty_tpl->getVariable('infE')->value['noInt']){?>
<?php echo $_smarty_tpl->getVariable('infE')->value['noInt'];?>
<?php }?>
<?php if ($_smarty_tpl->getVariable('infE')->value['colonia']){?>
<br />COL. <?php echo $_smarty_tpl->getVariable('infE')->value['colonia'];?>
<?php }?>
<?php if ($_smarty_tpl->getVariable('infE')->value['cp']){?>
<br />C.P. <?php echo $_smarty_tpl->getVariable('infE')->value['cp'];?>
<?php }?>
<?php if ($_smarty_tpl->getVariable('infE')->value['ciudad']){?>
<?php echo $_smarty_tpl->getVariable('infE')->value['ciudad'];?>
<?php }?>
<?php if ($_smarty_tpl->getVariable('infE')->value['municipio']){?>
, <?php echo $_smarty_tpl->getVariable('infE')->value['municipio'];?>
<?php }?>
<?php if ($_smarty_tpl->getVariable('infE')->value['estado']){?>
, <?php echo $_smarty_tpl->getVariable('infE')->value['estado'];?>
<?php }?>
<br /> RFC. <?php echo $_smarty_tpl->getVariable('infE')->value['rfc'];?>
<?php if ($_smarty_tpl->getVariable('infE')->value['telefono']){?>
<br /> TEL. <?php echo $_smarty_tpl->getVariable('infE')->value['telefono'];?>
<?php }?>
<br />&nbsp;
</td>
</tr>
<tr>
<td align="center">
<b>DOMICILIO ESTABLECIMIENTO</b>
<?php if ($_smarty_tpl->getVariable('infS')->value['nombre']){?>
<br /><?php echo $_smarty_tpl->getVariable('infS')->value['nombre'];?>
<?php }?>
<?php if ($_smarty_tpl->getVariable('infS')->value['calle']){?>
<br /><?php echo $_smarty_tpl->getVariable('infS')->value['calle'];?>
<?php }?>
<?php if ($_smarty_tpl->getVariable('infS')->value['noExt']){?>
<?php echo $_smarty_tpl->getVariable('infS')->value['noExt'];?>
<?php }?>
<?php if ($_smarty_tpl->getVariable('infS')->value['noInt']){?>
<?php echo $_smarty_tpl->getVariable('infS')->value['noInt'];?>
<?php }?>
<?php if ($_smarty_tpl->getVariable('infS')->value['colonia']){?>
<br />COL. <?php echo $_smarty_tpl->getVariable('infS')->value['colonia'];?>
<?php }?>
<?php if ($_smarty_tpl->getVariable('infS')->value['cp']){?>
<br />C.P. <?php echo $_smarty_tpl->getVariable('infS')->value['cp'];?>
<?php }?>
<?php if ($_smarty_tpl->getVariable('infS')->value['ciudad']){?>
<?php echo $_smarty_tpl->getVariable('infS')->value['ciudad'];?>
<?php }?>
<?php if ($_smarty_tpl->getVariable('infS')->value['municipio']){?>
, <?php echo $_smarty_tpl->getVariable('infS')->value['municipio'];?>
<?php }?>
<?php if ($_smarty_tpl->getVariable('infS')->value['estado']){?>
, <?php echo $_smarty_tpl->getVariable('infS')->value['estado'];?>
<?php }?>
<br /> RFC. <?php echo $_smarty_tpl->getVariable('infE')->value['rfc'];?>
<?php if ($_smarty_tpl->getVariable('infS')->value['telefono']){?>
<br /> TEL. <?php echo $_smarty_tpl->getVariable('infS')->value['telefono'];?>
<?php }?>
</td>
</tr>
<tr>
<td align="center">
------------------------------------------
<br />
<b>NOTA DE VENTA</b>
</td>
</tr>
<?php }?>
<tr>
<td align="center">
------------------------------------------
</td>
</tr>
<tr>
<td align="left">
<b>VENDEDOR:</b> <?php echo $_smarty_tpl->getVariable('info')->value['vendedor'];?>
</td>
</tr>
<tr>
<td align="left">
<b>CAJERO:</b> <?php echo $_smarty_tpl->getVariable('info')->value['usuario'];?>
</td>
</tr>
<tr>
<td align="center">
------------------------------------------
</td>
</tr>
<tr>
<td align="left">
<b>FOLIO NOVOMODA:</b> <?php echo $_smarty_tpl->getVariable('info')->value['ventaId'];?>
</td>
</tr>
<tr>
<td align="center">
------------------------------------------
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="txtTicket">
<tr>
<td align="center" width="33%"><b>TICKET</b> <br /> <?php echo $_smarty_tpl->getVariable('info')->value['folio'];?>
</td>
<td align="center"><b>FECHA</b> <br /> <?php echo $_smarty_tpl->getVariable('info')->value['fecha'];?>
</td>
<td align="center" width="33%"><b>HORA</b> <br /><?php echo $_smarty_tpl->getVariable('info')->value['hora'];?>
</td>
</tr>
</table>
------------------------------------------
</td>
</tr>
<tr>
<td align="left">
<table width="90%" cellpadding="0" cellspacing="0" border="0" class="txtTicket">
<tr>
<td colspan="3">
<b>CODIGO</b>
<br /><b>DESCRIPCION</b>
</td>
</tr>
<tr>
<td align="center" width="33%"><b>CANT.</b></td>
<td align="center"><b>PRECIO</b></td>
<td align="center" width="33%"><b>IMPORTE</b></td>
</tr>
<tr>
<td align="center" colspan="3">------------------------------------------</td>
</tr>
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
$_from = $_smarty_tpl->getVariable('productos')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if (count($_from) > 0){
foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
?>
<tr>
<td colspan="3">
<?php echo $_smarty_tpl->getVariable('item')->value['codigoBarra'];?>
<br /><?php echo $_smarty_tpl->getVariable('item')->value['nombre'];?>
</td>
</tr>
<tr>
<td align="center" width="33%"><?php echo $_smarty_tpl->getVariable('item')->value['cantidad'];?>
</td>
<td align="center"><?php echo number_format($_smarty_tpl->getVariable('item')->value['precioUnitario'],2,'.',',');?>
</td>
<td align="right" width="33%"><?php echo number_format($_smarty_tpl->getVariable('item')->value['total'],2,'.',',');?>
</td>
</tr>
<?php if ($_smarty_tpl->getVariable('item')->value['tipoDesc']!=''){?>
<tr>
<td align="center">Desc.</td>
<td align="center"><?php echo $_smarty_tpl->getVariable('item')->value['valDesc'];?>
<?php if ($_smarty_tpl->getVariable('item')->value['tipoDesc']=="Porcentaje"){?>%<?php }?></td>
<td align="right"><?php echo number_format($_smarty_tpl->getVariable('item')->value['totalDesc'],2,'.',',');?>
</td>
</tr>
<?php }?>
<?php }} ?>
<tr>
<td align="center" colspan="3">&nbsp;</td>
</tr>
<tr>
<td align="left" width="33%">SUBTOTAL</td>
<td align="right" colspan="2"><?php echo number_format($_smarty_tpl->getVariable('info')->value['subtotal'],2,'.',',');?>
</td>
</tr>
<?php if ($_smarty_tpl->getVariable('info')->value['tipoDesc']!=''){?>
<tr>
<td align="left" width="33%">DESC. <?php if ($_smarty_tpl->getVariable('info')->value['tipoDesc']=="Porcentaje"){?><?php echo $_smarty_tpl->getVariable('info')->value['valDesc'];?>
%<?php }?></td>
<td align="right" colspan="2">- <?php echo number_format($_smarty_tpl->getVariable('info')->value['descuento'],2,'.',',');?>
</td>
</tr>
<tr>
<td align="left" width="33%">SUBTOTAL</td>
<td align="right" colspan="2"><?php echo number_format($_smarty_tpl->getVariable('info')->value['subtotal2'],2,'.',',');?>
</td>
</tr>
<?php }?>
<tr>
<td align="left" width="33%">IVA</td>
<td align="right" colspan="2"><?php echo number_format($_smarty_tpl->getVariable('info')->value['iva'],2,'.',',');?>
</td>
</tr>
<tr>
<td align="center" colspan="3">------------------------------------------</td>
</tr>
<tr>
<td align="left" width="33%"><b>TOTAL</b></td>
<td align="right" colspan="2"><b><?php echo number_format($_smarty_tpl->getVariable('info')->value['total'],2,'.',',');?>
</b></td>
</tr>
<tr>
<td align="center" colspan="3">------------------------------------------</td>
</tr>
<?php if ($_smarty_tpl->getVariable('mode')->value!="descuento"){?>
<tr>
<td align="left" width="33%">SU PAGO</td>
<td align="right" colspan="2"><?php echo number_format($_smarty_tpl->getVariable('info')->value['pago'],2,'.',',');?>
</td>
</tr>
<tr>
<td align="left" width="33%">SU CAMBIO</td>
<td align="right" colspan="2"><?php echo number_format($_smarty_tpl->getVariable('info')->value['cambio'],2,'.',',');?>
</td>
</tr>
<?php }?>
</table>
</td>
</tr>
<tr>
<td align="center">&nbsp;</td>
</tr>
<?php if ($_smarty_tpl->getVariable('mode')->value!="descuento"){?>
<tr>
<td align="center">
<b>¡GRACIAS POR SU COMPRA!</b>
<br />
<b>¡LO ESPERAMOS NUEVAMENTE!</b>
<br /><br />
*** No hay devoluciones en ***
<br />
*** ropa interior y rebajas ***
<br /><br />
Comentarios en http://www.novomoda.com.mx
<br />
Regimen General de Ley Personas Morales
</td>
</tr>
<?php }?>
</table>
<?php if ($_smarty_tpl->getVariable('mode')->value!="descuento"){?>
<script type="text/javascript">
<?php if ($_smarty_tpl->getVariable('mode')->value=="cobro"){?>
window.print();
//window.close();
<?php }else{ ?>
var resp = confirm("Desea imprimir este ticket?");
if(resp)
window.print();
<?php }?>
</script>
<?php }?>
</body>
</html>