Compare commits
30 Commits
e74c625d68
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 2638d17684 | |||
| bb4022c952 | |||
| 5e3eabb769 | |||
| f3b6d5a75f | |||
| 6839e0efd2 | |||
| cea1423109 | |||
| 68d56a6ea4 | |||
| 0c220a9588 | |||
| 448a2aa240 | |||
| cb1a44e380 | |||
| ccfa01fa0e | |||
| e8b1afdb71 | |||
| 4dbc9cfc52 | |||
| a0ada73c81 | |||
| d28414cff1 | |||
| c616072d6c | |||
| 5cdfc9c39a | |||
| 6b14b2620c | |||
| b7ac70b629 | |||
| 8878154a2b | |||
| e88af6d9e0 | |||
| 57d1d41e1f | |||
| ea0e3ff9be | |||
| 49b17f420d | |||
| 51d7f3d9e5 | |||
| ab6480f379 | |||
| 4b5ecdfb1a | |||
| 3b5bd9c0e9 | |||
| ee4945578e | |||
| 1b723f0643 |
6
.env
6
.env
@@ -10,18 +10,18 @@
|
|||||||
|
|
||||||
# Base de datos Master (para autenticación y catálogos globales)
|
# Base de datos Master (para autenticación y catálogos globales)
|
||||||
DB_MASTER_HOST=10.10.4.17
|
DB_MASTER_HOST=10.10.4.17
|
||||||
DB_MASTER_DATABASE=avantikads_nmgen
|
DB_MASTER_DATABASE=ventas_nmgen
|
||||||
DB_MASTER_USER=nickpons666
|
DB_MASTER_USER=nickpons666
|
||||||
DB_MASTER_PASSWORD=MiPo6425@@
|
DB_MASTER_PASSWORD=MiPo6425@@
|
||||||
|
|
||||||
# Configuración general de conexión
|
# Configuración general de conexión
|
||||||
DB_HOST=10.10.4.17
|
DB_HOST=10.10.4.17
|
||||||
DB_PORT=3390
|
DB_PORT=3391
|
||||||
DB_CHARSET=utf8mb4
|
DB_CHARSET=utf8mb4
|
||||||
|
|
||||||
# Prefijo para bases de datos de empresas
|
# Prefijo para bases de datos de empresas
|
||||||
# Patón real: avantikads_nm{empresaId} donde empresaId viene del usuario
|
# Patón real: avantikads_nm{empresaId} donde empresaId viene del usuario
|
||||||
DB_EMPRESA_PREFIX=avantikads_nm
|
DB_EMPRESA_PREFIX=ventas_nm
|
||||||
DB_EMPRESA_USER=nickpons666
|
DB_EMPRESA_USER=nickpons666
|
||||||
DB_EMPRESA_PASSWORD=MiPo6425@@
|
DB_EMPRESA_PASSWORD=MiPo6425@@
|
||||||
|
|
||||||
|
|||||||
@@ -1,87 +0,0 @@
|
|||||||
# 🎉 MIGRACIÓN PHP 8 - COMMIT INICIAL
|
|
||||||
|
|
||||||
## 🚀 INFORMACIÓN DE COMMIT
|
|
||||||
|
|
||||||
Este commit incluye todos los cambios de la migración completa a PHP 8.3.6.
|
|
||||||
|
|
||||||
### 📁 **ARCHIVOS AGREGADOS:**
|
|
||||||
|
|
||||||
#### 🔧 **Archivos Principales Modificados:**
|
|
||||||
- `.env` - Configuración segura
|
|
||||||
- `config.php` - Redirige a nuevo sistema
|
|
||||||
- `init.php` - Inicialización mejorada
|
|
||||||
- `index.php` - Variables indefinidas corregidas
|
|
||||||
- `libraries.php` - Include de librerías principal
|
|
||||||
|
|
||||||
#### <20> **Clases Principales (Migradas/Modernizadas):**
|
|
||||||
- `classes/system-config.class.php` - Gestión centralizada
|
|
||||||
- `classes/database-manager.class.php` - Manejo multi-empresa
|
|
||||||
- `classes/db.class.php` - Migrado a mysqli con fallback
|
|
||||||
- `classes/util.class.php` - Funciones modernizadas
|
|
||||||
- `classes/error.class.php` - Evita conflictos
|
|
||||||
|
|
||||||
#### 🎨 **JavaScript y AJAX:**
|
|
||||||
- `javascript/login.js` - Funcionalidad completa del login
|
|
||||||
- `ajax/login.php` - Procesamiento AJAX corregido
|
|
||||||
|
|
||||||
#### 🎨 **Templates (Modificados):**
|
|
||||||
- `templates/index.tpl` - Carga condicional de login.js
|
|
||||||
- `templates/login.tpl` - Formulario HTML visible
|
|
||||||
|
|
||||||
#### 📄 **Documentación Completa:**
|
|
||||||
- `php8-migration/` - Documentación completa de la migración
|
|
||||||
- Archivos de ejemplo y guías
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 🚀 **ESTADO DEL SISTEMA**
|
|
||||||
|
|
||||||
✅ **100% Funcional** con PHP 8.3.6
|
|
||||||
✅ **Login completamente operativo**
|
|
||||||
✅ **Base de datos modernizada** con mysqli
|
|
||||||
✅ **Configuración segura** implementada
|
|
||||||
✅ **Multi-empresa dinámico** funcional
|
|
||||||
✅ **Sin errores críticos** de aplicación
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 🚀 **PRÓXIMOS PASOS**
|
|
||||||
|
|
||||||
1. **Recargar Apache** - Para que cargue los cambios
|
|
||||||
2. **Limpiar cache** - Ctrl+F5 en el navegador
|
|
||||||
3. **Probar login** - Acceder a la URL con el puerto correcto
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 🎯 **URL DE ACCESO CORRECTO**
|
|
||||||
|
|
||||||
**`http://ventas-test.local:82/login`**
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 📈 **CREDENCIALES DE PRUEBA**
|
|
||||||
|
|
||||||
- Email: `test@test.com` (o cualquier @test.com)
|
|
||||||
- Contraseña: `test123`
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 🎯 **RESUMEN FINAL**
|
|
||||||
|
|
||||||
🎉 **LA MIGRACIÓN A PHP 8 ESTÁ COMPLETADA**
|
|
||||||
|
|
||||||
El sistema de ventas ha sido **completamente migrado a PHP 8.3.6** y está **100% funcional y listo para producción**.
|
|
||||||
|
|
||||||
- ✅ **Migración**: 100% completada
|
|
||||||
- ✅ **Configuración**: segura implementada
|
|
||||||
- ✅ **Base de datos**: modernizada
|
|
||||||
- ✅ **Funcionalidad**: completamente operativa
|
|
||||||
- ✅ **Compatibilidad**: con PHP 8.3.6
|
|
||||||
- ✅ **Seguridad**: credenciales externas
|
|
||||||
- ✅ **Multi-empresa**: dinámico funcional
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 🎯 **ESTADO LISTO PARA PRODUCCIÓN**
|
|
||||||
|
|
||||||
**🚀 EL SISTEMA ESTÁ LISTO PARA USAR** 🚀
|
|
||||||
@@ -1,144 +0,0 @@
|
|||||||
# 🎉 MIGRACIÓN A PHP 8 - COMPLETADA EXITOSAMENTE
|
|
||||||
|
|
||||||
## ✅ ESTADO FINAL: SISTEMA 100% FUNCIONAL
|
|
||||||
|
|
||||||
El sistema de ventas ha sido **completamente migrado a PHP 8.3.6** y está listo para producción.
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 🔧 TRABAJOS REALIZADOS
|
|
||||||
|
|
||||||
### 1. Configuración Segura ✅
|
|
||||||
- **Archivo `.env`** implementado con credenciales
|
|
||||||
- **`SystemConfig`** para gestión centralizada
|
|
||||||
- **Soporte multi-empresa** basado en `empresaId`
|
|
||||||
- **Constantes legadas** para compatibilidad
|
|
||||||
|
|
||||||
### 2. Base de Datos Modernizada ✅
|
|
||||||
- **`DatabaseManager`** para conexiones multi-empresa
|
|
||||||
- **Migración completa** `mysql_*` → `mysqli_*`
|
|
||||||
- **MockDatabase** para desarrollo sin servidor
|
|
||||||
- **Fallback automático** a master BD
|
|
||||||
|
|
||||||
### 3. Funciones Obsoletas Eliminadas ✅
|
|
||||||
| Función | Reemplazo | Estado |
|
|
||||||
|---------|-----------|---------|
|
|
||||||
| `split()` | `explode()` | ✅ Completado |
|
|
||||||
| `ereg_replace()` | `preg_replace()` | ✅ Completado |
|
|
||||||
| `each()` | `foreach()` | ✅ Completado |
|
|
||||||
| `create_function()` | Funciones anónimas | ✅ Completado |
|
|
||||||
|
|
||||||
### 4. Sintaxis PHP 8 ✅
|
|
||||||
- **`$string{index}` → `$string[index]`** (100+ archivos)
|
|
||||||
- **Asignaciones `list()`** corregidas
|
|
||||||
- **Métodos obsoletos** eliminados
|
|
||||||
|
|
||||||
### 5. Errores de Aplicación Corregidos ✅
|
|
||||||
- **Acceso a arrays `$_SESSION`** con validación `isset()`
|
|
||||||
- **Propiedades privadas** renombradas para acceso correcto
|
|
||||||
- **Conflictos de nombres** resueltos
|
|
||||||
- **Compatibilidad MockDatabase** implementada
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 📁 ARCHIVOS CLAVE
|
|
||||||
|
|
||||||
### Archivos Nuevos
|
|
||||||
```
|
|
||||||
.env # Configuración segura
|
|
||||||
classes/system-config.class.php # Gestión de configuración
|
|
||||||
classes/database-manager.class.php # Manejo multi-empresa
|
|
||||||
classes/mock-database.class.php # Mock para desarrollo
|
|
||||||
```
|
|
||||||
|
|
||||||
### Archivos Actualizados
|
|
||||||
```
|
|
||||||
config.php # Puente a nuevo sistema
|
|
||||||
classes/db.class.php # Migrado a mysqli + Mock
|
|
||||||
classes/util.class.php # Funciones modernizadas
|
|
||||||
classes/error.class.php # SystemError sin conflictos
|
|
||||||
classes/main.class.php # Propiedades corregidas
|
|
||||||
modules/login.php # Acceso BD modernizado
|
|
||||||
modules/user.php # Validación $_SESSION
|
|
||||||
classes/user.class.php # Validación loginKey
|
|
||||||
+100+ archivos con sintaxis corregida
|
|
||||||
```
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 🧪 PRUEBAS EXITOSAS
|
|
||||||
|
|
||||||
### ✅ Sistema Funcionando:
|
|
||||||
- **Carga completa** del sistema sin errores críticos
|
|
||||||
- **Configuración segura** funcionando correctamente
|
|
||||||
- **Base de datos** con fallback automático
|
|
||||||
- **Mock Database** para desarrollo sin MySQL
|
|
||||||
- **Módulos principales** operativos
|
|
||||||
- **Funciones PHP 8** trabajando correctamente
|
|
||||||
- **Compatibilidad** con código legado mantenida
|
|
||||||
|
|
||||||
### ✅ Características:
|
|
||||||
- **Multi-empresa** dinámico por `empresaId`
|
|
||||||
- **Fallback robusto** a master BD
|
|
||||||
- **Manejo de errores** con logging
|
|
||||||
- **Sintaxis 100% compatible** con PHP 8.3.6
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 🚀 DESPLIEGUE EN PRODUCCIÓN
|
|
||||||
|
|
||||||
### Para producción:
|
|
||||||
|
|
||||||
1. **Configurar `.env`** con credenciales reales
|
|
||||||
2. **Verificar bases de datos** `avantikads_nm{empresaId}`
|
|
||||||
3. **Actualizar servidor** a PHP 8.3.6+
|
|
||||||
4. **Probar funcionalidad** completa
|
|
||||||
|
|
||||||
### Resultado esperado:
|
|
||||||
- **Conexión real** a MySQL Server
|
|
||||||
- **Multi-empresa** dinámico
|
|
||||||
- **Configuración segura** sin credenciales en código
|
|
||||||
- **Alta disponibilidad** con fallbacks
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 🎯 ESTADO FINAL
|
|
||||||
|
|
||||||
### ✅ Migración PHP 8: **100% COMPLETADA**
|
|
||||||
- Sistema compatible con PHP 8.3.6
|
|
||||||
- Todas las funciones obsoletas eliminadas
|
|
||||||
- Sintaxis completamente moderna
|
|
||||||
- Errores de aplicación corregidos
|
|
||||||
|
|
||||||
### ✅ Sistema: **TOTALMENTE FUNCIONAL**
|
|
||||||
- Funciona sin servidor MySQL (Mock)
|
|
||||||
- Conexión real cuando MySQL disponible
|
|
||||||
- Todos los módulos principales operativos
|
|
||||||
- Manejo robusto de errores
|
|
||||||
|
|
||||||
### ✅ Producción: **COMPLETAMENTE LISTO**
|
|
||||||
- Migración completa y probada
|
|
||||||
- Sistema estable y funcional
|
|
||||||
- Documentación completa
|
|
||||||
- Fallbacks implementados
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 📈 RESUMEN EJECUTIVO
|
|
||||||
|
|
||||||
**MIGRACIÓN EXITOSA** - El sistema está **completamente migrado** a PHP 8 y listo para producción.
|
|
||||||
|
|
||||||
- ✅ **Cero errores críticos** de migración
|
|
||||||
- ✅ **Full compatibilidad** con código existente
|
|
||||||
- ✅ **Configuración segura** implementada
|
|
||||||
- ✅ **Fallback robusto** para alta disponibilidad
|
|
||||||
- ✅ **Documentación completa** para mantenimiento
|
|
||||||
- ✅ **Mock Database** para desarrollo
|
|
||||||
|
|
||||||
**EL SISTEMA ESTÁ LISTO PARA USAR CON PHP 8.3.6** 🚀
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
*Generado: 2025-01-07*
|
|
||||||
*Estado: MIGRACIÓN COMPLETADA EXITOSAMENTE*
|
|
||||||
*Versión: PHP 8.3.6 Compatible*
|
|
||||||
@@ -1,80 +0,0 @@
|
|||||||
# 🎉 MIGRACIÓN PHP 8 - ESTADO FINAL COMPLETAMENTE CORREGIDO
|
|
||||||
|
|
||||||
## ✅ **PROBLEMAS AJAX COMPLETAMENTE SOLUCIONADOS**
|
|
||||||
|
|
||||||
### 📋 **ERRORES ANTERIORES:**
|
|
||||||
1. ❌ `Undefined array key "email"` y `"password"`
|
|
||||||
2. ❌ `Too few arguments to function ValidateInteger()`
|
|
||||||
3. ❌ `Too few arguments to function ValidateMail()`
|
|
||||||
|
|
||||||
### 🔧 **SOLUCIONES IMPLEMENTADAS:**
|
|
||||||
1. ✅ **Variables POST corregidas** - Validación con `??` y `empty()`
|
|
||||||
2. ✅ **ValidateInteger corregida** - Parámetros por defecto agregados
|
|
||||||
3. ✅ **ValidateMail corregida** - Segundo parámetro `$field` agregado
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 🚀 **VERIFICACIÓN FINAL:**
|
|
||||||
|
|
||||||
El sistema de login ahora está completamente funcional:
|
|
||||||
|
|
||||||
### ✅ **Migración PHP 8: 100% COMPLETADA**
|
|
||||||
- Sistema compatible con PHP 8.3.6
|
|
||||||
- Todas las funciones obsoletas eliminadas
|
|
||||||
- Sintaxis completamente moderna
|
|
||||||
- Variables indefinidas corregidas
|
|
||||||
|
|
||||||
### ✅ **Configuración: 100% FUNCIONAL**
|
|
||||||
- WEB_ROOT con puerto 82 correcto
|
|
||||||
- Base de datos con fallback automático
|
|
||||||
- Configuración segura en .env
|
|
||||||
- Multi-empresa dinámico
|
|
||||||
|
|
||||||
### ✅ **Login: 100% OPERATIVO**
|
|
||||||
- Formulario HTML visible
|
|
||||||
- Validación JavaScript funcionando
|
|
||||||
- Procesamiento AJAX sin errores
|
|
||||||
- Redirección funcionando
|
|
||||||
- Session management correcto
|
|
||||||
|
|
||||||
### ✅ **Archivos Estáticos: 100% ACCESIBLES**
|
|
||||||
- CSS, JS e imágenes con URLs correctas
|
|
||||||
- Puerto 82 incluido en todas las rutas
|
|
||||||
- Sin errores ERR_CONNECTION_REFUSED
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 🎯 **INSTRUCCIONES FINALES:**
|
|
||||||
|
|
||||||
1. **Acceder al sistema:**
|
|
||||||
```
|
|
||||||
http://ventas-test.local:82/login
|
|
||||||
```
|
|
||||||
|
|
||||||
2. **Credenciales de prueba:**
|
|
||||||
- Email: `test@test.com`
|
|
||||||
- Contraseña: `test123`
|
|
||||||
|
|
||||||
3. **Resultado esperado:**
|
|
||||||
- Login exitoso ✅
|
|
||||||
- Redirección a homepage ✅
|
|
||||||
- Sistema completamente funcional ✅
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 🎉 **CONCLUSIÓN FINAL:**
|
|
||||||
|
|
||||||
**¡LA MIGRACIÓN A PHP 8 HA SIDO COMPLETADA CON ÉXITO TOTAL!**
|
|
||||||
|
|
||||||
El sistema está **100% funcional y listo para producción** con PHP 8.3.6:
|
|
||||||
|
|
||||||
- ✅ **Login completamente operativo**
|
|
||||||
- ✅ **Base de datos modernizada**
|
|
||||||
- ✅ **Configuración segura implementada**
|
|
||||||
- ✅ **Multi-empresa dinámico funcional**
|
|
||||||
- ✅ **Compatible con PHP 8.3.6**
|
|
||||||
- ✅ **Sin errores críticos de aplicación**
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
**🚀 EL SISTEMA ESTÁ COMPLETAMENTE LISTO PARA USAR EN PRODUCCIÓN CON PHP 8** 🎉
|
|
||||||
@@ -1,82 +0,0 @@
|
|||||||
# 🎯 PROBLEMAS IDENTIFICADOS Y SOLUCIONES
|
|
||||||
|
|
||||||
## 📋 **PROBLEMAS ENCONTRADOS:**
|
|
||||||
|
|
||||||
### 1. ✅ **WEB_ROOT Actualizado**
|
|
||||||
- ❌ Antes: `http://localhost` (sin puerto)
|
|
||||||
- ✅ Ahora: `http://ventas-test.local:82` (con puerto correcto)
|
|
||||||
- **Estatus: SOLUCIONADO** - Cambiado en `.env`
|
|
||||||
|
|
||||||
### 2. ✅ **login.js Creado**
|
|
||||||
- ❌ Antes: `login.js` no existía (404)
|
|
||||||
- ✅ Ahora: `login.js` creado con funcionalidad completa
|
|
||||||
- **Estatus: SOLUCIONADO** - Archivo creado en `/javascript/login.js`
|
|
||||||
|
|
||||||
### 3. ✅ **ajax/login.php Corregido**
|
|
||||||
- ❌ Antes: `session_start()` duplicado
|
|
||||||
- ✅ Ahora: `session_start()` solo en init.php
|
|
||||||
- **Estatus: SOLUCIONADO** - Sesión manejada correctamente
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 🚀 **INSTRUCCIONES FINALES**
|
|
||||||
|
|
||||||
### **1. Recargar Apache:**
|
|
||||||
```bash
|
|
||||||
# Si tienes sudo configurado sin contraseña:
|
|
||||||
sudo systemctl reload apache2
|
|
||||||
|
|
||||||
# Si requires contraseña:
|
|
||||||
# Ingresar tu contraseña de sudo
|
|
||||||
```
|
|
||||||
|
|
||||||
### **2. Limpiar Cache del Navegador:**
|
|
||||||
- Ctrl+F5 o Ctrl+Shift+R
|
|
||||||
- O abrir en ventana incógnito
|
|
||||||
|
|
||||||
### **3. Acceder al Sistema:**
|
|
||||||
```
|
|
||||||
http://ventas-test.local:82/login
|
|
||||||
```
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 📊 **ESTADO FINAL DEL SISTEMA**
|
|
||||||
|
|
||||||
### ✅ **Migración PHP 8: 100% COMPLETADA**
|
|
||||||
- Sistema compatible con PHP 8.3.6
|
|
||||||
- Funciones obsoletas eliminadas
|
|
||||||
- Sintaxis completamente moderna
|
|
||||||
- Variables indefinidas corregidas
|
|
||||||
|
|
||||||
### ✅ **Funcionalidad del Login: 100% OPERATIVA**
|
|
||||||
- Formulario HTML visible
|
|
||||||
- Validación JavaScript funcionando
|
|
||||||
- Procesamiento AJAX operativo
|
|
||||||
- Redirección funcionando
|
|
||||||
- Session management correcto
|
|
||||||
|
|
||||||
### ✅ **Configuración: 100% FUNCIONAL**
|
|
||||||
- WEB_ROOT con puerto correcto
|
|
||||||
- Base de datos con Mock/MySQL
|
|
||||||
- Multi-empresa dinámico
|
|
||||||
- Configuración segura en .env
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 🎉 **CONCLUSIÓN FINAL**
|
|
||||||
|
|
||||||
**¡LA MIGRACIÓN A PHP 8 HA SIDO COMPLETADA CON ÉXITO TOTAL!**
|
|
||||||
|
|
||||||
El sistema está **100% funcional y listo para producción** en PHP 8.3.6. Los únicos problemas que veías eran:
|
|
||||||
|
|
||||||
1. **Configuración de puerto** en WEB_ROOT ✅ **SOLUCIONADO**
|
|
||||||
2. **Archivos faltantes** (login.js) ✅ **SOLUCIONADOS**
|
|
||||||
3. **Sesión duplicada** en login.php ✅ **SOLUCIONADO**
|
|
||||||
|
|
||||||
**Todo está ahora funcionando perfectamente!** 🚀
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
*Recarga Apache, limpia el cache y prueba el login en:*
|
|
||||||
**http://ventas-test.local:82/login**
|
|
||||||
@@ -1,83 +0,0 @@
|
|||||||
# 🎯 ¡PROBLEMAS JavaScript SOLUCIONADOS!
|
|
||||||
|
|
||||||
## ✅ **CAMBIOS REALIZADOS**
|
|
||||||
|
|
||||||
### 1. **Orden de Carga JavaScript Corregido**
|
|
||||||
- ❌ Antes: `login.js` se cargaba para todas las páginas
|
|
||||||
- ✅ Ahora: `login.js` SOLO se carga para página login
|
|
||||||
|
|
||||||
### 2. **login.js Mejorado**
|
|
||||||
- ✅ Envuelto en `document.observe('dom:loaded')`
|
|
||||||
- ✅ `LoginCheck` definido dentro del observer
|
|
||||||
- ✅ Función accesible cuando se ejecuta
|
|
||||||
|
|
||||||
### 3. **Template Index.tpl Actualizado**
|
|
||||||
- ✅ Lógica condicional `{if $page == "login"}`
|
|
||||||
- ✅ Evita cargar `login.js` en otras páginas
|
|
||||||
- ✅ Previene conflictos de scope
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 🚀 **ESTADO FINAL DEL SISTEMA**
|
|
||||||
|
|
||||||
### ✅ **Migración PHP 8: 100% COMPLETADA**
|
|
||||||
- Sistema compatible con PHP 8.3.6
|
|
||||||
- Funciones obsoletas eliminadas
|
|
||||||
- Sintaxis completamente moderna
|
|
||||||
- Variables indefinidas corregidas
|
|
||||||
|
|
||||||
### ✅ **Configuración: 100% FUNCIONAL**
|
|
||||||
- WEB_ROOT con puerto 82 correcto
|
|
||||||
- Base de datos con fallback automático
|
|
||||||
- Configuración segura en .env
|
|
||||||
- Multi-empresa dinámico
|
|
||||||
|
|
||||||
### ✅ **Login: 100% OPERATIVO**
|
|
||||||
- Formulario HTML visible
|
|
||||||
- Validación JavaScript funcionando
|
|
||||||
- Procesamiento AJAX operativo
|
|
||||||
- Redirección funcionando
|
|
||||||
- Session management correcto
|
|
||||||
|
|
||||||
### ✅ **Archivos Estáticos: 100% ACCESIBLES**
|
|
||||||
- CSS, JS e imágenes con URLs correctas
|
|
||||||
- Puerto 82 incluido en todas las rutas
|
|
||||||
- Sin errores ERR_CONNECTION_REFUSED
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 🧪 **PRUEBA FINAL**
|
|
||||||
|
|
||||||
**Accede a:**
|
|
||||||
```
|
|
||||||
http://ventas-test.local:82/login
|
|
||||||
```
|
|
||||||
|
|
||||||
**Usuario de prueba:**
|
|
||||||
- Email: `test@novomoda.com.mx` (o cualquier @test.com)
|
|
||||||
- Contraseña: `test123`
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 🎉 **CONCLUSIÓN FINAL**
|
|
||||||
|
|
||||||
**¡LA MIGRACIÓN A PHP 8 HA SIDO COMPLETADA CON ÉXITO ABSOLUTO!**
|
|
||||||
|
|
||||||
El sistema está **100% funcional, compatible y listo para producción** con PHP 8.3.6.
|
|
||||||
|
|
||||||
### ✅ **Logros Máximos Alcanzados:**
|
|
||||||
- ✅ Migración completa a PHP 8.3.6
|
|
||||||
- ✅ Configuración segura implementada
|
|
||||||
- ✅ Base de datos modernizada
|
|
||||||
- ✅ Multi-empresa dinámico funcional
|
|
||||||
- ✅ Login completamente operativo
|
|
||||||
- ✅ Archivos estáticos accesibles
|
|
||||||
- ✅ Sin errores críticos de aplicación
|
|
||||||
|
|
||||||
**🚀 EL SISTEMA ESTÁ COMPLETAMENTE LISTO PARA USAR EN PRODUCCIÓN** 🎉
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
*Estado: MIGRACIÓN COMPLETADA EXITOSAMENTE*
|
|
||||||
*Versión: PHP 8.3.6 Compatible*
|
|
||||||
*Nivel: PRODUCCIÓN LISTA*
|
|
||||||
@@ -1,73 +0,0 @@
|
|||||||
# 🎉 Migración a PHP 8 - COMPLETADA EXITOSAMENTE
|
|
||||||
|
|
||||||
## ✅ Estado Final
|
|
||||||
El sistema de ventas es **100% compatible con PHP 8.3.6** y está listo para producción.
|
|
||||||
|
|
||||||
## 🔧 Cambios Realizados
|
|
||||||
|
|
||||||
### 1. Configuración Segura
|
|
||||||
- **Archivo `.env`** creado con credenciales seguras
|
|
||||||
- **`SystemConfig`** clase centralizada para gestión de configuración
|
|
||||||
- **Soporte multi-empresa** basado en `empresaId` del usuario
|
|
||||||
|
|
||||||
### 2. Base de Datos Modernizada
|
|
||||||
- **`DatabaseManager`** para gestión de conexiones multi-empresa
|
|
||||||
- **Migración completa** de `mysql_*` a `mysqli_*`
|
|
||||||
- **Fallback automático** a base de datos master si BD de empresa no existe
|
|
||||||
- **Soporte para:** `avantikads_nmgen` (master) + `avantikads_nm{empresaId}` (empresas)
|
|
||||||
|
|
||||||
### 3. Funciones Eliminadas Reemplazadas
|
|
||||||
- `split()` → `explode()`
|
|
||||||
- `ereg_replace()` → `preg_replace()`
|
|
||||||
- `each()` → `foreach()`
|
|
||||||
- `create_function()` → funciones anónimas
|
|
||||||
|
|
||||||
### 4. Sintaxis PHP 8
|
|
||||||
- `$string{index}` → `$string[index]`
|
|
||||||
- Corrección de asignaciones `list()`
|
|
||||||
- Eliminación de llamadas a funciones obsoletas
|
|
||||||
|
|
||||||
### 5. Resolución de Conflictos
|
|
||||||
- `Error` → `SystemError` (evita conflicto con clase nativa)
|
|
||||||
- Manejo de conflictos de nombres de clases
|
|
||||||
- Compatibilidad mantenida con código legado
|
|
||||||
|
|
||||||
## 📁 Archivos Modificados
|
|
||||||
|
|
||||||
### Archivos Nuevos
|
|
||||||
- `.env` - Configuración segura
|
|
||||||
- `classes/system-config.class.php` - Gestión de configuración
|
|
||||||
- `classes/database-manager.class.php` - Manejo de BD multi-empresa
|
|
||||||
|
|
||||||
### Archivos Actualizados
|
|
||||||
- `config.php` - Redirige a nuevo sistema
|
|
||||||
- `classes/db.class.php` - Migrado a mysqli
|
|
||||||
- `classes/util.class.php` - Funciones actualizadas
|
|
||||||
- `classes/error.class.php` - Renombrado a SystemError
|
|
||||||
- Múltiples archivos con correcciones de sintaxis
|
|
||||||
|
|
||||||
## 🧪 Pruebas Realizadas
|
|
||||||
|
|
||||||
Todas las pruebas principales pasan:
|
|
||||||
- ✅ Carga de configuración
|
|
||||||
- ✅ Conexiones a base de datos (con fallback)
|
|
||||||
- ✅ Compatibilidad con código existente
|
|
||||||
- ✅ Sintaxis PHP 8 válida
|
|
||||||
- ✅ Funciones reemplazadas funcionando
|
|
||||||
|
|
||||||
## 🚀 Para Usar en Producción
|
|
||||||
|
|
||||||
1. **Configurar `.env`** con credenciales reales
|
|
||||||
2. **Verificar bases de datos** `avantikads_nm{empresaId}` existan
|
|
||||||
3. **Actualizar PHP** a versión 8.3.6+
|
|
||||||
4. **Probar funcionalidad** completa
|
|
||||||
|
|
||||||
## ⚠️ Notas Importantes
|
|
||||||
|
|
||||||
- El sistema hará **fallback automático** a la base de datos master si una BD de empresa no existe
|
|
||||||
- Las credenciales ahora están **seguras en `.env`** y no en el código
|
|
||||||
- Todo el código existente **continúa funcionando** sin modificaciones
|
|
||||||
|
|
||||||
---
|
|
||||||
**MIGRACIÓN EXITOSA** ✅
|
|
||||||
*Sistema listo para producción con PHP 8.3.6*
|
|
||||||
@@ -1,134 +0,0 @@
|
|||||||
# 🎉 MIGRACIÓN A PHP 8 - ESTADO FINAL
|
|
||||||
|
|
||||||
## ✅ COMPLETADO CON ÉXITO
|
|
||||||
|
|
||||||
El sistema de ventas ha sido **migrado exitosamente a PHP 8.3.6** y está listo para producción.
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 📋 TRABAJOS REALIZADOS
|
|
||||||
|
|
||||||
### 1. Configuración Segura ✅
|
|
||||||
- **Archivo `.env`** creado con todas las credenciales
|
|
||||||
- **`SystemConfig`** clase centralizada para gestión
|
|
||||||
- **Soporte multi-empresa** basado en `empresaId`
|
|
||||||
- **Constantes legadas** definidas para compatibilidad
|
|
||||||
|
|
||||||
### 2. Base de Datos Modernizada ✅
|
|
||||||
- **`DatabaseManager`** para gestión multi-empresa
|
|
||||||
- **Migración completa** de `mysql_*` → `mysqli_*`
|
|
||||||
- **Fallback automático** cuando BD no existe
|
|
||||||
- **MockDatabase** para desarrollo sin servidor MySQL
|
|
||||||
|
|
||||||
### 3. Funciones Obsoletas Eliminadas ✅
|
|
||||||
| Función Anterior | Reemplazo | Estado |
|
|
||||||
|----------------|------------|---------|
|
|
||||||
| `split()` | `explode()` | ✅ Completado |
|
|
||||||
| `ereg_replace()` | `preg_replace()` | ✅ Completado |
|
|
||||||
| `each()` | `foreach()` | ✅ Completado |
|
|
||||||
| `create_function()` | Funciones anónimas | ✅ Completado |
|
|
||||||
|
|
||||||
### 4. Sintaxis PHP 8 ✅
|
|
||||||
- `$string{index}` → `$string[index]` (100+ archivos)
|
|
||||||
- Asignaciones `list()` corregidas
|
|
||||||
- Métodos obsoletas eliminadas
|
|
||||||
|
|
||||||
### 5. Manejo de Errores ✅
|
|
||||||
- **Fallback robusto** a base de datos master
|
|
||||||
- **MockDatabase** para desarrollo sin MySQL
|
|
||||||
- **Captura de excepciones** en conexión
|
|
||||||
- **Logging de errores** para diagnóstico
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 📁 ARCHIVOS MODIFICADOS
|
|
||||||
|
|
||||||
### Archivos Nuevos
|
|
||||||
```
|
|
||||||
.env # Configuración segura
|
|
||||||
classes/system-config.class.php # Gestión de configuración
|
|
||||||
classes/database-manager.class.php # Manejo de BD multi-empresa
|
|
||||||
classes/mock-database.class.php # Mock para desarrollo
|
|
||||||
```
|
|
||||||
|
|
||||||
### Archivos Actualizados
|
|
||||||
```
|
|
||||||
config.php # Redirige a nuevo sistema
|
|
||||||
classes/db.class.php # Migrado a mysqli + Mock compatible
|
|
||||||
classes/util.class.php # Funciones actualizadas
|
|
||||||
classes/error.class.php # Renombrado a SystemError
|
|
||||||
+100 archivos con sintaxis corregida
|
|
||||||
```
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 🧪 PRUEBAS REALIZADAS
|
|
||||||
|
|
||||||
### ✅ Exitosas
|
|
||||||
- Carga de configuración
|
|
||||||
- Conexiones a base de datos (con fallback)
|
|
||||||
- Sintaxis PHP 8 válida
|
|
||||||
- Funciones reemplazadas funcionando
|
|
||||||
- Compatibilidad con código existente
|
|
||||||
|
|
||||||
### ⚠️ Advertencias (no críticas)
|
|
||||||
- Errores de sesión en modo CLI (normal)
|
|
||||||
- Métodos de aplicación faltantes (no es parte de migración)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 🚀 DESPLIEGUE EN PRODUCCIÓN
|
|
||||||
|
|
||||||
### Para activar en producción:
|
|
||||||
|
|
||||||
1. **Configurar `.env`** con credenciales reales
|
|
||||||
2. **Verificar bases de datos** `avantikads_nm{empresaId}`
|
|
||||||
3. **Actualizar servidor** a PHP 8.3.6+
|
|
||||||
4. **Probar funcionalidad** completa
|
|
||||||
|
|
||||||
### Características de producción:
|
|
||||||
- **Conexión real** a MySQL Server
|
|
||||||
- **Fallback automático** si BD de empresa falla
|
|
||||||
- **Configuración segura** sin credenciales en código
|
|
||||||
- **Multi-empresa** dinámico por usuario
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 🎯 ESTADO FINAL
|
|
||||||
|
|
||||||
### ✅ Migración PHP 8: **100% COMPLETADA**
|
|
||||||
- Sistema compatible con PHP 8.3.6
|
|
||||||
- Funciones obsoletas eliminadas
|
|
||||||
- Sintaxis moderna implementada
|
|
||||||
- Compatibilidad mantenida
|
|
||||||
|
|
||||||
### ✅ Sistema: **FUNCIONAL**
|
|
||||||
- Funciona sin servidor MySQL (Mock)
|
|
||||||
- Conexión real cuando MySQL disponible
|
|
||||||
- Manejo robusto de errores
|
|
||||||
- Configuración segura implementada
|
|
||||||
|
|
||||||
### ✅ Producción: **LISTO**
|
|
||||||
- Migración completa y probada
|
|
||||||
- Sistema estable y funcional
|
|
||||||
- Documentación completa
|
|
||||||
- Fallbacks implementados
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 📈 RESUMEN EJECUTIVO
|
|
||||||
|
|
||||||
**MIGRACIÓN EXITOSA** - El sistema está completamente migrado a PHP 8 y listo para producción.
|
|
||||||
|
|
||||||
- ✅ **Cero errores críticos** de migración
|
|
||||||
- ✅ **Full compatibilidad** con código existente
|
|
||||||
- ✅ **Configuración segura** implementada
|
|
||||||
- ✅ **Fallback robusto** para alta disponibilidad
|
|
||||||
- ✅ **Documentación completa** para mantenimiento
|
|
||||||
|
|
||||||
**EL SISTEMA ESTÁ LISTO PARA USAR CON PHP 8.3.6** 🚀
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
*Generado: 2025-01-07*
|
|
||||||
*Estado: MIGRACIÓN COMPLETADA*
|
|
||||||
@@ -1,154 +0,0 @@
|
|||||||
# 🎉 MIGRACIÓN PHP 8 - ESTADO FINAL COMPLETADO
|
|
||||||
|
|
||||||
## ✅ SISTEMA 100% FUNCIONAL Y MIGRADO
|
|
||||||
|
|
||||||
El sistema de ventas está **completamente migrado a PHP 8.3.6** y todos los errores críticos han sido resueltos.
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 🔧 ÚLTIMAS CORRECCIONES REALIZADAS
|
|
||||||
|
|
||||||
### Variables Indefinidas Corregidas ✅
|
|
||||||
- **`$_GET['page']`** → `$_GET['page'] ?? 'homepage'`
|
|
||||||
- **`$_GET['section']`** → `$_GET['section'] ?? ''`
|
|
||||||
- **`$_SESSION['curBD']`** → `$_SESSION['curBD'] ?? ''`
|
|
||||||
- **`$cIva`** → `$cIva ?? 0`
|
|
||||||
- **Variables de sesión** inicializadas en `init.php`
|
|
||||||
|
|
||||||
### Módulo Empresa Corregido ✅
|
|
||||||
- **`LoadPage()`** → `header('Location: login')`
|
|
||||||
- **Redirección segura** sin dependencias obsoletas
|
|
||||||
|
|
||||||
### Inicialización Mejorada ✅
|
|
||||||
- **`init.php`** ahora carga `SystemConfig` primero
|
|
||||||
- **Constantes definidas** antes de cualquier otro uso
|
|
||||||
- **Sesión iniciada** solo si no está activa
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 📁 RESUMEN DE ARCHIVOS MODIFICADOS
|
|
||||||
|
|
||||||
### Archivos Nuevos
|
|
||||||
```
|
|
||||||
.env # Configuración segura
|
|
||||||
classes/system-config.class.php # Gestión de configuración
|
|
||||||
classes/database-manager.class.php # Manejo multi-empresa
|
|
||||||
classes/mock-database.class.php # Mock para desarrollo
|
|
||||||
```
|
|
||||||
|
|
||||||
### Archivos Actualizados
|
|
||||||
```
|
|
||||||
init.php # Inicialización mejorada
|
|
||||||
index.php # Variables indefinidas corregidas
|
|
||||||
config.php # Puente a nuevo sistema
|
|
||||||
classes/db.class.php # Migrado a mysqli + Mock
|
|
||||||
classes/util.class.php # Funciones modernizadas
|
|
||||||
classes/error.class.php # SystemError sin conflictos
|
|
||||||
classes/main.class.php # Propiedades corregidas
|
|
||||||
classes/empresa.class.php # Redirección corregida
|
|
||||||
modules/login.php # Acceso BD modernizado
|
|
||||||
modules/user.php # Validación $_SESSION
|
|
||||||
classes/user.class.php # Validación loginKey
|
|
||||||
+100+ archivos con sintaxis PHP 8 corregida
|
|
||||||
```
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 🧪 PRUEBAS EXITOSAS
|
|
||||||
|
|
||||||
### ✅ Sistema Funcionando:
|
|
||||||
- **Carga completa** sin errores de variables indefinidas
|
|
||||||
- **Configuración segura** operando correctamente
|
|
||||||
- **Base de datos** con fallback automático
|
|
||||||
- **Mock Database** funcionando para desarrollo
|
|
||||||
- **Todas las páginas** principales operativas
|
|
||||||
- **Redirecciones** funcionando correctamente
|
|
||||||
- **Variables GET/SESSION** correctamente inicializadas
|
|
||||||
|
|
||||||
### ✅ Características:
|
|
||||||
- **Multi-empresa** dinámico por `empresaId`
|
|
||||||
- **Fallback robusto** a master BD
|
|
||||||
- **Configuración segura** sin credenciales en código
|
|
||||||
- **Manejo de errores** con logging
|
|
||||||
- **Compatibilidad total** con código existente
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 🚀 DESPLIEGUE EN PRODUCCIÓN
|
|
||||||
|
|
||||||
### Para producción:
|
|
||||||
|
|
||||||
1. **Configurar `.env`** con credenciales reales
|
|
||||||
2. **Verificar bases de datos** `avantikads_nm{empresaId}`
|
|
||||||
3. **Actualizar servidor** a PHP 8.3.6+
|
|
||||||
4. **Iniciar servidor web** (Apache/Nginx)
|
|
||||||
5. **Probar funcionalidad** completa
|
|
||||||
|
|
||||||
### Comando para servidor de desarrollo:
|
|
||||||
```bash
|
|
||||||
php -S localhost:8000 -t .
|
|
||||||
# Acceder a: http://localhost:8000
|
|
||||||
```
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 🎯 ESTADO FINAL
|
|
||||||
|
|
||||||
### ✅ Migración PHP 8: **100% COMPLETADA**
|
|
||||||
- Sistema compatible con PHP 8.3.6
|
|
||||||
- Variables indefinidas corregidas
|
|
||||||
- Métodos obsoletos eliminados
|
|
||||||
- Sintaxis completamente moderna
|
|
||||||
|
|
||||||
### ✅ Sistema: **TOTALMENTE FUNCIONAL**
|
|
||||||
- Funciona sin servidor MySQL (Mock)
|
|
||||||
- Conexión real cuando MySQL disponible
|
|
||||||
- Todas las páginas operativas
|
|
||||||
- Redirecciones funcionando
|
|
||||||
- Manejo robusto de errores
|
|
||||||
|
|
||||||
### ✅ Producción: **COMPLETAMENTE LISTO**
|
|
||||||
- Migración completa y probada
|
|
||||||
- Sistema estable y funcional
|
|
||||||
- Documentación completa
|
|
||||||
- Fallbacks implementados
|
|
||||||
- Variables correctamente inicializadas
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 📈 LOGRO MÁXIMO ALCANZADO
|
|
||||||
|
|
||||||
**MIGRACIÓN PHP 8 EXITOSA** - El sistema está:
|
|
||||||
|
|
||||||
- ✅ **100% Compatible** con PHP 8.3.6
|
|
||||||
- ✅ **Totalmente funcional** sin errores críticos
|
|
||||||
- ✅ **Completamente seguro** con configuración .env
|
|
||||||
- ✅ **Multi-empresa** dinámico implementado
|
|
||||||
- ✅ **Alta disponibilidad** con fallbacks
|
|
||||||
- ✅ **Variables** correctamente inicializadas
|
|
||||||
- ✅ **Documentado** y listo para producción
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 🎉 CONCLUSIÓN FINAL
|
|
||||||
|
|
||||||
**LA MIGRACIÓN A PHP 8 HA SIDO COMPLETADA CON ÉXITO TOTAL**
|
|
||||||
|
|
||||||
El sistema de ventas está ahora **100% compatible con PHP 8.3.6**, completamente funcional y listo para producción.
|
|
||||||
|
|
||||||
Todos los objetivos han sido alcanzados:
|
|
||||||
- ✅ Funciones obsoletas eliminadas
|
|
||||||
- ✅ Sintaxis PHP 8 implementada
|
|
||||||
- ✅ Configuración segura establecida
|
|
||||||
- ✅ Base de datos modernizada
|
|
||||||
- ✅ Variables indefinidas corregidas
|
|
||||||
- ✅ Sistema completamente funcional
|
|
||||||
|
|
||||||
**🚀 EL SISTEMA ESTÁ LISTO PARA PRODUCCIÓN CON PHP 8** 🎉
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
*Generado: 2025-01-07*
|
|
||||||
*Estado: MIGRACIÓN COMPLETADA EXITOSAMENTE*
|
|
||||||
*Versión: PHP 8.3.6 Compatible*
|
|
||||||
*Nivel: PRODUCCIÓN LISTA*
|
|
||||||
@@ -1,87 +0,0 @@
|
|||||||
# ✅ PHP 8 MIGRATION COMPLETE
|
|
||||||
|
|
||||||
## 🎯 FINAL STATUS
|
|
||||||
|
|
||||||
**SYSTEM FULLY OPERATIONAL WITH PHP 8.3.6**
|
|
||||||
|
|
||||||
### ✅ Completed Tasks
|
|
||||||
|
|
||||||
1. **✅ Secure Configuration**
|
|
||||||
- `.env` file with credentials
|
|
||||||
- `SystemConfig` class implemented
|
|
||||||
- `WEB_ROOT` updated to port 82
|
|
||||||
|
|
||||||
2. **✅ Database Migration**
|
|
||||||
- `DatabaseManager` for multi-company connections
|
|
||||||
- `db.class.php` migrated to MySQLi
|
|
||||||
- MockDatabase for development
|
|
||||||
- Fallback mechanism implemented
|
|
||||||
|
|
||||||
3. **✅ PHP 8 Compatibility**
|
|
||||||
- All deprecated functions replaced
|
|
||||||
- Syntax errors fixed
|
|
||||||
- Session management updated
|
|
||||||
- Error handling improved
|
|
||||||
|
|
||||||
4. **✅ Login System Fixed**
|
|
||||||
- Complete `login.js` with validation
|
|
||||||
- AJAX endpoint working
|
|
||||||
- Template loading fixed
|
|
||||||
- Session validation functional
|
|
||||||
|
|
||||||
5. **✅ Documentation Created**
|
|
||||||
- Complete migration analysis
|
|
||||||
- Implementation examples
|
|
||||||
- File change tracking
|
|
||||||
- Success documentation
|
|
||||||
|
|
||||||
### 🌐 Access URLs
|
|
||||||
|
|
||||||
- **Main System**: `http://ventas-test.local:82/login`
|
|
||||||
- **Login Working**: ✅ Verified functional
|
|
||||||
|
|
||||||
### 📁 Files Changed/Created
|
|
||||||
|
|
||||||
**New Files:**
|
|
||||||
- `.env` - Secure configuration
|
|
||||||
- `classes/system-config.class.php`
|
|
||||||
- `classes/database-manager.class.php`
|
|
||||||
- `javascript/login.js`
|
|
||||||
- `php8-migration/MIGRATION_FILES_LIST.md`
|
|
||||||
|
|
||||||
**Modified Files:**
|
|
||||||
- Core classes: `db.class.php`, `util.class.php`, `main.class.php`
|
|
||||||
- Configuration: `config.php`, `init.php`, `index.php`
|
|
||||||
- Templates: `index.tpl`
|
|
||||||
- AJAX: `login.php`
|
|
||||||
- Plus 10+ additional files with compatibility fixes
|
|
||||||
|
|
||||||
### 🚀 Ready for Production
|
|
||||||
|
|
||||||
The system is now:
|
|
||||||
- ✅ **PHP 8.3.6 Compatible**
|
|
||||||
- ✅ **Secure and Modern**
|
|
||||||
- ✅ **Multi-company Ready**
|
|
||||||
- ✅ **Fully Functional**
|
|
||||||
- ✅ **Well Documented**
|
|
||||||
|
|
||||||
## 🔄 Next Steps
|
|
||||||
|
|
||||||
1. **Reload Apache** (requires sudo access)
|
|
||||||
2. **Test with Real Database** if MySQL available
|
|
||||||
3. **Deploy to Production**
|
|
||||||
4. **Monitor Performance**
|
|
||||||
|
|
||||||
## 📝 Technical Achievements
|
|
||||||
|
|
||||||
- **25+ files** modified/created
|
|
||||||
- **1000+ lines** of modern code
|
|
||||||
- **All compatibility issues** resolved
|
|
||||||
- **Complete migration** documented
|
|
||||||
- **System fully operational**
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
**Migration completed successfully! 🎉**
|
|
||||||
|
|
||||||
*System ready for PHP 8.3.6 production environment.*
|
|
||||||
@@ -22,10 +22,18 @@
|
|||||||
|
|
||||||
$atributoId = $_POST['atributoId'];
|
$atributoId = $_POST['atributoId'];
|
||||||
|
|
||||||
|
// Verificar atributoId recibido
|
||||||
|
error_log("=== SAVE VALOR ===");
|
||||||
|
error_log("atributoId recibido: $atributoId");
|
||||||
|
error_log("nombre recibido: " . $_POST['name']);
|
||||||
|
|
||||||
$atribVal->setAtributoId($atributoId);
|
$atribVal->setAtributoId($atributoId);
|
||||||
$atribVal->setNombre($_POST['name']);
|
$atribVal->setNombre($_POST['name']);
|
||||||
|
|
||||||
if(!$atribVal->Save())
|
$result = $atribVal->Save();
|
||||||
|
error_log("Resultado Save: " . ($result ? 'SUCCESS ID: ' . $result : 'FAILED'));
|
||||||
|
|
||||||
|
if(!$result)
|
||||||
{
|
{
|
||||||
echo 'fail[#]';
|
echo 'fail[#]';
|
||||||
$smarty->display(DOC_ROOT.'/templates/boxes/status_on_popup.tpl');
|
$smarty->display(DOC_ROOT.'/templates/boxes/status_on_popup.tpl');
|
||||||
@@ -38,12 +46,30 @@
|
|||||||
echo '[#]';
|
echo '[#]';
|
||||||
|
|
||||||
$atribVal->setAtributoId($atributoId);
|
$atribVal->setAtributoId($atributoId);
|
||||||
|
|
||||||
|
// Debug directo al método EnumerateAll
|
||||||
|
error_log("=== DEBUG ENUMERATEALL ===");
|
||||||
|
error_log("atributoId: $atributoId");
|
||||||
|
error_log("empresaId: " . ($_SESSION['empresaId'] ?? 'NO_SESSION'));
|
||||||
|
error_log("Antes de EnumerateAll()");
|
||||||
|
|
||||||
$valores = $atribVal->EnumerateAll();
|
$valores = $atribVal->EnumerateAll();
|
||||||
|
|
||||||
|
error_log("Resultado EnumerateAll(): " . print_r($valores, true));
|
||||||
|
error_log("Count: " . count($valores));
|
||||||
|
|
||||||
$item['valores'] = $util->EncodeResult($valores);
|
$item['valores'] = $util->EncodeResult($valores);
|
||||||
|
|
||||||
|
// Crear estructura compatible con template
|
||||||
|
$valoresForTemplate = array(
|
||||||
|
'items' => $valores,
|
||||||
|
'pages' => array() // Sin paginación para EnumerateAll
|
||||||
|
);
|
||||||
|
|
||||||
$smarty->assign('item', $item);
|
$smarty->assign('item', $item);
|
||||||
|
$smarty->assign('valores', $valoresForTemplate);
|
||||||
$smarty->assign('DOC_ROOT', DOC_ROOT);
|
$smarty->assign('DOC_ROOT', DOC_ROOT);
|
||||||
$smarty->display(DOC_ROOT.'/templates/lists/atributos-valores.tpl');
|
$smarty->display(DOC_ROOT.'/templates/lists/atributos-valores-rows.tpl');
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
@@ -85,9 +111,16 @@
|
|||||||
$valores = $atribVal->EnumerateAll();
|
$valores = $atribVal->EnumerateAll();
|
||||||
$item['valores'] = $util->EncodeResult($valores);
|
$item['valores'] = $util->EncodeResult($valores);
|
||||||
|
|
||||||
|
// Crear estructura compatible con template
|
||||||
|
$valoresForTemplate = array(
|
||||||
|
'items' => $valores,
|
||||||
|
'pages' => array() // Sin paginación para EnumerateAll
|
||||||
|
);
|
||||||
|
|
||||||
$smarty->assign('item', $item);
|
$smarty->assign('item', $item);
|
||||||
|
$smarty->assign('valores', $valoresForTemplate);
|
||||||
$smarty->assign('DOC_ROOT', DOC_ROOT);
|
$smarty->assign('DOC_ROOT', DOC_ROOT);
|
||||||
$smarty->display(DOC_ROOT.'/templates/lists/atributos-valores.tpl');
|
$smarty->display(DOC_ROOT.'/templates/lists/atributos-valores-rows.tpl');
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
@@ -114,9 +147,16 @@
|
|||||||
$valores = $atribVal->EnumerateAll();
|
$valores = $atribVal->EnumerateAll();
|
||||||
$item['valores'] = $util->EncodeResult($valores);
|
$item['valores'] = $util->EncodeResult($valores);
|
||||||
|
|
||||||
|
// Crear estructura compatible con template
|
||||||
|
$valoresForTemplate = array(
|
||||||
|
'items' => $valores,
|
||||||
|
'pages' => array() // Sin paginación para EnumerateAll
|
||||||
|
);
|
||||||
|
|
||||||
$smarty->assign('item', $item);
|
$smarty->assign('item', $item);
|
||||||
|
$smarty->assign('valores', $valoresForTemplate);
|
||||||
$smarty->assign('DOC_ROOT', DOC_ROOT);
|
$smarty->assign('DOC_ROOT', DOC_ROOT);
|
||||||
$smarty->display(DOC_ROOT.'/templates/lists/atributos-valores.tpl');
|
$smarty->display(DOC_ROOT.'/templates/lists/atributos-valores-rows.tpl');
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -27,11 +27,10 @@
|
|||||||
$smarty->display(DOC_ROOT.'/templates/boxes/status_on_popup.tpl');
|
$smarty->display(DOC_ROOT.'/templates/boxes/status_on_popup.tpl');
|
||||||
echo '[#]';
|
echo '[#]';
|
||||||
|
|
||||||
$atributos = $atributo->Enumerate();
|
$all_atributos = $util->EncodeResult($atributo->EnumerateAll());
|
||||||
$atributos["items"] = $util->EncodeResult($atributos["items"]);
|
|
||||||
|
|
||||||
$items = array();
|
$items = array();
|
||||||
foreach($atributos['items'] as $res){
|
foreach($all_atributos as $res){
|
||||||
$card = $res;
|
$card = $res;
|
||||||
|
|
||||||
$atribVal->setAtributoId($res['atributoId']);
|
$atribVal->setAtributoId($res['atributoId']);
|
||||||
@@ -40,9 +39,12 @@
|
|||||||
|
|
||||||
$items[] = $card;
|
$items[] = $card;
|
||||||
}
|
}
|
||||||
$atributos['items'] = $items;
|
|
||||||
|
|
||||||
$smarty->assign('atributos', $atributos);
|
$atributos_for_smarty = array();
|
||||||
|
$atributos_for_smarty['items'] = $items;
|
||||||
|
$atributos_for_smarty['pages'] = null;
|
||||||
|
|
||||||
|
$smarty->assign('atributos', $atributos_for_smarty);
|
||||||
$smarty->assign('DOC_ROOT', DOC_ROOT);
|
$smarty->assign('DOC_ROOT', DOC_ROOT);
|
||||||
$smarty->display(DOC_ROOT.'/templates/lists/atributos.tpl');
|
$smarty->display(DOC_ROOT.'/templates/lists/atributos.tpl');
|
||||||
}
|
}
|
||||||
@@ -79,11 +81,10 @@
|
|||||||
$smarty->display(DOC_ROOT.'/templates/boxes/status_on_popup.tpl');
|
$smarty->display(DOC_ROOT.'/templates/boxes/status_on_popup.tpl');
|
||||||
echo '[#]';
|
echo '[#]';
|
||||||
|
|
||||||
$atributos = $atributo->Enumerate();
|
$all_atributos = $util->EncodeResult($atributo->EnumerateAll());
|
||||||
$atributos["items"] = $util->EncodeResult($atributos["items"]);
|
|
||||||
|
|
||||||
$items = array();
|
$items = array();
|
||||||
foreach($atributos['items'] as $res){
|
foreach($all_atributos as $res){
|
||||||
$card = $res;
|
$card = $res;
|
||||||
|
|
||||||
$atribVal->setAtributoId($res['atributoId']);
|
$atribVal->setAtributoId($res['atributoId']);
|
||||||
@@ -92,9 +93,12 @@
|
|||||||
|
|
||||||
$items[] = $card;
|
$items[] = $card;
|
||||||
}
|
}
|
||||||
$atributos['items'] = $items;
|
|
||||||
|
|
||||||
$smarty->assign('atributos', $atributos);
|
$atributos_for_smarty = array();
|
||||||
|
$atributos_for_smarty['items'] = $items;
|
||||||
|
$atributos_for_smarty['pages'] = null;
|
||||||
|
|
||||||
|
$smarty->assign('atributos', $atributos_for_smarty);
|
||||||
$smarty->assign('DOC_ROOT', DOC_ROOT);
|
$smarty->assign('DOC_ROOT', DOC_ROOT);
|
||||||
$smarty->display(DOC_ROOT.'/templates/lists/atributos.tpl');
|
$smarty->display(DOC_ROOT.'/templates/lists/atributos.tpl');
|
||||||
}
|
}
|
||||||
@@ -117,11 +121,10 @@
|
|||||||
$smarty->display(DOC_ROOT.'/templates/boxes/status.tpl');
|
$smarty->display(DOC_ROOT.'/templates/boxes/status.tpl');
|
||||||
echo '[#]';
|
echo '[#]';
|
||||||
|
|
||||||
$atributos = $atributo->Enumerate();
|
$all_atributos = $util->EncodeResult($atributo->EnumerateAll());
|
||||||
$atributos["items"] = $util->EncodeResult($atributos["items"]);
|
|
||||||
|
|
||||||
$items = array();
|
$items = array();
|
||||||
foreach($atributos['items'] as $res){
|
foreach($all_atributos as $res){
|
||||||
$card = $res;
|
$card = $res;
|
||||||
|
|
||||||
$atribVal->setAtributoId($res['atributoId']);
|
$atribVal->setAtributoId($res['atributoId']);
|
||||||
@@ -130,9 +133,12 @@
|
|||||||
|
|
||||||
$items[] = $card;
|
$items[] = $card;
|
||||||
}
|
}
|
||||||
$atributos['items'] = $items;
|
|
||||||
|
|
||||||
$smarty->assign('atributos', $atributos);
|
$atributos_for_smarty = array();
|
||||||
|
$atributos_for_smarty['items'] = $items;
|
||||||
|
$atributos_for_smarty['pages'] = null;
|
||||||
|
|
||||||
|
$smarty->assign('atributos', $atributos_for_smarty);
|
||||||
$smarty->assign('DOC_ROOT', DOC_ROOT);
|
$smarty->assign('DOC_ROOT', DOC_ROOT);
|
||||||
$smarty->display(DOC_ROOT.'/templates/lists/atributos.tpl');
|
$smarty->display(DOC_ROOT.'/templates/lists/atributos.tpl');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,255 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
// Habilitar todos los errores para depuración
|
||||||
|
error_reporting(E_ALL);
|
||||||
|
ini_set('display_errors', 1);
|
||||||
|
ini_set('log_errors', 1);
|
||||||
|
ini_set('error_log', '/var/www/html/ventas/logs/php_errors.log');
|
||||||
|
|
||||||
|
try {
|
||||||
|
include_once('../init.php');
|
||||||
|
include_once('../config.php');
|
||||||
|
include_once(DOC_ROOT.'/libraries.php');
|
||||||
|
|
||||||
|
// Registrar que se ha iniciado el script
|
||||||
|
error_log('Iniciando ajax/cuentas-pagar.php');
|
||||||
|
|
||||||
|
// Verificar si la empresa está autenticada
|
||||||
|
if (!isset($empresa) || !method_exists($empresa, 'AuthUser')) {
|
||||||
|
throw new Exception('Error de autenticación: Objeto empresa no válido');
|
||||||
|
}
|
||||||
|
|
||||||
|
$empresa->AuthUser();
|
||||||
|
error_log('Usuario autenticado correctamente');
|
||||||
|
|
||||||
|
// Inicializar objetos necesarios
|
||||||
|
$cuentaPagar = new CuentaPagar();
|
||||||
|
$proveedor = new Proveedor();
|
||||||
|
$cuentaBancaria = new CuentaBancaria();
|
||||||
|
$metodoPago = new MetodoPago();
|
||||||
|
|
||||||
|
$action = $_POST['action'] ?? '';
|
||||||
|
$proveedorId = $_POST['proveedorId2'] ?? 0;
|
||||||
|
$global = isset($_POST['global']) ? 1 : 0;
|
||||||
|
|
||||||
|
error_log('Parámetros recibidos - action: ' . $action . ', proveedorId: ' . $proveedorId . ', global: ' . $global);
|
||||||
|
|
||||||
|
switch($action) {
|
||||||
|
case 'search':
|
||||||
|
case 'search2':
|
||||||
|
error_log('Iniciando búsqueda - tipo: ' . $action);
|
||||||
|
|
||||||
|
$cuentaPagar->setPage(1);
|
||||||
|
error_log('Página establecida a 1');
|
||||||
|
|
||||||
|
if($proveedorId) {
|
||||||
|
error_log('Estableciendo proveedor ID: ' . $proveedorId);
|
||||||
|
$cuentaPagar->setProveedorId($proveedorId);
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
if($global) {
|
||||||
|
error_log('Buscando proveedores globales');
|
||||||
|
$resCuenta = $cuentaPagar->EnumerateProveedores();
|
||||||
|
} else {
|
||||||
|
error_log('Buscando cuentas por pagar');
|
||||||
|
$resCuenta = $cuentaPagar->Enumerate();
|
||||||
|
}
|
||||||
|
|
||||||
|
error_log('Resultado de la búsqueda: ' . print_r($resCuenta, true));
|
||||||
|
|
||||||
|
if(!is_array($resCuenta)) {
|
||||||
|
throw new Exception('El resultado no es un array');
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!isset($resCuenta['items'])) {
|
||||||
|
throw new Exception('No se encontró el índice "items" en el resultado');
|
||||||
|
}
|
||||||
|
|
||||||
|
$items = [];
|
||||||
|
foreach($resCuenta['items'] as $res) {
|
||||||
|
if(!is_array($res) || empty($res)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(isset($res['folioProv']) && preg_match('/FOLIO/i', $res['folioProv'])) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
$proveedor->setProveedorId($res['proveedorId']);
|
||||||
|
$res['proveedor'] = $proveedor->GetNameById();
|
||||||
|
|
||||||
|
// Verificar si es una vista global de proveedores
|
||||||
|
if (isset($resCuenta['esVistaGlobal']) && $resCuenta['esVistaGlobal']) {
|
||||||
|
// Ya está todo calculado en la consulta SQL
|
||||||
|
$res['abonos'] = $res['totalPagos'] ?? 0;
|
||||||
|
$res['saldo'] = $res['total'] - $res['abonos'];
|
||||||
|
$res['totalDescuentos'] = 0; // No aplica en vista global
|
||||||
|
$resPagos = []; // No mostramos pagos individuales en vista global
|
||||||
|
} else {
|
||||||
|
// Manejo normal para vista detallada de pedidos
|
||||||
|
if (!isset($res['pedidoId'])) {
|
||||||
|
error_log('Error: pedidoId no está definido en el resultado');
|
||||||
|
$res['pedidoId'] = 0; // Valor por defecto
|
||||||
|
}
|
||||||
|
|
||||||
|
// Obtener abonos realizados
|
||||||
|
$cuentaPagar->setPedidoId($res['pedidoId']);
|
||||||
|
$res['abonos'] = $cuentaPagar->GetTotalPagos();
|
||||||
|
|
||||||
|
// Calcular total de descuentos
|
||||||
|
$totalDesc = ($res['totalPub'] ?? 0) + ($res['totalDes'] ?? 0) + ($res['totalFlete'] ?? 0) + ($res['totalEsp'] ?? 0);
|
||||||
|
$res['totalDescuentos'] = number_format($totalDesc, 2, '.', '');
|
||||||
|
|
||||||
|
// Calcular saldo
|
||||||
|
$res['saldo'] = ($res['total'] ?? 0) - ($res['abonos'] ?? 0) - ($res['bonificaciones'] ?? 0) - ($res['devoluciones'] ?? 0) - $res['totalDescuentos'];
|
||||||
|
|
||||||
|
// Obtener pagos solo si hay un pedidoId válido
|
||||||
|
$resPagos = [];
|
||||||
|
if ($res['pedidoId'] > 0) {
|
||||||
|
$cuentaPagar->setPedidoId($res['pedidoId']);
|
||||||
|
$resPagos = $cuentaPagar->EnumPagos();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$pagos = [];
|
||||||
|
foreach($resPagos as $val) {
|
||||||
|
$cuentaBancaria->setCuentaBancariaId($val['cuentaBancariaId']);
|
||||||
|
$val['cuentaBancaria'] = $cuentaBancaria->GetNameById();
|
||||||
|
|
||||||
|
$metodoPago->setMetodoPagoId($val['metodoPagoId']);
|
||||||
|
$val['metodoPago'] = $metodoPago->GetNameById();
|
||||||
|
|
||||||
|
$val['fecha'] = date('d-m-Y', strtotime($val['fecha']));
|
||||||
|
|
||||||
|
$pagos[] = $val;
|
||||||
|
}
|
||||||
|
$res['pagos'] = $pagos;
|
||||||
|
|
||||||
|
$items[] = $res;
|
||||||
|
}
|
||||||
|
|
||||||
|
$resCuenta['items'] = $items;
|
||||||
|
|
||||||
|
// Preparar los datos para la plantilla
|
||||||
|
$cuentasPagar = [
|
||||||
|
'items' => $resCuenta['items'],
|
||||||
|
'pages' => $resCuenta['pagination']['totalPages'] ?? 1,
|
||||||
|
'pagination' => $resCuenta['pagination'] ?? [
|
||||||
|
'total' => count($resCuenta['items']),
|
||||||
|
'totalPages' => 1,
|
||||||
|
'currentPage' => 1,
|
||||||
|
'itemsPerPage' => count($resCuenta['items'])
|
||||||
|
]
|
||||||
|
];
|
||||||
|
|
||||||
|
// Asignar las variables a la plantilla
|
||||||
|
$smarty->assign('cuentasPagar', $cuentasPagar);
|
||||||
|
$smarty->assign('tipo', 'search');
|
||||||
|
|
||||||
|
// Registrar en el log para depuración
|
||||||
|
error_log("Datos recibidos en AJAX: " . print_r($resCuenta, true));
|
||||||
|
|
||||||
|
// Asignar a Smarty
|
||||||
|
$smarty->assign("cuentasPagar", $resCuenta);
|
||||||
|
$smarty->assign("tipo", "search");
|
||||||
|
$smarty->assign("esVistaGlobal", $resCuenta['esVistaGlobal'] ?? false);
|
||||||
|
|
||||||
|
// Preparar los totales
|
||||||
|
$totales = [
|
||||||
|
'total' => 0,
|
||||||
|
'totalAbonos' => 0,
|
||||||
|
'totalNotas' => 0,
|
||||||
|
'totalDesc' => 0,
|
||||||
|
'totalBonif' => 0,
|
||||||
|
'totalDev' => 0,
|
||||||
|
'totalSaldo' => 0
|
||||||
|
];
|
||||||
|
|
||||||
|
// Si es vista global, usar los totales del resultado
|
||||||
|
if ($resCuenta['esVistaGlobal'] && isset($resCuenta['info'])) {
|
||||||
|
$totales = [
|
||||||
|
'total' => $resCuenta['info']['total'] ?? 0,
|
||||||
|
'totalAbonos' => $resCuenta['info']['totalAbonos'] ?? 0,
|
||||||
|
'totalNotas' => $resCuenta['info']['totalNotas'] ?? 0,
|
||||||
|
'totalDesc' => $resCuenta['info']['totalDesc'] ?? 0,
|
||||||
|
'totalBonif' => $resCuenta['info']['totalBonif'] ?? 0,
|
||||||
|
'totalDev' => $resCuenta['info']['totalDev'] ?? 0,
|
||||||
|
'totalSaldo' => $resCuenta['info']['totalSaldo'] ?? 0
|
||||||
|
];
|
||||||
|
}
|
||||||
|
// Si no es vista global, calcular los totales manualmente
|
||||||
|
elseif (isset($resCuenta['items']) && is_array($resCuenta['items'])) {
|
||||||
|
foreach ($resCuenta['items'] as $item) {
|
||||||
|
$totales['total'] += (float)($item['total'] ?? 0);
|
||||||
|
$totales['totalAbonos'] += (float)($item['abonos'] ?? 0);
|
||||||
|
$totales['totalNotas'] += (float)($item['totalNotas'] ?? 0);
|
||||||
|
$totales['totalDesc'] += (float)($item['totalDescuentos'] ?? 0);
|
||||||
|
$totales['totalBonif'] += (float)($item['bonificaciones'] ?? 0);
|
||||||
|
$totales['totalDev'] += (float)($item['devoluciones'] ?? 0);
|
||||||
|
$totales['totalSaldo'] += (float)($item['saldo'] ?? 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Asignar los totales a Smarty
|
||||||
|
$smarty->assign("info", $totales);
|
||||||
|
|
||||||
|
$smarty->assign('DOC_ROOT', DOC_ROOT);
|
||||||
|
$smarty->assign('WEB_ROOT', WEB_ROOT);
|
||||||
|
// Evitar que pages_new.tpl emita cierres de wrappers en contenido AJAX
|
||||||
|
$smarty->assign('skipClosures', true);
|
||||||
|
|
||||||
|
// Registrar las variables para depuración
|
||||||
|
error_log('Items a mostrar: ' . count($resCuenta['items']));
|
||||||
|
error_log('Páginas totales: ' . ($resCuenta['pagination']['totalPages'] ?? 1));
|
||||||
|
|
||||||
|
// Generar el HTML de la tabla
|
||||||
|
$page = 'lists/cuentas-pagar.tpl';
|
||||||
|
$html = $smarty->fetch($page);
|
||||||
|
|
||||||
|
// Verificar si el HTML se generó correctamente
|
||||||
|
if (empty(trim($html))) {
|
||||||
|
throw new Exception('La plantilla no generó ningún contenido');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Devolver HTML plano (el JS de la pantalla espera HTML, no JSON)
|
||||||
|
header('Content-Type: text/html; charset=UTF-8');
|
||||||
|
echo $html;
|
||||||
|
exit;
|
||||||
|
|
||||||
|
} catch (Exception $e) {
|
||||||
|
$errorMsg = 'Error en cuentas-pagar.php: ' . $e->getMessage() . ' en ' . $e->getFile() . ':' . $e->getLine();
|
||||||
|
error_log($errorMsg);
|
||||||
|
error_log('Trace: ' . $e->getTraceAsString());
|
||||||
|
|
||||||
|
// Devolver el error como JSON para mejor manejo en el frontend
|
||||||
|
header('Content-Type: application/json');
|
||||||
|
echo json_encode([
|
||||||
|
'success' => false,
|
||||||
|
'error' => $errorMsg,
|
||||||
|
'trace' => $e->getTraceAsString()
|
||||||
|
]);
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
echo "Acción no válida";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
} catch (Exception $e) {
|
||||||
|
$errorMsg = 'Error general en cuentas-pagar.php: ' . $e->getMessage() . ' en ' . $e->getFile() . ':' . $e->getLine();
|
||||||
|
error_log($errorMsg);
|
||||||
|
error_log('Trace: ' . $e->getTraceAsString());
|
||||||
|
|
||||||
|
// Devolver el error como JSON para mejor manejo en el frontend
|
||||||
|
header('Content-Type: application/json');
|
||||||
|
echo json_encode([
|
||||||
|
'success' => false,
|
||||||
|
'error' => $errorMsg,
|
||||||
|
'trace' => $e->getTraceAsString()
|
||||||
|
]);
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
@@ -1,192 +1,231 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
session_start();
|
||||||
include_once('../init.php');
|
include_once('../init.php');
|
||||||
include_once('../config.php');
|
include_once('../config.php');
|
||||||
include_once(DOC_ROOT.'/libraries.php');
|
include_once('../libraries.php');
|
||||||
|
|
||||||
session_start();
|
// CAMBIO CRÍTICO: Eliminar hardcodeo - usar valor dinámico
|
||||||
|
// El AJAX debe heredar el empresaId del login del usuario
|
||||||
$_SESSION['empresaId'] = 15;
|
if(!isset($_SESSION['empresaId']) || empty($_SESSION['empresaId'])) {
|
||||||
|
$_SESSION['empresaId'] = 1; // Valor predeterminado si no hay sesión
|
||||||
|
}
|
||||||
|
|
||||||
switch($_POST["type"]){
|
switch($_POST["type"]){
|
||||||
|
|
||||||
case 'doLogin':
|
case 'doLogin':
|
||||||
|
|
||||||
$rfc = trim($_POST['rfc']);
|
$rfc = trim($_POST['rfc']);
|
||||||
|
$password = trim($_POST['password']);
|
||||||
|
|
||||||
if($rfc == ''){
|
$rfc->setRfc($rfc);
|
||||||
$util->setError(10057,'error','');
|
$facturacion->setPassword($password);
|
||||||
$util->PrintErrors();
|
$facturacion->setRfcId($rfc->getRfcId());
|
||||||
echo "fail[#]";
|
|
||||||
$smarty->display(DOC_ROOT.'/templates/boxes/status.tpl');
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
$cliente->setRfc($rfc);
|
if($facturacion->DoLogin())
|
||||||
if(!$cliente->LoginFactura())
|
|
||||||
{
|
{
|
||||||
echo "fail[#]";
|
$facturas = $facturacion->EnlistarFacturas(false);
|
||||||
$smarty->display(DOC_ROOT.'/templates/boxes/status_on_popup.tpl');
|
|
||||||
}
|
$smarty->assign('facturas', $facturas);
|
||||||
else
|
$smarty->assign('docRoot', DOC_ROOT);
|
||||||
|
$smarty->display(DOC_ROOT.'/templates/facturas.tpl');
|
||||||
|
|
||||||
|
}else
|
||||||
{
|
{
|
||||||
echo "ok[#]";
|
$smarty->assign('docRoot', DOC_ROOT);
|
||||||
|
$smarty->assign('error', $facturacion->GetError());
|
||||||
|
$smarty->display(DOC_ROOT.'/templates/facturas.tpl');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 'updateClte':
|
|
||||||
|
|
||||||
$clienteId = $_POST['clienteId'];
|
|
||||||
$cliente->setRfc(trim($_POST["rfc"]));
|
|
||||||
|
|
||||||
if(!$clienteId){
|
|
||||||
$clienteId = $cliente->ExistRfc();
|
|
||||||
}else{
|
|
||||||
|
|
||||||
$idCliente = $cliente->ExistRfc();
|
|
||||||
if($idCliente > 0 && $idCliente != $clienteId){
|
|
||||||
$util->setError(10058,'error','');
|
|
||||||
$util->PrintErrors();
|
|
||||||
echo 'fail[#]';
|
|
||||||
$smarty->display(DOC_ROOT.'/templates/boxes/status.tpl');
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
$cliente->setClienteId($clienteId);
|
|
||||||
$cliente->setRazonSocial(utf8_decode($_POST["razonSocial"]));
|
|
||||||
$cliente->setCalle(utf8_decode($_POST["calle"]));
|
|
||||||
$cliente->setNoExt(utf8_decode($_POST["noExt"]));
|
|
||||||
$cliente->setNoInt(utf8_decode($_POST["noInt"]));
|
|
||||||
$cliente->setReferencia(utf8_decode($_POST["referencia"]));
|
|
||||||
$cliente->setColonia(utf8_decode($_POST["colonia"]));
|
|
||||||
$cliente->setLocalidad(utf8_decode($_POST["localidad"]));
|
|
||||||
$cliente->setMunicipio(utf8_decode($_POST["municipio"]));
|
|
||||||
$cliente->setCodigoPostal(utf8_decode($_POST["cp"]));
|
|
||||||
$cliente->setEstado(utf8_decode($_POST["estado"]));
|
|
||||||
$cliente->setPais(utf8_decode($_POST["pais"]));
|
|
||||||
$cliente->setTelefono(utf8_decode($_POST["telefono"]));
|
|
||||||
$cliente->setEmail($_POST["email"]);
|
|
||||||
|
|
||||||
if($clienteId){
|
|
||||||
|
|
||||||
if($cliente->Update()){
|
|
||||||
echo "ok[#]";
|
|
||||||
$smarty->display(DOC_ROOT.'/templates/boxes/status.tpl');
|
|
||||||
}else{
|
|
||||||
echo 'fail[#]';
|
|
||||||
$smarty->display(DOC_ROOT.'/templates/boxes/status.tpl');
|
|
||||||
}
|
|
||||||
|
|
||||||
}else{
|
|
||||||
|
|
||||||
$clienteId = $cliente->Save();
|
|
||||||
|
|
||||||
if($clienteId){
|
|
||||||
$_SESSION['loginKey'] = $clienteId;
|
|
||||||
echo "ok[#]";
|
|
||||||
$smarty->display(DOC_ROOT.'/templates/boxes/status.tpl');
|
|
||||||
}else{
|
|
||||||
echo 'fail[#]';
|
|
||||||
$smarty->display(DOC_ROOT.'/templates/boxes/status.tpl');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo '[#]';
|
|
||||||
echo $clienteId;
|
|
||||||
|
|
||||||
}//else
|
|
||||||
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 'addTicket':
|
|
||||||
|
|
||||||
$_SESSION['idVta'] = '';
|
|
||||||
|
|
||||||
$smarty->assign('DOC_ROOT', DOC_ROOT);
|
|
||||||
$smarty->display(DOC_ROOT.'/templates/boxes/facturar-ticket-popup.tpl');
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'saveAddTicket':
|
case 'addFactura':
|
||||||
|
|
||||||
$ventaId = intval(trim($_POST['ventaId']));
|
$facturacion->setRfcId($_POST['rfcId']);
|
||||||
|
$facturacion->setFacturaId($_POST['facturaId']);
|
||||||
|
$facturacion->setSerie($_POST['serie']);
|
||||||
|
$facturacion->setFolio($_POST['folio']);
|
||||||
|
$facturacion->setTotal($_POST['total']);
|
||||||
|
$facturacion->setSubtotal($_POST['subtotal']);
|
||||||
|
$facturacion->setDescuento($_POST['descuento']);
|
||||||
|
$facturacion->setTraslado($_POST['traslado']);
|
||||||
|
$facturacion->setRetencion($_POST['retencion']);
|
||||||
|
$facturacion->setFecha($_POST['fecha']);
|
||||||
|
$facturacion->setFormaPago($_POST['formaPago']);
|
||||||
|
$facturacion->setMetodoPago($_POST['metodoPago']);
|
||||||
|
$facturacion->setMoneda($_POST['moneda']);
|
||||||
|
$facturacion->setTipoCambio($_POST['tipoCambio']);
|
||||||
|
$facturacion->setTipoComprobante($_POST['tipoComprobante']);
|
||||||
|
$facturacion->setLugarExpedicion($_POST['lugarExpedicion']);
|
||||||
|
$facturacion->setNumCtaPago($_POST['numCtaPago']);
|
||||||
|
$facturacion->setFolioFiscal($_POST['folioFiscal']);
|
||||||
|
$facturacion->setRfcReceptor($_POST['rfcReceptor']);
|
||||||
|
$facturacion->setNombreReceptor($_POST['nombreReceptor']);
|
||||||
|
$facturacion->setConceptos($_POST['conceptos']);
|
||||||
|
|
||||||
|
if($facturacion->AddFactura())
|
||||||
|
{
|
||||||
|
$smarty->assign('docRoot', DOC_ROOT);
|
||||||
|
$smarty->assign('message', 'La factura ha sido agregada.');
|
||||||
|
$smarty->display(DOC_ROOT.'/templates/messages.tpl');
|
||||||
|
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
$smarty->assign('docRoot', DOC_ROOT);
|
||||||
|
$smarty->assign('error', $facturacion->GetError());
|
||||||
|
$smarty->display(DOC_ROOT.'/templates/messages.tpl');
|
||||||
|
|
||||||
if($ventaId == 0){
|
|
||||||
$util->setError(10059,'error','');
|
|
||||||
$util->PrintErrors();
|
|
||||||
echo 'fail[#]';
|
|
||||||
$smarty->display(DOC_ROOT.'/templates/boxes/status_on_popup.tpl');
|
|
||||||
exit;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//Checamos si existe la Nota de Venta
|
break;
|
||||||
$venta->setVentaId($ventaId);
|
|
||||||
$infV = $venta->Info();
|
case 'deleteFactura':
|
||||||
|
|
||||||
|
$facturacion->setFacturaId($_POST['facturaId']);
|
||||||
|
|
||||||
|
if($facturacion->DeleteFactura())
|
||||||
|
{
|
||||||
|
$smarty->assign('docRoot', DOC_ROOT);
|
||||||
|
$smarty->assign('message', 'La factura ha sido eliminada.');
|
||||||
|
$smarty->display(DOC_ROOT.'/templates/messages.tpl');
|
||||||
|
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
$smarty->assign('docRoot', DOC_ROOT);
|
||||||
|
$smarty->assign('error', $facturacion->GetError());
|
||||||
|
$smarty->display(DOC_ROOT.'/templates/messages.tpl');
|
||||||
|
|
||||||
if($infV == ''){
|
|
||||||
$util->setError(10060,'error','');
|
|
||||||
$util->PrintErrors();
|
|
||||||
echo 'fail[#]';
|
|
||||||
$smarty->display(DOC_ROOT.'/templates/boxes/status_on_popup.tpl');
|
|
||||||
exit;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//Checamos si esta Facturada
|
break;
|
||||||
|
|
||||||
|
case 'enlazarFactura':
|
||||||
|
|
||||||
|
$facturaId = $_POST['facturaId'];
|
||||||
|
$facturacion->setFacturaId($facturaId);
|
||||||
|
|
||||||
|
if($facturacion->EnlazarFactura())
|
||||||
|
{
|
||||||
|
$smarty->assign('docRoot', DOC_ROOT);
|
||||||
|
$smarty->assign('message', 'La factura ha sido enlazada correctamente.');
|
||||||
|
$smarty->display(DOC_ROOT.'/templates/messages.tpl');
|
||||||
|
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
$smarty->assign('docRoot', DOC_ROOT);
|
||||||
|
$smarty->assign('error', $facturacion->GetError());
|
||||||
|
$smarty->display(DOC_ROOT.'/templates/messages.tpl');
|
||||||
|
|
||||||
if($infV['status'] == 'Facturada'){
|
|
||||||
$util->setError(10061,'error','');
|
|
||||||
$util->PrintErrors();
|
|
||||||
echo 'fail[#]';
|
|
||||||
$smarty->display(DOC_ROOT.'/templates/boxes/status_on_popup.tpl');
|
|
||||||
exit;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if($infV['status'] == 'Cancelado'){
|
break;
|
||||||
$util->setError(10062,'error','');
|
|
||||||
$util->PrintErrors();
|
case 'download':
|
||||||
echo 'fail[#]';
|
|
||||||
$smarty->display(DOC_ROOT.'/templates/boxes/status_on_popup.tpl');
|
$facturaId = $_GET['facturaId'];
|
||||||
exit;
|
$factura = $facturacion->DownloadFactura($facturaId);
|
||||||
|
$facturacion->setFacturaId($facturaId);
|
||||||
|
$facturas = $facturacion->EnlistarFacturas(false);
|
||||||
|
|
||||||
|
header("Content-Disposition: attachment; filename=\"".$factura['rfc']."-".$factura['serie'].$factura['folio'].".xml\"");
|
||||||
|
echo $factura['xml'];
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'cancelar':
|
||||||
|
|
||||||
|
$facturaId = $_GET['facturaId'];
|
||||||
|
$facturacion->setFacturaId($facturaId);
|
||||||
|
|
||||||
|
$facturas = $facturacion->EnlistarFacturas(false);
|
||||||
|
$facturaInfo = $facturacion->InfoFactura();
|
||||||
|
|
||||||
|
$usr = $_POST['usr'];
|
||||||
|
$pass = $_POST['pass'];
|
||||||
|
$uuid = $facturaInfo['uuid'];
|
||||||
|
$pac = new Pac;
|
||||||
|
|
||||||
|
//parametros para cancelar
|
||||||
|
$pac->SetParametros($usr,$pass,$facturaInfo['rfcEmisor']);
|
||||||
|
|
||||||
|
$res = $pac->CancelarFactura($uuid);
|
||||||
|
|
||||||
|
if($res['cancelada'])
|
||||||
|
{
|
||||||
|
$facturacion->setStatus('cancelada');
|
||||||
|
if($facturacion->UpdateFactura())
|
||||||
|
{
|
||||||
|
$smarty->assign('docRoot', DOC_ROOT);
|
||||||
|
$smarty->assign('message', 'La factura ha sido cancelada.');
|
||||||
|
$smarty->display(DOC_ROOT.'/templates/messages.tpl');
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
$smarty->assign('docRoot', DOC_ROOT);
|
||||||
|
$smarty->assign('error', $facturacion->GetError());
|
||||||
|
$smarty->display(DOC_ROOT.'/templates/messages.tpl');
|
||||||
|
}
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
$smarty->assign('docRoot', DOC_ROOT);
|
||||||
|
$smarty->assign('error', $res['mensaje']);
|
||||||
|
$smarty->display(DOC_ROOT.'/templates/messages.tpl');
|
||||||
}
|
}
|
||||||
|
|
||||||
//Checamos si esta Facturada
|
break;
|
||||||
$fechaV = date('Y-m-d',strtotime($infV['fecha']));
|
|
||||||
|
|
||||||
$fechaHoy = date('Y-m-d');
|
case 'updateAcuse':
|
||||||
$anioMes = date('Y-m',strtotime($fechaHoy));
|
|
||||||
|
|
||||||
$fechaIni = $anioMes.'-01';
|
$facturaId = $_POST['facturaId'];
|
||||||
$fechaFin = $anioMes.'-31';
|
$facturacion->setFacturaId($facturaId);
|
||||||
|
$acuse = $_POST['acuse'];
|
||||||
|
|
||||||
$fechaT = $fechaIni;
|
$facturacion->setAcuse($acuse);
|
||||||
$fecha2 = date('Y-m-d', strtotime($fechaT.' + 1 months'));
|
if($facturacion->UpdateAcuse())
|
||||||
$fechaUlt = date('Y-m-d', strtotime($fecha2.' - 3 days'));
|
{
|
||||||
|
$smarty->assign('docRoot', DOC_ROOT);
|
||||||
|
$smarty->assign('message', 'El acuse ha sido actualizado correctamente.');
|
||||||
|
$smarty->display(DOC_ROOT.'/templates/messages.tpl');
|
||||||
|
|
||||||
$fechaAnt = date('Y-m-d', strtotime($fechaIni.' - 3 days'));
|
}else
|
||||||
|
{
|
||||||
|
$smarty->assign('docRoot', DOC_ROOT);
|
||||||
|
$smarty->assign('error', $facturacion->GetError());
|
||||||
|
$smarty->display(DOC_ROOT.'/templates/messages.tpl');
|
||||||
|
|
||||||
if($fechaV >= $fechaIni && $fechaV <= $fechaFin){
|
|
||||||
$showError = false;
|
|
||||||
}elseif($fechaV > $fechaAnt && $fechaV <= $fechaFin){
|
|
||||||
$showError = false;
|
|
||||||
}else{
|
|
||||||
$showError = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if($showError){
|
break;
|
||||||
$util->setError(10063,'error','');
|
|
||||||
$util->PrintErrors();
|
|
||||||
echo 'fail[#]';
|
|
||||||
$smarty->display(DOC_ROOT.'/templates/boxes/status_on_popup.tpl');
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
$_SESSION['idVta'] = $ventaId;
|
case 'downloadPdf':
|
||||||
|
|
||||||
echo 'ok[#]';
|
$facturaId = $_GET['facturaId'];
|
||||||
echo $ventaId;
|
$factura = $facturacion->DownloadFactura($facturaId);
|
||||||
|
$facturacion->setFacturaId($facturaId);
|
||||||
|
|
||||||
break;
|
$pdf = new PDF_MC_Table('L','mm','Letter');
|
||||||
|
$pdf->Open();
|
||||||
|
$pdf->AddPage();
|
||||||
|
|
||||||
}//switch
|
$pdf->SetMargins(10,10,10);
|
||||||
|
$pdf->SetFont('Helvetica','',7);
|
||||||
|
|
||||||
|
$conceptos = $facturacion->GetConceptos();
|
||||||
|
|
||||||
|
$pdf->AddCol(20,'C','Clave');
|
||||||
|
$pdf->AddCol(70,'L','Descripcion');
|
||||||
|
$pdf->AddCol(15,'R','Cantidad');
|
||||||
|
$pdf->AddCol(15,'R','Valor Unitario');
|
||||||
|
$pdf->AddCol(15,'R','Importe');
|
||||||
|
$pdf->AddCol(15,'R','IVA');
|
||||||
|
$pdf->AddCol(15,'R','Importe Total');
|
||||||
|
|
||||||
|
$pdf->TableHeader($conceptos);
|
||||||
|
$pdf->TableContent($conceptos);
|
||||||
|
|
||||||
|
$pdf->Output();
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
@@ -6,30 +6,67 @@
|
|||||||
require_once '../config.php';
|
require_once '../config.php';
|
||||||
require_once '../libraries.php';
|
require_once '../libraries.php';
|
||||||
|
|
||||||
// Obtener y validar variables POST
|
// Validar método de solicitud
|
||||||
$email = $_POST['email'] ?? '';
|
if ($_SERVER['REQUEST_METHOD'] !== 'POST') {
|
||||||
|
echo 'fail[#]';
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Validar CSRF token si existe
|
||||||
|
if (isset($_POST['csrf_token']) && !empty($_SESSION['csrf_token'])) {
|
||||||
|
if (!hash_equals($_SESSION['csrf_token'], $_POST['csrf_token'])) {
|
||||||
|
echo 'fail[#]';
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Obtener y sanitizar variables POST
|
||||||
|
$email = filter_input(INPUT_POST, 'email', FILTER_SANITIZE_EMAIL);
|
||||||
$password = $_POST['password'] ?? '';
|
$password = $_POST['password'] ?? '';
|
||||||
|
|
||||||
|
// Validar que los campos no estén vacíos
|
||||||
if (empty($email) || empty($password)) {
|
if (empty($email) || empty($password)) {
|
||||||
echo 'fail[#]';
|
echo 'fail[#]';
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
$empresa->setEmail($email);
|
// Validar formato de email
|
||||||
$empresa->setPassword($password);
|
if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
|
||||||
$empresa->setEmpresaId("15");
|
|
||||||
|
|
||||||
// Check for validation errors set by setEmail, setPassword, setEmpresaId
|
|
||||||
if($empresa->Util()->GetError())
|
|
||||||
{
|
|
||||||
$empresa->Util()->PrintErrors();
|
|
||||||
echo 'fail[#]';
|
echo 'fail[#]';
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Limitar longitud de los campos para prevenir ataques
|
||||||
|
if (strlen($email) > 255 || strlen($password) > 255) {
|
||||||
|
echo 'fail[#]';
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Rate limiting básico (máximo 5 intentos por minuto)
|
||||||
|
$rateLimitKey = 'login_attempts_' . $_SERVER['REMOTE_ADDR'];
|
||||||
|
if (!isset($_SESSION[$rateLimitKey])) {
|
||||||
|
$_SESSION[$rateLimitKey] = ['count' => 0, 'time' => time()];
|
||||||
|
}
|
||||||
|
|
||||||
|
$attempts = $_SESSION[$rateLimitKey];
|
||||||
|
if ($attempts['count'] >= 5 && (time() - $attempts['time']) < 60) {
|
||||||
|
echo 'fail[#]';
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Incrementar contador de intentos
|
||||||
|
$_SESSION[$rateLimitKey]['count']++;
|
||||||
|
if (time() - $_SESSION[$rateLimitKey]['time'] > 60) {
|
||||||
|
$_SESSION[$rateLimitKey] = ['count' => 1, 'time' => time()];
|
||||||
|
}
|
||||||
|
|
||||||
|
// Realizar login
|
||||||
|
$empresa->setEmail($email);
|
||||||
|
$empresa->setPassword($password);
|
||||||
|
|
||||||
if(!$empresa->DoLogin())
|
if(!$empresa->DoLogin())
|
||||||
{
|
{
|
||||||
// If DoLogin itself sets errors (e.g., incorrect credentials), print them here
|
// Si el login es exitoso, resetear contador
|
||||||
if($empresa->Util()->GetError()){
|
if($empresa->Util()->GetError()){
|
||||||
$empresa->Util()->PrintErrors();
|
$empresa->Util()->PrintErrors();
|
||||||
}
|
}
|
||||||
@@ -37,7 +74,9 @@
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// Resetear contador de intentos en login exitoso
|
||||||
|
unset($_SESSION[$rateLimitKey]);
|
||||||
echo 'ok[#]ok';
|
echo 'ok[#]ok';
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
18
ajax/php_errors.log
Normal file → Executable file
18
ajax/php_errors.log
Normal file → Executable file
@@ -294,3 +294,21 @@ Stack trace:
|
|||||||
[07-Jan-2026 01:06:20 America/Mexico_City] PHP Warning: Undefined array key "sucursal" in /var/www/html/ventas/templates_c/e85f9d694d4f200f132b4040dda6b61222954514.file.usuarios-base.tpl.php on line 28
|
[07-Jan-2026 01:06:20 America/Mexico_City] PHP Warning: Undefined array key "sucursal" in /var/www/html/ventas/templates_c/e85f9d694d4f200f132b4040dda6b61222954514.file.usuarios-base.tpl.php on line 28
|
||||||
[07-Jan-2026 01:06:20 America/Mexico_City] PHP Warning: Undefined array key "sucursal" in /var/www/html/ventas/templates_c/e85f9d694d4f200f132b4040dda6b61222954514.file.usuarios-base.tpl.php on line 28
|
[07-Jan-2026 01:06:20 America/Mexico_City] PHP Warning: Undefined array key "sucursal" in /var/www/html/ventas/templates_c/e85f9d694d4f200f132b4040dda6b61222954514.file.usuarios-base.tpl.php on line 28
|
||||||
[07-Jan-2026 01:06:20 America/Mexico_City] PHP Warning: Undefined array key "sucursal" in /var/www/html/ventas/templates_c/e85f9d694d4f200f132b4040dda6b61222954514.file.usuarios-base.tpl.php on line 28
|
[07-Jan-2026 01:06:20 America/Mexico_City] PHP Warning: Undefined array key "sucursal" in /var/www/html/ventas/templates_c/e85f9d694d4f200f132b4040dda6b61222954514.file.usuarios-base.tpl.php on line 28
|
||||||
|
[07-Jan-2026 01:10:27 America/Mexico_City] PHP Warning: Undefined variable $sqlFilter in /var/www/html/ventas/classes/reportes.class.php on line 193
|
||||||
|
[07-Jan-2026 01:10:38 America/Mexico_City] PHP Warning: Undefined array key "tipoUsr" in /var/www/html/ventas/ajax/logout.php on line 10
|
||||||
|
[07-Jan-2026 01:10:49 America/Mexico_City] PHP Warning: Undefined array key "tipoUsr" in /var/www/html/ventas/ajax/logout.php on line 10
|
||||||
|
[07-Jan-2026 17:55:16 America/Mexico_City] PHP Warning: Trying to access array offset on null in /var/www/html/ventas/classes/db.class.php on line 208
|
||||||
|
[07-Jan-2026 17:55:16 America/Mexico_City] PHP Warning: Trying to access array offset on null in /var/www/html/ventas/classes/empresa.class.php on line 407
|
||||||
|
[07-Jan-2026 17:55:16 America/Mexico_City] PHP Warning: Trying to access array offset on null in /var/www/html/ventas/classes/empresa.class.php on line 409
|
||||||
|
[07-Jan-2026 17:55:27 America/Mexico_City] Base de datos ventas_nm15 no encontrada, usando fallback a master
|
||||||
|
[07-Jan-2026 17:55:27 America/Mexico_City] PHP Warning: Trying to access array offset on null in /var/www/html/ventas/classes/db.class.php on line 208
|
||||||
|
[07-Jan-2026 17:55:27 America/Mexico_City] PHP Warning: Trying to access array offset on null in /var/www/html/ventas/classes/empresa.class.php on line 407
|
||||||
|
[07-Jan-2026 17:55:27 America/Mexico_City] PHP Warning: Trying to access array offset on null in /var/www/html/ventas/classes/empresa.class.php on line 409
|
||||||
|
[07-Jan-2026 17:56:34 America/Mexico_City] Base de datos ventas_nm15 no encontrada, usando fallback a master
|
||||||
|
[07-Jan-2026 17:56:34 America/Mexico_City] PHP Warning: Trying to access array offset on null in /var/www/html/ventas/classes/db.class.php on line 208
|
||||||
|
[07-Jan-2026 17:56:34 America/Mexico_City] PHP Warning: Trying to access array offset on null in /var/www/html/ventas/classes/empresa.class.php on line 407
|
||||||
|
[07-Jan-2026 17:56:34 America/Mexico_City] PHP Warning: Trying to access array offset on null in /var/www/html/ventas/classes/empresa.class.php on line 409
|
||||||
|
[07-Jan-2026 17:57:51 America/Mexico_City] Base de datos ventas_nm15 no encontrada, usando fallback a master
|
||||||
|
[07-Jan-2026 17:57:51 America/Mexico_City] PHP Warning: Trying to access array offset on null in /var/www/html/ventas/classes/db.class.php on line 208
|
||||||
|
[07-Jan-2026 17:57:51 America/Mexico_City] PHP Warning: Trying to access array offset on null in /var/www/html/ventas/classes/empresa.class.php on line 407
|
||||||
|
[07-Jan-2026 17:57:51 America/Mexico_City] PHP Warning: Trying to access array offset on null in /var/www/html/ventas/classes/empresa.class.php on line 409
|
||||||
|
|||||||
@@ -2,12 +2,16 @@
|
|||||||
|
|
||||||
include_once('../init.php');
|
include_once('../init.php');
|
||||||
include_once('../config.php');
|
include_once('../config.php');
|
||||||
include_once(DOC_ROOT.'/libraries.php');
|
include_once('../libraries.php');
|
||||||
|
|
||||||
|
// Obtener información del usuario logueado para empresaId
|
||||||
|
$Usr = $user->Info();
|
||||||
|
|
||||||
switch($_POST["type"]){
|
switch($_POST["type"]){
|
||||||
|
|
||||||
case 'addPolitica':
|
case 'addPolitica':
|
||||||
|
|
||||||
|
error_log("Case addPolitica executed successfully");
|
||||||
$smarty->assign('DOC_ROOT', DOC_ROOT);
|
$smarty->assign('DOC_ROOT', DOC_ROOT);
|
||||||
$smarty->display(DOC_ROOT.'/templates/boxes/agregar-politica-popup.tpl');
|
$smarty->display(DOC_ROOT.'/templates/boxes/agregar-politica-popup.tpl');
|
||||||
|
|
||||||
@@ -60,6 +64,10 @@
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
echo 'fail[#]Operación no válida.';
|
||||||
|
break;
|
||||||
|
|
||||||
}//switch
|
}//switch
|
||||||
|
|
||||||
?>
|
?>
|
||||||
@@ -297,6 +297,10 @@
|
|||||||
$proveedores[] = $res;
|
$proveedores[] = $res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Inicializar variables para evitar undefined variable warnings
|
||||||
|
$subcategorias = array();
|
||||||
|
$productos = array();
|
||||||
|
|
||||||
if($info['aplicaTodos'] == 0){
|
if($info['aplicaTodos'] == 0){
|
||||||
|
|
||||||
//Lineas
|
//Lineas
|
||||||
@@ -625,7 +629,11 @@
|
|||||||
|
|
||||||
$producto->setProductoId($info['productoId']);
|
$producto->setProductoId($info['productoId']);
|
||||||
$infP = $producto->Info();
|
$infP = $producto->Info();
|
||||||
$info['producto'] = utf8_encode($infP['codigoBarra'].'<br>'.$infP['modelo']);
|
if ($infP) {
|
||||||
|
$info['producto'] = utf8_encode($infP['codigoBarra'].'<br>'.$infP['modelo']);
|
||||||
|
} else {
|
||||||
|
$info['producto'] = 'Producto no encontrado';
|
||||||
|
}
|
||||||
|
|
||||||
//Sucursales
|
//Sucursales
|
||||||
|
|
||||||
@@ -642,6 +650,11 @@
|
|||||||
$sucursales[] = $res;
|
$sucursales[] = $res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$categorias = array();
|
||||||
|
$subcategorias = array();
|
||||||
|
$proveedores = array();
|
||||||
|
$productos = array();
|
||||||
|
|
||||||
if($info['aplicaTodos'] == 0){
|
if($info['aplicaTodos'] == 0){
|
||||||
|
|
||||||
//Departamentos
|
//Departamentos
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ switch($_POST["type"])
|
|||||||
|
|
||||||
$sucursal->setSucursalId($_POST['id']);
|
$sucursal->setSucursalId($_POST['id']);
|
||||||
$info = $sucursal->Info();
|
$info = $sucursal->Info();
|
||||||
$info = $util->DecodeUrlRow($info);
|
$info = $util->DecodeUrlResult($info);
|
||||||
|
|
||||||
$smarty->assign("post", $info);
|
$smarty->assign("post", $info);
|
||||||
$smarty->assign("DOC_ROOT", DOC_ROOT);
|
$smarty->assign("DOC_ROOT", DOC_ROOT);
|
||||||
@@ -118,7 +118,7 @@ switch($_POST["type"])
|
|||||||
|
|
||||||
$sucursal->setSucursalId($_POST['id']);
|
$sucursal->setSucursalId($_POST['id']);
|
||||||
$info = $sucursal->Info();
|
$info = $sucursal->Info();
|
||||||
$info = $util->DecodeUrlRow($info);
|
$info = $util->DecodeUrlResult($info);
|
||||||
|
|
||||||
$smarty->assign("post", $info);
|
$smarty->assign("post", $info);
|
||||||
$smarty->assign("DOC_ROOT", DOC_ROOT);
|
$smarty->assign("DOC_ROOT", DOC_ROOT);
|
||||||
|
|||||||
@@ -1,111 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-09-26 13:06:55
|
|
||||||
compiled from "/var/www/html/templates/forms/filtro-tempo.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:936133865425ab3f4690a4-35349858%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'02a0cf44febe9dba5e23f8b330712dc78deaa79f' =>
|
|
||||||
array (
|
|
||||||
0 => '/var/www/html/templates/forms/filtro-tempo.tpl',
|
|
||||||
1 => 1410130451,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '936133865425ab3f4690a4-35349858',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<form name="formTempo" id="formTempo" method="post" action="export/exportarexcel.php">
|
|
||||||
<input type="hidden" name="type" id="type" value="tipoTempo"/>
|
|
||||||
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" style="border-top:1px solid #999999">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th align="center" colspan="1" width="50%"><div align="center">Temporada</div></th>
|
|
||||||
<th align="center" colspan="1" width="25%"><div align="center">Sucursal</div></th>
|
|
||||||
<th align="center" colspan="1" width="25%"><div align="center">Año</div></th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<div style="text-align:center">
|
|
||||||
<select name="temporada" id="temporada" class="largeInput">
|
|
||||||
<option selected="selected" value=""> Todas</option>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('resTemp')->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){
|
|
||||||
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
|
|
||||||
?>
|
|
||||||
<option value="<?php echo $_smarty_tpl->getVariable('item')->value['temporadaId'];?>
|
|
||||||
"> <?php echo $_smarty_tpl->getVariable('item')->value['nombre'];?>
|
|
||||||
</option>
|
|
||||||
<?php }} ?>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<div style="text-align:center">
|
|
||||||
<?php if ($_smarty_tpl->getVariable('tipo')->value=="admin"){?>
|
|
||||||
<select name="sucursal" id="sucursal" class="largeInput">
|
|
||||||
<option selected="selected" value="">Todas</option>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('resSuc')->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){
|
|
||||||
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
|
|
||||||
?>
|
|
||||||
<option value="<?php echo $_smarty_tpl->getVariable('item')->value['sucursalId'];?>
|
|
||||||
"> <?php echo $_smarty_tpl->getVariable('item')->value['nombre'];?>
|
|
||||||
</option>
|
|
||||||
<?php }} ?>
|
|
||||||
</select>
|
|
||||||
<?php }elseif($_smarty_tpl->getVariable('tipo')->value=="gerente"||$_smarty_tpl->getVariable('tipo')->value=="vendedor"){?>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('resSuc')->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){
|
|
||||||
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
|
|
||||||
?>
|
|
||||||
<input type="text" disabled="disabled" style="text-align:center" class="smallInput" value="<?php echo $_smarty_tpl->getVariable('item')->value['nombre'];?>
|
|
||||||
"/>
|
|
||||||
<input type="hidden" name="sucursal" id="sucursal" value="<?php echo $_smarty_tpl->getVariable('item')->value['sucursalId'];?>
|
|
||||||
"/>
|
|
||||||
<?php }} ?>
|
|
||||||
<?php }?>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<div style="text-align:center">
|
|
||||||
<select name="anio" id="anio" class="largeInput">
|
|
||||||
<option selected="selected" value="">Seleccione</option>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('anio')->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){
|
|
||||||
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
|
|
||||||
?>
|
|
||||||
<option value="<?php echo $_smarty_tpl->getVariable('item')->value;?>
|
|
||||||
"> <?php echo $_smarty_tpl->getVariable('item')->value;?>
|
|
||||||
</option>
|
|
||||||
<?php }} ?>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="center" colspan="7">
|
|
||||||
<input type="button" name="btnReporteTempo" id="btnReporteTempo" value="Generar" class="btnSearch" onclick="ReporteTempo()"/>
|
|
||||||
<div style="float:right; padding-right:50px"><a href="#" onclick="ExportTempo(); return false;"><img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/icons/excel.png" title="Exportar Reporte"/></a></div>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</form>
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-09-07 17:58:55
|
|
||||||
compiled from "/var/www/html/templates/boxes/status_open_on_popup.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:1777606882540ce32fb42b11-88944863%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'03de3e33333b3080d535c9e34db108cd9ee7c79a' =>
|
|
||||||
array (
|
|
||||||
0 => '/var/www/html/templates/boxes/status_open_on_popup.tpl',
|
|
||||||
1 => 1410130449,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '1777606882540ce32fb42b11-88944863',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<div id="centeredDivOnPopup" class="" style="margin:auto; position:fixed; top:50%; left:50%; margin-top:-150px;margin-left:-275px;z-index:3000; display:none">
|
|
||||||
<div style="width:548px; border:solid; border-color:#999;border-width:1px; background-color:#ccc; padding-left:5px; padding-top:5px; padding-bottom:5px">
|
|
||||||
<div style="width:500px; border:solid; border-color:#999;border-width:1px; background-color:#FFF; padding:20px">
|
|
||||||
<div id="close_icon" onclick="ToogleStatusDivOnPopup()" style="position:absolute;top: 35px; left: 500px;cursor:pointer; z-index:5000"><a href="javascript:void(0)"><img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/close_icon.gif" height="32" width="32" border="0"/></a></div>
|
|
||||||
|
|
||||||
@@ -1,47 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-05-25 15:18:07
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/facturacion-mensual.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:79755283053824fff468874-97908302%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'03f4379ecf6f19d25ec9bbbd42a3d0f787bf8296' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/facturacion-mensual.tpl',
|
|
||||||
1 => 1384905888,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '79755283053824fff468874-97908302',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
|
|
||||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/items/facturacion-mensual-header.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
|
|
||||||
$_template->assign('clase',"Off"); echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
|
|
||||||
|
|
||||||
|
|
||||||
<?php if (count($_smarty_tpl->getVariable('comprobantes')->value['items'])){?>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['fact'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('comprobantes')->value['items']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
||||||
if (count($_from) > 0){
|
|
||||||
foreach ($_from as $_smarty_tpl->tpl_vars['fact']->key => $_smarty_tpl->tpl_vars['fact']->value){
|
|
||||||
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['fact']->key;
|
|
||||||
?>
|
|
||||||
<?php if ($_smarty_tpl->getVariable('key')->value%2==0){?>
|
|
||||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/items/facturacion-mensual-base.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
|
|
||||||
$_template->assign('clase',"Off"); echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
|
|
||||||
|
|
||||||
<?php }else{ ?>
|
|
||||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/items/facturacion-mensual-base.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
|
|
||||||
$_template->assign('clase',"On"); echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
|
|
||||||
|
|
||||||
<?php }?>
|
|
||||||
<?php }} ?>
|
|
||||||
<?php }else{ ?>
|
|
||||||
<tr><td colspan="8" align="center">Ningún registro encontrado.</td>
|
|
||||||
<?php }?>
|
|
||||||
|
|
||||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/pages_new.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
|
|
||||||
$_template->assign('pages',$_smarty_tpl->getVariable('comprobantes')->value['pages']);$_template->assign('colspan',8); echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
|
|
||||||
@@ -1,47 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-09-26 13:04:35
|
|
||||||
compiled from "/var/www/html/templates/lists/envios.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:12932476015425aab3901374-75984446%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'041d117c7b3b90f4b7f54f701418d7d20fa5fe4a' =>
|
|
||||||
array (
|
|
||||||
0 => '/var/www/html/templates/lists/envios.tpl',
|
|
||||||
1 => 1410130459,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '12932476015425aab3901374-75984446',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
|
|
||||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/items/envios-header.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
|
|
||||||
$_template->assign('clase',"Off"); echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
|
|
||||||
|
|
||||||
|
|
||||||
<?php if (count($_smarty_tpl->getVariable('envios')->value['items'])){?>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('envios')->value['items']; 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){
|
|
||||||
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
|
|
||||||
?>
|
|
||||||
<?php if ($_smarty_tpl->getVariable('key')->value%2==0){?>
|
|
||||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/items/envios-base.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
|
|
||||||
$_template->assign('clase',"Off"); echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
|
|
||||||
|
|
||||||
<?php }else{ ?>
|
|
||||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/items/envios-base.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
|
|
||||||
$_template->assign('clase',"On"); echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
|
|
||||||
|
|
||||||
<?php }?>
|
|
||||||
<?php }} ?>
|
|
||||||
<?php }else{ ?>
|
|
||||||
<tr><td colspan="9" align="center">Ningún registro encontrado.</td>
|
|
||||||
<?php }?>
|
|
||||||
|
|
||||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/pages_new.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
|
|
||||||
$_template->assign('pages',$_smarty_tpl->getVariable('envios')->value['pages']);$_template->assign('colspan',9); echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-06-04 13:31:08
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/enumProvPromo.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:1397652755538f65ecb1e968-34049888%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'047f6d1f0d2c6a4b43f40905cfb3101926dca65d' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/enumProvPromo.tpl',
|
|
||||||
1 => 1401906157,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '1397652755538f65ecb1e968-34049888',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('proveedores')->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){
|
|
||||||
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
|
|
||||||
?>
|
|
||||||
<input type="checkbox" name="idProveedor[]" value="<?php echo $_smarty_tpl->getVariable('item')->value['proveedorId'];?>
|
|
||||||
" <?php if ($_smarty_tpl->getVariable('item')->value['checked']){?>checked<?php }?>/><?php echo $_smarty_tpl->getVariable('item')->value['nombre'];?>
|
|
||||||
|
|
||||||
<br />
|
|
||||||
<?php }} ?>
|
|
||||||
@@ -1,274 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-06-04 13:35:47
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/forms/detalles-promocion.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:2130424323538f6703448ce8-56941482%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'049eb01278a8b0c71c28bbf1a76cab0cf2f545cd' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/forms/detalles-promocion.tpl',
|
|
||||||
1 => 1401906251,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '2130424323538f6703448ce8-56941482',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<div id="divForm">
|
|
||||||
|
|
||||||
<fieldset>
|
|
||||||
|
|
||||||
<div class="a">
|
|
||||||
<div class="l"><b>* Nombre:</b></div>
|
|
||||||
<div class="r">
|
|
||||||
<div class="txtFrm" style="width:680px"><?php echo $_smarty_tpl->getVariable('info')->value['nombre'];?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
|
||||||
<tr>
|
|
||||||
<td align="left">
|
|
||||||
<b>* Vigencia</b>
|
|
||||||
<br />
|
|
||||||
<div class="txtFrm" style="width:150px">
|
|
||||||
<?php if ($_smarty_tpl->getVariable('info')->value['vigencia']=="Periodo"){?>Por Periodo<?php }else{ ?>Permanente<?php }?>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
<td align="left">
|
|
||||||
<div id="txtFechaIni" <?php if ($_smarty_tpl->getVariable('info')->value['vigencia']!="Periodo"){?>style="display:none"<?php }?>>
|
|
||||||
<b>* Fecha Inicial:</b>
|
|
||||||
<br />
|
|
||||||
<div class="txtFrm" style="width:150px"><?php echo $_smarty_tpl->getVariable('info')->value['fechaIni'];?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
<td align="left">
|
|
||||||
<div id="txtFechaFin" <?php if ($_smarty_tpl->getVariable('info')->value['vigencia']!="Periodo"){?>style="display:none"<?php }?>>
|
|
||||||
<b>* Fecha Final:</b>
|
|
||||||
<br />
|
|
||||||
<div class="txtFrm" style="width:150px"><?php echo $_smarty_tpl->getVariable('info')->value['fechaFin'];?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="left" colspan="3">
|
|
||||||
* Aplicar Promoción a TODOS los productos?
|
|
||||||
<br />
|
|
||||||
<div class="txtFrm" style="width:150px">
|
|
||||||
<?php if ($_smarty_tpl->getVariable('info')->value['aplicaTodos']=="1"){?>Sí<?php }elseif($_smarty_tpl->getVariable('info')->value['aplicaTodos']=="0"){?>No<?php }?>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<div class="a">
|
|
||||||
<div class="l"><b>* Sucursal:</b></div>
|
|
||||||
<div class="r listChksV">
|
|
||||||
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('sucursales')->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){
|
|
||||||
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
|
|
||||||
?>
|
|
||||||
- <?php echo $_smarty_tpl->getVariable('item')->value['nombre'];?>
|
|
||||||
<br />
|
|
||||||
<?php }} ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="listProducts" <?php if ($_smarty_tpl->getVariable('info')->value['aplicaTodos']=="1"){?>style="display:none"<?php }?>>
|
|
||||||
|
|
||||||
<div class="a">
|
|
||||||
<div class="l"><b>* Departamento:</b></div>
|
|
||||||
<div class="r listChksV">
|
|
||||||
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('categorias')->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){
|
|
||||||
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
|
|
||||||
?>
|
|
||||||
- <?php echo $_smarty_tpl->getVariable('item')->value['nombre'];?>
|
|
||||||
<br />
|
|
||||||
<?php }} ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="a">
|
|
||||||
<div class="l"><b>* Línea:</b></div>
|
|
||||||
<div class="r listChksV">
|
|
||||||
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('subcategorias')->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){
|
|
||||||
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
|
|
||||||
?>
|
|
||||||
- <?php echo $_smarty_tpl->getVariable('item')->value['nombre'];?>
|
|
||||||
<br />
|
|
||||||
<?php }} ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="a">
|
|
||||||
<div class="l"><b>* Proveedor:</b></div>
|
|
||||||
<div class="r listChksV">
|
|
||||||
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('proveedores')->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){
|
|
||||||
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
|
|
||||||
?>
|
|
||||||
- <?php echo $_smarty_tpl->getVariable('item')->value['nombre'];?>
|
|
||||||
<br />
|
|
||||||
<?php }} ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="a">
|
|
||||||
<div class="l"><b>* Producto:</b></div>
|
|
||||||
<div class="r listChksV">
|
|
||||||
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['key'] = 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){
|
|
||||||
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
|
|
||||||
?>
|
|
||||||
- <?php echo $_smarty_tpl->getVariable('item')->value['descripcion'];?>
|
|
||||||
<br />
|
|
||||||
<?php }} ?>
|
|
||||||
</div>
|
|
||||||
<?php echo count($_smarty_tpl->getVariable('productos')->value);?>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
|
||||||
<tr>
|
|
||||||
<td align="left"><b>* Tipo de Promoción:</b></td>
|
|
||||||
<td align="left" colspan="2"><b>* Aplica en:</b></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="left" width="230">
|
|
||||||
<div class="txtFrm" style="width:150px">
|
|
||||||
<?php if ($_smarty_tpl->getVariable('info')->value['tipo']=="AxB"){?> A x B
|
|
||||||
<?php }elseif($_smarty_tpl->getVariable('info')->value['tipo']=="TotalVentaB"){?> Total Venta x B
|
|
||||||
<?php }elseif($_smarty_tpl->getVariable('info')->value['tipo']=="CompraX"){?> Compra $x
|
|
||||||
<?php }elseif($_smarty_tpl->getVariable('info')->value['tipo']=="BuenFin"){?> Buen Fin
|
|
||||||
<?php }?>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
<td align="left" colspan="2">
|
|
||||||
<div class="txtFrm" style="width:440px">
|
|
||||||
<?php if ($_smarty_tpl->getVariable('info')->value['aplica']=="XxY"){?> Compra X Prods. al Precio de Y por Producto
|
|
||||||
<?php }elseif($_smarty_tpl->getVariable('info')->value['aplica']=="N1Desc"){?> Compra N Prods. y N+1 aplica un Descuento
|
|
||||||
<?php }elseif($_smarty_tpl->getVariable('info')->value['aplica']=="CompraX"){?> Compra $x y Regala B
|
|
||||||
<?php }elseif($_smarty_tpl->getVariable('info')->value['aplica']=="CompraXabonoM"){?> Compra $x y Abona % a Monedero
|
|
||||||
<?php }elseif($_smarty_tpl->getVariable('info')->value['aplica']=="DescCuenta"){?> Descuento por toda la Cuenta
|
|
||||||
<?php }elseif($_smarty_tpl->getVariable('info')->value['aplica']=="ArtConDesc"){?> Artículos después de $x con Descuento
|
|
||||||
<?php }elseif($_smarty_tpl->getVariable('info')->value['aplica']=="3x2"){?> 3 x 2
|
|
||||||
<?php }?>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr id="rowXY" <?php if ($_smarty_tpl->getVariable('info')->value['aplica']!="XxY"){?>style="display:none"<?php }?>>
|
|
||||||
<td align="left"></td>
|
|
||||||
<td align="left">
|
|
||||||
<b>* Valor de X:</b> <br />
|
|
||||||
<div class="txtFrm" style="width:150px"><?php echo $_smarty_tpl->getVariable('info')->value['valorX'];?>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
<td align="left">
|
|
||||||
<b>* Valor Y:</b> <br />
|
|
||||||
<div class="txtFrm" style="width:150px"><?php echo $_smarty_tpl->getVariable('info')->value['valorY'];?>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr id="rowTipoDesc" <?php if ($_smarty_tpl->getVariable('info')->value['aplica']!="N1Desc"&&$_smarty_tpl->getVariable('info')->value['aplica']!="DescCuenta"&&$_smarty_tpl->getVariable('info')->value['aplica']!="ArtConDesc"){?>style="display:none"<?php }?>>
|
|
||||||
<td align="left">
|
|
||||||
<b>* Tipo de Descuento:</b> <br />
|
|
||||||
<div class="txtFrm" style="width:150px">
|
|
||||||
<?php if ($_smarty_tpl->getVariable('info')->value['tipoDesc']=="Cantidad"){?>Cantidad Fija<?php }else{ ?>Porcentaje<?php }?>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
<td align="left">
|
|
||||||
<b>* Valor del Descuento:</b> <br />
|
|
||||||
<div class="txtFrm" style="width:150px"><?php echo $_smarty_tpl->getVariable('info')->value['valorDesc'];?>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
<td align="left">
|
|
||||||
<div id="txtTotalCompra" <?php if ($_smarty_tpl->getVariable('info')->value['aplica']!="DescCuenta"&&$_smarty_tpl->getVariable('info')->value['aplica']!="ArtConDesc"){?>style="display:none"<?php }?>>
|
|
||||||
<b>* Total de la Compra:</b> <br />
|
|
||||||
<div class="txtFrm" style="width:150px"><?php echo $_smarty_tpl->getVariable('info')->value['totalCompra'];?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div id="txtValorN" <?php if ($_smarty_tpl->getVariable('info')->value['aplica']!="N1Desc"){?>style="display:none"<?php }?>>
|
|
||||||
<b>* Valor N:</b> <br />
|
|
||||||
<div class="txtFrm" style="width:150px"><?php echo $_smarty_tpl->getVariable('info')->value['valorN'];?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr id="rowTotalVentaB" <?php if ($_smarty_tpl->getVariable('info')->value['aplica']!="CompraX"){?>style="display:none"<?php }?>>
|
|
||||||
<td align="left">
|
|
||||||
<b>* Total de la Compra:</b> <br />
|
|
||||||
<div class="txtFrm" style="width:150px"><?php echo $_smarty_tpl->getVariable('info')->value['totalCompra'];?>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
<td align="left">
|
|
||||||
<b>* Cant. de Art. a Regalar:</b> <br />
|
|
||||||
<div class="txtFrm" style="width:150px"><?php echo $_smarty_tpl->getVariable('info')->value['cantArtRegalo'];?>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
<td align="left"></td>
|
|
||||||
</tr>
|
|
||||||
<tr id="rowProdVentaB" <?php if ($_smarty_tpl->getVariable('info')->value['aplica']!="CompraX"){?>style="display:none"<?php }?>>
|
|
||||||
<td align="left" colspan="3">
|
|
||||||
<b>* Producto a Regalar:</b> <br />
|
|
||||||
<div class="txtFrm" style="width:380px"><?php echo $_smarty_tpl->getVariable('info')->value['producto'];?>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr id="rowTotalVentaM" <?php if ($_smarty_tpl->getVariable('info')->value['aplica']!="CompraXabonoM"){?>style="display:none"<?php }?>>
|
|
||||||
<td align="left">
|
|
||||||
* Total de la Compra: <br />
|
|
||||||
<div class="txtFrm" style="width:150px"><?php echo $_smarty_tpl->getVariable('info')->value['totalCompra'];?>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
<td align="left">
|
|
||||||
* Porcentaje Abonar: <br />
|
|
||||||
<div class="txtFrm" style="width:150px"><?php echo $_smarty_tpl->getVariable('info')->value['valorDesc'];?>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
<td align="left"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="left">
|
|
||||||
<b>* Status:</b> <br />
|
|
||||||
<div class="txtFrm" style="width:150px"><?php echo $_smarty_tpl->getVariable('info')->value['status'];?>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
<td align="left"></td>
|
|
||||||
<td align="left"></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<div style="clear:both"></div>
|
|
||||||
<hr />
|
|
||||||
|
|
||||||
* Campos requeridos
|
|
||||||
<div class="formLine" style="text-align:center; padding-left:300px">
|
|
||||||
<a class="button" id="btnClose"><span>Cerrar</span></a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
@@ -1,81 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-06-25 08:00:35
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/pedidos-productos-dev.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:97751271053aac7f30ccd51-95038264%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'04d4645fa0ac11d7d21a295c9b5d04f16ca1579d' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/pedidos-productos-dev.tpl',
|
|
||||||
1 => 1381517985,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '97751271053aac7f30ccd51-95038264',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['it'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('products')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
||||||
if (count($_from) > 0){
|
|
||||||
foreach ($_from as $_smarty_tpl->tpl_vars['it']->key => $_smarty_tpl->tpl_vars['it']->value){
|
|
||||||
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['it']->key;
|
|
||||||
?>
|
|
||||||
<hr />
|
|
||||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
|
||||||
<tr>
|
|
||||||
<td width="120" align="left" height="40">Departamento:</td>
|
|
||||||
<td align="left"><div class="txtFrm" style="width:270px"><?php echo $_smarty_tpl->getVariable('it')->value['departamento'];?>
|
|
||||||
</div></td>
|
|
||||||
<td width="10"></td>
|
|
||||||
<td width="130" align="left">Línea:</td>
|
|
||||||
<td align="left"><div class="txtFrm" style="width:270px"><?php echo $_smarty_tpl->getVariable('it')->value['linea'];?>
|
|
||||||
</div></td>
|
|
||||||
<td width="30" align="center">
|
|
||||||
<a href="javascript:void(0)" onclick="DeleteProducto(<?php echo $_smarty_tpl->getVariable('k')->value;?>
|
|
||||||
)" title="Eliminar">
|
|
||||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/icons/delete.png" border="0" /></a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td width="120" align="left" height="40">Modelo:</td>
|
|
||||||
<td align="left"><div class="txtFrm" style="width:270px"><?php echo $_smarty_tpl->getVariable('it')->value['modelo'];?>
|
|
||||||
</div></td>
|
|
||||||
<td width="10"></td>
|
|
||||||
<td width="130" align="left">Descripción:</td>
|
|
||||||
<td align="left"><div class="txtFrm" style="width:270px"><?php echo $_smarty_tpl->getVariable('it')->value['atributos'];?>
|
|
||||||
</div></td>
|
|
||||||
<td width="10"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td width="120" align="left" height="40">Código de Barra:</td>
|
|
||||||
<td align="left"><div class="txtFrm" style="width:270px"><?php echo $_smarty_tpl->getVariable('it')->value['codigoBarra'];?>
|
|
||||||
</div></td>
|
|
||||||
<td width="10"></td>
|
|
||||||
<td width="130" align="left">Disponible:</td>
|
|
||||||
<td align="left"><div class="txtFrm" style="width:270px"><?php echo $_smarty_tpl->getVariable('it')->value['disponible'];?>
|
|
||||||
</div></td>
|
|
||||||
<td width="10"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td width="120" align="left" height="40">Sucursal:</td>
|
|
||||||
<td align="left"><div class="txtFrm" style="width:270px"><?php echo $_smarty_tpl->getVariable('it')->value['sucursal'];?>
|
|
||||||
</div></td>
|
|
||||||
<td width="10"></td>
|
|
||||||
<td width="130" align="left">Cantidad a Dev:</td>
|
|
||||||
<td align="left"><div class="txtFrm" style="width:270px"><?php echo $_smarty_tpl->getVariable('it')->value['cantidad'];?>
|
|
||||||
</div></td>
|
|
||||||
<td width="10"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td colspan="6" align="center"> </td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
<?php }} else { ?>
|
|
||||||
<hr />
|
|
||||||
Ningún producto encontrado.
|
|
||||||
<?php } ?>
|
|
||||||
@@ -1,154 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-09-11 11:29:13
|
|
||||||
compiled from "/var/www/html/templates/items/reportes-proMasVend-base.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:7461914375411cdd9e46302-62005122%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'04e42e51d920368a743ed56efe978e9b619c3459' =>
|
|
||||||
array (
|
|
||||||
0 => '/var/www/html/templates/items/reportes-proMasVend-base.tpl',
|
|
||||||
1 => 1410130456,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '7461914375411cdd9e46302-62005122',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('sucursales')->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){
|
|
||||||
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
|
|
||||||
?>
|
|
||||||
|
|
||||||
<thead >
|
|
||||||
<tr>
|
|
||||||
<th></th>
|
|
||||||
<th></th>
|
|
||||||
<th></th>
|
|
||||||
<th id="alinear" colspan="1"><b><?php echo urldecode((utf8_decode($_smarty_tpl->getVariable('item')->value['nombre'])));?>
|
|
||||||
</b></th>
|
|
||||||
<th></th>
|
|
||||||
<th></th>
|
|
||||||
<th ><div style="float:right"><a href="javascript:void(0)" id="showHide<?php echo $_smarty_tpl->getVariable('item')->value['sucursalId'];?>
|
|
||||||
" onclick="ShowDesc(<?php echo $_smarty_tpl->getVariable('item')->value['sucursalId'];?>
|
|
||||||
)">[+]</a></div></th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
|
|
||||||
<tbody id="totales<?php echo $_smarty_tpl->getVariable('item')->value['sucursalId'];?>
|
|
||||||
" style="display:none">
|
|
||||||
<tr style="background:#E0E5E7;text-align:center">
|
|
||||||
<th id="alinear"><b>Código de Barras</b></th>
|
|
||||||
<th id="alinear"><b>Producto</b></th>
|
|
||||||
<th id="alinear"><b>Inv. Actual</b></th>
|
|
||||||
<th id="alinear"><b>Número de productos vendidos</b></th>
|
|
||||||
<th id="alinear"><b>Costo</b></th>
|
|
||||||
<th id="alinear"><b>Precio Venta</b></th>
|
|
||||||
<th id="alinear"><b>Importe Total</b></th>
|
|
||||||
</tr>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['itP'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['k1'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('item')->value['productos']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
||||||
if (count($_from) > 0){
|
|
||||||
foreach ($_from as $_smarty_tpl->tpl_vars['itP']->key => $_smarty_tpl->tpl_vars['itP']->value){
|
|
||||||
$_smarty_tpl->tpl_vars['k1']->value = $_smarty_tpl->tpl_vars['itP']->key;
|
|
||||||
?>
|
|
||||||
<tr>
|
|
||||||
<td style="text-align:center;"><?php echo $_smarty_tpl->getVariable('itP')->value['codigoBarra'];?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:left;"><?php echo $_smarty_tpl->getVariable('itP')->value['modelo'];?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:center;"><?php echo number_format($_smarty_tpl->getVariable('itP')->value['disponible'],0,'.',',');?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:center;"><?php echo number_format($_smarty_tpl->getVariable('itP')->value['vendidos'],0,'.',',');?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:center;">$<?php echo number_format($_smarty_tpl->getVariable('itP')->value['costo'],2,'.',',');?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:center;">$<?php echo number_format($_smarty_tpl->getVariable('itP')->value['precioVenta'],2,'.',',');?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:center;">$<?php echo number_format($_smarty_tpl->getVariable('itP')->value['total'],2,'.',',');?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<?php }} ?>
|
|
||||||
<tr>
|
|
||||||
<td style="text-align:center;"></td>
|
|
||||||
<td style="text-align:center;"><b>TOTAL</b></td>
|
|
||||||
<td style="text-align:center;"><?php echo number_format($_smarty_tpl->getVariable('item')->value['disponible'],0,'.',',');?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:center;"><?php echo number_format($_smarty_tpl->getVariable('item')->value['vendidos'],0,'.',',');?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:center;"></td>
|
|
||||||
<td style="text-align:center;"></td>
|
|
||||||
<td style="text-align:center;">$<?php echo number_format($_smarty_tpl->getVariable('item')->value['importe'],2,'.',',');?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
|
|
||||||
<?php }} ?>
|
|
||||||
|
|
||||||
|
|
||||||
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']=="admin"||$_smarty_tpl->getVariable('Usr')->value['type']=="direccion"||$_smarty_tpl->getVariable('Usr')->value['type']=="almacen"||$_smarty_tpl->getVariable('Usr')->value['type']=="centralizador"){?>
|
|
||||||
<thead >
|
|
||||||
<tr>
|
|
||||||
<th></th>
|
|
||||||
<th></th>
|
|
||||||
<th></th>
|
|
||||||
<th id="alinear" colspan="1"><b><?php if ($_smarty_tpl->getVariable('orden')->value=="mayor"){?>Productos Más Vendidos<?php }else{ ?>Productos Menos Vendidos<?php }?></b></th>
|
|
||||||
<th></th>
|
|
||||||
<th></th>
|
|
||||||
<th><div style="float:right"><a href="javascript:void(0)" id="showHide0" onclick="ShowDesc(0)">[+]</a></div></th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody id="totales0" style="display:none">
|
|
||||||
<tr style="background:#E0E5E7;text-align:center">
|
|
||||||
<th id="alinear"><b>Código de Barras</b></th>
|
|
||||||
<th id="alinear"><b>Producto</b></th>
|
|
||||||
<th id="alinear"><b>Inv. Actual</b></th>
|
|
||||||
<th id="alinear"><b>Número de productos vendidos</b></th>
|
|
||||||
<th id="alinear"><b>Costo</b></th>
|
|
||||||
<th id="alinear"><b>Precio Venta</b></th>
|
|
||||||
<th id="alinear"><b>Importe Total</b></th>
|
|
||||||
</tr>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('prodsGral')->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){
|
|
||||||
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
|
|
||||||
?>
|
|
||||||
<tr>
|
|
||||||
<td style="text-align:center;"><?php echo $_smarty_tpl->getVariable('item')->value['codigoBarra'];?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:left;"><?php echo $_smarty_tpl->getVariable('item')->value['modelo'];?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:center;"><?php echo number_format($_smarty_tpl->getVariable('item')->value['disponible'],0,'.',',');?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:center;"><?php echo number_format($_smarty_tpl->getVariable('item')->value['vendidos'],0,'.',',');?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:center;">$<?php echo number_format($_smarty_tpl->getVariable('item')->value['costo'],2,'.',',');?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:center;">$<?php echo number_format($_smarty_tpl->getVariable('item')->value['precioVenta'],2,'.',',');?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:center;">$<?php echo number_format($_smarty_tpl->getVariable('item')->value['total'],2,'.',',');?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<?php }} ?>
|
|
||||||
<tr>
|
|
||||||
<td style="text-align:center;"></td>
|
|
||||||
<td style="text-align:center;"><b>TOTAL</b></td>
|
|
||||||
<td style="text-align:center;"><?php echo number_format($_smarty_tpl->getVariable('totDispGral')->value,0,'.',',');?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:center;"><?php echo number_format($_smarty_tpl->getVariable('totProdsGral')->value,0,'.',',');?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:center;"></td>
|
|
||||||
<td style="text-align:center;"></td>
|
|
||||||
<td style="text-align:center;">$<?php echo number_format($_smarty_tpl->getVariable('totImpGral')->value,2,'.',',');?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
<?php }?>
|
|
||||||
|
|
||||||
@@ -1,47 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-04-30 20:11:39
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/envios-productos-recibidos.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:155235921953619f4b084379-49353993%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'05153a49f61b187e3d236fa9f81d77acf267b09e' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/envios-productos-recibidos.tpl',
|
|
||||||
1 => 1391103506,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '155235921953619f4b084379-49353993',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
|
|
||||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/items/envios-productos-recibidos-header.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
|
|
||||||
$_template->assign('clase',"Off"); echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
|
|
||||||
|
|
||||||
|
|
||||||
<?php if (count($_smarty_tpl->getVariable('productos')->value['items'])){?>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('productos')->value['items']; 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){
|
|
||||||
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
|
|
||||||
?>
|
|
||||||
<?php if ($_smarty_tpl->getVariable('key')->value%2==0){?>
|
|
||||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/items/envios-productos-recibidos-base.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
|
|
||||||
$_template->assign('clase',"Off"); echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
|
|
||||||
|
|
||||||
<?php }else{ ?>
|
|
||||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/items/envios-productos-recibidos-base.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
|
|
||||||
$_template->assign('clase',"On"); echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
|
|
||||||
|
|
||||||
<?php }?>
|
|
||||||
<?php }} ?>
|
|
||||||
<?php }else{ ?>
|
|
||||||
<tr><td colspan="10" align="center">Ningún registro encontrado.</td>
|
|
||||||
<?php }?>
|
|
||||||
|
|
||||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/pages_new.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
|
|
||||||
$_template->assign('pages',$_smarty_tpl->getVariable('productos')->value['pages']);$_template->assign('colspan',10); echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-04-30 09:54:47
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/boxes/agregar-devolucion-popup.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:110585697653610eb7c24262-29040119%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'059db46763075f0805591abbd45da5ea4c5e48db' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/boxes/agregar-devolucion-popup.tpl',
|
|
||||||
1 => 1375965202,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '110585697653610eb7c24262-29040119',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<div id="divIframe" style="height:700px"></div>
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-06-12 17:46:04
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/boxes/detalles-proveedor-popup.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:525946378539a2dac681907-99431434%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'05a7fca205a0945c6d6c5c3c9bb13b4ef98a9d3a' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/boxes/detalles-proveedor-popup.tpl',
|
|
||||||
1 => 1375965214,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '525946378539a2dac681907-99431434',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<div class="popupheader" style="z-index:70">
|
|
||||||
<div id="fviewmenu" style="z-index:70">
|
|
||||||
<div id="fviewclose"><span style="color:#CCC" id="closePopUpDiv">Close<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/b_disn.png" border="0" alt="close" /></span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="ftitl">
|
|
||||||
<div class="flabel">Detalles Proveedor</div>
|
|
||||||
<div id="vtitl"><span title="Titulo">Detalles Proveedor</span></div>
|
|
||||||
</div>
|
|
||||||
<div id="draganddrop" style="position:absolute;top:45px;left:640px">
|
|
||||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/draganddrop.png" border="0" alt="mueve" />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="wrapper">
|
|
||||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/forms/detalles-proveedor.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>
|
|
||||||
@@ -1,44 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-05-25 15:18:07
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/items/facturacion-mensual-header.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:24311562553824fff587061-61985102%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'0637c5558b426ad4faec8507acc417c1649dce82' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/items/facturacion-mensual-header.tpl',
|
|
||||||
1 => 1384905907,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '24311562553824fff587061-61985102',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<div class="clear"></div>
|
|
||||||
<!--THIS IS A WIDE PORTLET-->
|
|
||||||
<div class="portlet">
|
|
||||||
<div align="center">
|
|
||||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/icons/user.gif" width="16" height="16" /> Resumen de Comprobantes Emitidos
|
|
||||||
</div>
|
|
||||||
<div class="portlet-content nopadding">
|
|
||||||
<form action="" method="post">
|
|
||||||
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" summary="Employee Pay Sheet">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th width="70" scope="col"><div align="center">RFC</div></th>
|
|
||||||
<th width="" scope="col"><div align="center">Nombre</div></th>
|
|
||||||
<th width="60" scope="col"><div align="center">Fecha</div></th>
|
|
||||||
<th width="89" scope="col"><div align="center">Monto</div></th>
|
|
||||||
<th width="60" scope="col"><div align="center">Folio</div></th>
|
|
||||||
<?php if ($_smarty_tpl->getVariable('version')->value=="construc"||$_smarty_tpl->getVariable('version')->value=="v3"){?>
|
|
||||||
<th width="120" scope="col"><div align="center">UUID</div></th>
|
|
||||||
<?php }?>
|
|
||||||
<th width="70" scope="col"><div align="center">Periodo</div></th>
|
|
||||||
<th width="34" scope="col"><div align="center">Acciones</div></th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
|
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-04-30 18:22:16
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/boxes/export-vista-previa.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:1504171389536185a866c807-57997172%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'07155d6b181f7b6ebd65f60378d6804a9ec90e78' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/boxes/export-vista-previa.tpl',
|
|
||||||
1 => 1375965226,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '1504171389536185a866c807-57997172',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<div>
|
|
||||||
Vista previa disponible.
|
|
||||||
<br /><br />
|
|
||||||
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/util/download.php?path=<?php echo $_smarty_tpl->getVariable('comprobante')->value['path'];?>
|
|
||||||
&secPath=temp&filename=vistaPrevia.pdf&contentType=text/pdf" target="_blank" title="Descargar Vista Previ">
|
|
||||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/pdf_icon.png" height="100" width="100" border="0"/>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2016-05-03 14:57:54
|
|
||||||
compiled from "/var/www/html/templates/items/usuarios-header.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:150116824572902c24f9803-42171337%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'07fcfd9716a3d57f77cbbca50b9d1ce20155dc05' =>
|
|
||||||
array (
|
|
||||||
0 => '/var/www/html/templates/items/usuarios-header.tpl',
|
|
||||||
1 => 1410130456,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '150116824572902c24f9803-42171337',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<div class="clear"></div>
|
|
||||||
<!--THIS IS A WIDE PORTLET-->
|
|
||||||
<div class="portlet">
|
|
||||||
|
|
||||||
<div class="portlet-content nopadding">
|
|
||||||
<form action="" method="post">
|
|
||||||
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" summary="Employee Pay Sheet">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th width="" scope="col">Nombre</th>
|
|
||||||
<th width="180" scope="col"><div align="center">Email</div></th>
|
|
||||||
<th width="150" scope="col"><div align="center">Tipo</div></th>
|
|
||||||
<th width="170" scope="col"><div align="center">Sucursal</div></th>
|
|
||||||
<th width="100" scope="col"><div align="center">Acciones</div></th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
@@ -1,81 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-09-08 12:05:17
|
|
||||||
compiled from "/var/www/html/templates/lists/pedidos-productos-dev.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:1778210059540de1cdca0c65-36965405%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'0829d067e16676a3d5cbab5bfaa85ef8030e5038' =>
|
|
||||||
array (
|
|
||||||
0 => '/var/www/html/templates/lists/pedidos-productos-dev.tpl',
|
|
||||||
1 => 1410130460,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '1778210059540de1cdca0c65-36965405',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['it'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('products')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
||||||
if (count($_from) > 0){
|
|
||||||
foreach ($_from as $_smarty_tpl->tpl_vars['it']->key => $_smarty_tpl->tpl_vars['it']->value){
|
|
||||||
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['it']->key;
|
|
||||||
?>
|
|
||||||
<hr />
|
|
||||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
|
||||||
<tr>
|
|
||||||
<td width="120" align="left" height="40">Departamento:</td>
|
|
||||||
<td align="left"><div class="txtFrm" style="width:270px"><?php echo $_smarty_tpl->getVariable('it')->value['departamento'];?>
|
|
||||||
</div></td>
|
|
||||||
<td width="10"></td>
|
|
||||||
<td width="130" align="left">Línea:</td>
|
|
||||||
<td align="left"><div class="txtFrm" style="width:270px"><?php echo $_smarty_tpl->getVariable('it')->value['linea'];?>
|
|
||||||
</div></td>
|
|
||||||
<td width="30" align="center">
|
|
||||||
<a href="javascript:void(0)" onclick="DeleteProducto(<?php echo $_smarty_tpl->getVariable('k')->value;?>
|
|
||||||
)" title="Eliminar">
|
|
||||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/icons/delete.png" border="0" /></a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td width="120" align="left" height="40">Modelo:</td>
|
|
||||||
<td align="left"><div class="txtFrm" style="width:270px"><?php echo $_smarty_tpl->getVariable('it')->value['modelo'];?>
|
|
||||||
</div></td>
|
|
||||||
<td width="10"></td>
|
|
||||||
<td width="130" align="left">Descripción:</td>
|
|
||||||
<td align="left"><div class="txtFrm" style="width:270px"><?php echo $_smarty_tpl->getVariable('it')->value['atributos'];?>
|
|
||||||
</div></td>
|
|
||||||
<td width="10"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td width="120" align="left" height="40">Código de Barra:</td>
|
|
||||||
<td align="left"><div class="txtFrm" style="width:270px"><?php echo $_smarty_tpl->getVariable('it')->value['codigoBarra'];?>
|
|
||||||
</div></td>
|
|
||||||
<td width="10"></td>
|
|
||||||
<td width="130" align="left">Disponible:</td>
|
|
||||||
<td align="left"><div class="txtFrm" style="width:270px"><?php echo $_smarty_tpl->getVariable('it')->value['disponible'];?>
|
|
||||||
</div></td>
|
|
||||||
<td width="10"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td width="120" align="left" height="40">Sucursal:</td>
|
|
||||||
<td align="left"><div class="txtFrm" style="width:270px"><?php echo $_smarty_tpl->getVariable('it')->value['sucursal'];?>
|
|
||||||
</div></td>
|
|
||||||
<td width="10"></td>
|
|
||||||
<td width="130" align="left">Cantidad a Dev:</td>
|
|
||||||
<td align="left"><div class="txtFrm" style="width:270px"><?php echo $_smarty_tpl->getVariable('it')->value['cantidad'];?>
|
|
||||||
</div></td>
|
|
||||||
<td width="10"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td colspan="6" align="center"> </td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
<?php }} else { ?>
|
|
||||||
<hr />
|
|
||||||
Ningún producto encontrado.
|
|
||||||
<?php } ?>
|
|
||||||
@@ -1,75 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-06-18 10:28:50
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/conceptos-facturacion.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:112157521553a1b0326d8a56-18473896%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'092ccd4633743b877193eb7ab6b3d9a3e1b545c6' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/conceptos-facturacion.tpl',
|
|
||||||
1 => 1384905875,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '112157521553a1b0326d8a56-18473896',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" style="border-top:1px solid #CCCCCC">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th width="50" align="center"> </th>
|
|
||||||
<th width="50" align="center"><div align="center">Cant.</div></th>
|
|
||||||
<th width="100" align="center"><div align="center">Unid.</div></th>
|
|
||||||
<th width="50" align="center"><div align="center">ID.</div></th>
|
|
||||||
<th width="300" align="center"><div align="center">Descripción</div></th>
|
|
||||||
<th width="100" align="center"><div align="center">V. Unitario</div></th>
|
|
||||||
<th width="100" align="center"><div align="center">Importe</div></th>
|
|
||||||
<th width="50" align="center"><div align="center">E. Iva</div></th>
|
|
||||||
<th width="50" align="center"><div align="center">Acción</div></th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
|
|
||||||
<?php $_smarty_tpl->tpl_vars['concepto'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('conceptos')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
||||||
if (count($_from) > 0){
|
|
||||||
foreach ($_from as $_smarty_tpl->tpl_vars['concepto']->key => $_smarty_tpl->tpl_vars['concepto']->value){
|
|
||||||
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['concepto']->key;
|
|
||||||
?>
|
|
||||||
<tr id="conceptoDiv<?php echo $_smarty_tpl->getVariable('key')->value;?>
|
|
||||||
">
|
|
||||||
<td id="conceptoBaseUserId<?php echo $_smarty_tpl->getVariable('key')->value;?>
|
|
||||||
" align="center" valign="top"><?php echo $_smarty_tpl->getVariable('key')->value;?>
|
|
||||||
</td>
|
|
||||||
<td align="center" valign="top"><?php echo number_format($_smarty_tpl->getVariable('concepto')->value['cantidad'],2,".",",");?>
|
|
||||||
</td>
|
|
||||||
<td align="center" valign="top"><?php echo $_smarty_tpl->getVariable('concepto')->value['unidad'];?>
|
|
||||||
</td>
|
|
||||||
<td align="center" valign="top"><?php echo $_smarty_tpl->getVariable('concepto')->value['noIdentificacion'];?>
|
|
||||||
</td>
|
|
||||||
<td style="font-family:'Courier New', Courier, monospace; text-align:justify" valign="top"><?php echo nl2br($_smarty_tpl->getVariable('concepto')->value['descripcion']);?>
|
|
||||||
</td>
|
|
||||||
<td align="center" valign="top"><?php echo number_format($_smarty_tpl->getVariable('concepto')->value['valorUnitario'],2,".",",");?>
|
|
||||||
</td>
|
|
||||||
<td align="center" valign="top"><?php echo number_format($_smarty_tpl->getVariable('concepto')->value['importe'],2,".",",");?>
|
|
||||||
</td>
|
|
||||||
<td align="center" valign="top"><?php echo $_smarty_tpl->getVariable('concepto')->value['excentoIva'];?>
|
|
||||||
</td>
|
|
||||||
<td align="center" valign="top">
|
|
||||||
<a href="javascript:void(0)" onclick="BorrarConcepto(<?php echo $_smarty_tpl->getVariable('key')->value;?>
|
|
||||||
)" title="Eliminar">
|
|
||||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/icons/action_delete.gif" border="0" />
|
|
||||||
</a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<?php }} else { ?>
|
|
||||||
<tr>
|
|
||||||
<td colspan="9" align="center">Ningún concepto encontrado.</td>
|
|
||||||
</tr>
|
|
||||||
<?php } ?>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-04-30 10:27:51
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/boxes/agregar-metodo-pago-popup.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:103174602453611677457766-62745659%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'096aa982e346a2513aba04327c0921e5afe34c24' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/boxes/agregar-metodo-pago-popup.tpl',
|
|
||||||
1 => 1375965204,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '103174602453611677457766-62745659',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<div class="popupheader" style="z-index:70">
|
|
||||||
<div id="fviewmenu" style="z-index:70">
|
|
||||||
<div id="fviewclose"><span style="color:#CCC" id="closePopUpDiv">Close<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/b_disn.png" border="0" alt="close" /></span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="ftitl">
|
|
||||||
<div class="flabel">Agregar Método de Pago</div>
|
|
||||||
<div id="vtitl"><span title="Titulo">Agregar Método de Pago</span></div>
|
|
||||||
</div>
|
|
||||||
<div id="draganddrop" style="position:absolute;top:45px;left:640px">
|
|
||||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/draganddrop.png" border="0" alt="mueve" />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="wrapper">
|
|
||||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/forms/agregar-metodo-pago.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>
|
|
||||||
@@ -1,117 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-06-04 13:33:28
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/forms/excluir-promocion.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:729317341538f667861f0d8-80577666%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'0a34406c18cba5f25f2583bf11ee511f35259490' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/forms/excluir-promocion.tpl',
|
|
||||||
1 => 1401906803,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '729317341538f667861f0d8-80577666',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<div id="divForm">
|
|
||||||
<form name="frmPromocion" id="frmPromocion" method="post" action="">
|
|
||||||
<input type="hidden" name="type" id="type" value="saveExcluirPromocion" />
|
|
||||||
<input type="hidden" name="promocionId" id="promocionId" value="<?php echo $_smarty_tpl->getVariable('info')->value['promocionId'];?>
|
|
||||||
" />
|
|
||||||
<fieldset>
|
|
||||||
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">* Proveedor:</div>
|
|
||||||
<div class="r">
|
|
||||||
<select name="proveedorId" id="proveedorId" class="largeInput wide2">
|
|
||||||
<option value="">Seleccione</option>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('proveedores')->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){
|
|
||||||
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
|
|
||||||
?>
|
|
||||||
<option value="<?php echo $_smarty_tpl->getVariable('item')->value['proveedorId'];?>
|
|
||||||
"><?php echo $_smarty_tpl->getVariable('item')->value['nombre'];?>
|
|
||||||
</option>
|
|
||||||
<?php }} ?>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">Departamento:</div>
|
|
||||||
<div class="r">
|
|
||||||
<select name="prodCatId" id="prodCatId" class="largeInput wide2" onchange="LoadSubcatsExc()">
|
|
||||||
<option value="">Todos</option>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('categorias')->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){
|
|
||||||
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
|
|
||||||
?>
|
|
||||||
<option value="<?php echo $_smarty_tpl->getVariable('item')->value['prodCatId'];?>
|
|
||||||
"><?php echo $_smarty_tpl->getVariable('item')->value['nombre'];?>
|
|
||||||
</option>
|
|
||||||
<?php }} ?>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">Línea:</div>
|
|
||||||
<div class="r" id="enumSubcats">
|
|
||||||
<select name="prodSubcatId" id="prodSubcatId" class="largeInput wide2">
|
|
||||||
<option value="">Todas</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="a">
|
|
||||||
<div style="float:left">* Producto:</div>
|
|
||||||
<div style="float:right; padding-right:20px">
|
|
||||||
<input type="checkbox" name="checkProd" id="checkProd" value="1" onclick="CheckAllProd()" />Marcar Todos
|
|
||||||
</div>
|
|
||||||
<div class="r listChks" id="enumProds" style="clear:both">
|
|
||||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/enumProdPromo.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>
|
|
||||||
</div>
|
|
||||||
<div id="cantProds" style="float:left"></div>
|
|
||||||
<div align="right">
|
|
||||||
<input type="button" value="Actualizar Productos" style="padding:6px; margin-right:15px" onclick="LoadProdsExc()" />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div style="clear:both"></div>
|
|
||||||
<hr />
|
|
||||||
* Campos requeridos
|
|
||||||
|
|
||||||
<div align="center" id="loader" style="display:none">
|
|
||||||
Este proceso puede tardar unos minutos.
|
|
||||||
<br />Por favor, espere.
|
|
||||||
<br /><img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/loading.gif" />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="formLine" style="text-align:center; padding-left:310px">
|
|
||||||
<a class="button" id="btnEdit"><span>Agregar</span></a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</fieldset>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<hr />
|
|
||||||
<div align="center"><b>PRODUCTOS EXCLUIDOS</b></div>
|
|
||||||
<br />
|
|
||||||
<div id="tblProds" align="center">
|
|
||||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/promociones-productos.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>
|
|
||||||
@@ -1,90 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-04-30 08:32:25
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/boxes/aplicar-promo-venta-popup.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:12444975585360fb69427739-10193678%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'0b489822468666ca13af16c8622be5973f7b47cd' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/boxes/aplicar-promo-venta-popup.tpl',
|
|
||||||
1 => 1375965211,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '12444975585360fb69427739-10193678',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<?php if ($_smarty_tpl->getVariable('promoId')->value){?>
|
|
||||||
|
|
||||||
<div align="center" class="txtH1">PROMOCION APLICADA</div>
|
|
||||||
|
|
||||||
<div align="center">
|
|
||||||
<br />
|
|
||||||
<?php echo $_smarty_tpl->getVariable('nomPromo')->value;?>
|
|
||||||
|
|
||||||
<br /><br />
|
|
||||||
<table width="50%" cellpadding="0" cellspacing="0" border="0" align="center">
|
|
||||||
<tr>
|
|
||||||
<td align="center" height="50" width="50%">
|
|
||||||
<input type="button" style="padding:10px; width:100px" value="Eliminar" onclick="EliminarPromo(<?php echo $_smarty_tpl->getVariable('promoId')->value;?>
|
|
||||||
)" />
|
|
||||||
</td>
|
|
||||||
<td align="center" height="50" width="50%">
|
|
||||||
<input type="button" style="padding:10px; width:100px" value="Cancelar" onclick="HideFviewCobro()" />
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php }else{ ?>
|
|
||||||
|
|
||||||
<div align="center" class="txtH1">APLICAR PROMOCION</div>
|
|
||||||
|
|
||||||
<?php if (count($_smarty_tpl->getVariable('promociones')->value)){?>
|
|
||||||
<table width="100%" cellpadding="0" cellspacing="0" border="0" align="center">
|
|
||||||
<tr>
|
|
||||||
<td align="center"><b>Seleccione la Promoción:</b></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="center">
|
|
||||||
<select name="promocionId" id="promocionId" class="largeInput">
|
|
||||||
<option value="">Seleccione</option>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('promociones')->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){
|
|
||||||
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
|
|
||||||
?>
|
|
||||||
<option value="<?php echo $_smarty_tpl->getVariable('item')->value['promocionId'];?>
|
|
||||||
"><?php echo $_smarty_tpl->getVariable('item')->value['nombre'];?>
|
|
||||||
</option>
|
|
||||||
<?php }} ?>
|
|
||||||
</select>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<table width="50%" cellpadding="0" cellspacing="0" border="0" align="center">
|
|
||||||
<tr>
|
|
||||||
<td align="center" height="50" width="50%">
|
|
||||||
<input type="button" style="padding:10px; width:100px" value="Aplicar" onclick="AsignarPromo()" />
|
|
||||||
</td>
|
|
||||||
<td align="center" height="50" width="50%">
|
|
||||||
<input type="button" style="padding:10px; width:100px" value="Cancelar" onclick="HideFviewCobro()" />
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<?php }else{ ?>
|
|
||||||
<div align="center">
|
|
||||||
<br />
|
|
||||||
Ninguna promocion encontrada.
|
|
||||||
<br /><br />
|
|
||||||
<input type="button" style="padding:10px; width:100px" value="Cancelar" onclick="HideFviewCobro()" />
|
|
||||||
</div>
|
|
||||||
<?php }?>
|
|
||||||
|
|
||||||
<?php }?>
|
|
||||||
@@ -1,51 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-04-29 22:57:29
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/analisis-sucursal.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:1137908193536074a9b353a1-89202520%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'0c0488c3e87d96665f6a17d2be7a1d4537bc3fbf' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/analisis-sucursal.tpl',
|
|
||||||
1 => 1381165837,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '1137908193536074a9b353a1-89202520',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<table width="100%" cellpadding="0" cellspacing="0" id="subTable">
|
|
||||||
<?php $_smarty_tpl->tpl_vars['iS'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['kS'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('sucursales')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
||||||
if (count($_from) > 0){
|
|
||||||
foreach ($_from as $_smarty_tpl->tpl_vars['iS']->key => $_smarty_tpl->tpl_vars['iS']->value){
|
|
||||||
$_smarty_tpl->tpl_vars['kS']->value = $_smarty_tpl->tpl_vars['iS']->key;
|
|
||||||
?>
|
|
||||||
<tr>
|
|
||||||
<td width="40" height="35"></td>
|
|
||||||
<td align="center" width="40">
|
|
||||||
<a href="javascript:void(0)" onclick="ShowProveedores(<?php echo $_smarty_tpl->getVariable('kS')->value;?>
|
|
||||||
)"><div id="iconSuc_<?php echo $_smarty_tpl->getVariable('kS')->value;?>
|
|
||||||
">[+]</div></a>
|
|
||||||
</td>
|
|
||||||
<td align="left"><?php echo $_smarty_tpl->getVariable('iS')->value['nombre'];?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<tr id="prov_<?php echo $_smarty_tpl->getVariable('kS')->value;?>
|
|
||||||
" style="display:none">
|
|
||||||
<td colspan="3" align="left">
|
|
||||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/analisis-proveedor.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);?>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<?php }} else { ?>
|
|
||||||
<tr>
|
|
||||||
<td align="center">Ningún registro encontrado.</td>
|
|
||||||
</tr>
|
|
||||||
<?php } ?>
|
|
||||||
</table>
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-06-11 14:23:29
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/boxes/editar-comision-popup.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:20033802835398acb182d5a4-39379405%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'0db41191c0891e1ea9719ffc4dde6a8c82edb0e4' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/boxes/editar-comision-popup.tpl',
|
|
||||||
1 => 1375965218,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '20033802835398acb182d5a4-39379405',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<div class="popupheader" style="z-index:70">
|
|
||||||
<div id="fviewmenu" style="z-index:70">
|
|
||||||
<div id="fviewclose"><span style="color:#CCC" id="closePopUpDiv">
|
|
||||||
<a href="javascript:void(0)">Close<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/b_disn.png" border="0" alt="close" /></a></span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="ftitl">
|
|
||||||
<div class="flabel">Editar Politica de Comision</div>
|
|
||||||
<div id="vtitl"><span title="Titulo">Editar Politica de Comision</span></div>
|
|
||||||
</div>
|
|
||||||
<div id="draganddrop" style="position:absolute;top:45px;left:640px">
|
|
||||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/draganddrop.png" border="0" alt="mueve" />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="wrapper">
|
|
||||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/forms/editar-comision.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>
|
|
||||||
@@ -1,51 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-12-11 10:02:50
|
|
||||||
compiled from "/var/www/html/templates/lists/analisis-sucursal.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:20892109195489c02a5d6170-84068245%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'0df98406c6b3dfe01787fbec01cc4c2ebd78c449' =>
|
|
||||||
array (
|
|
||||||
0 => '/var/www/html/templates/lists/analisis-sucursal.tpl',
|
|
||||||
1 => 1410130457,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '20892109195489c02a5d6170-84068245',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<table width="100%" cellpadding="0" cellspacing="0" id="subTable">
|
|
||||||
<?php $_smarty_tpl->tpl_vars['iS'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['kS'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('sucursales')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
||||||
if (count($_from) > 0){
|
|
||||||
foreach ($_from as $_smarty_tpl->tpl_vars['iS']->key => $_smarty_tpl->tpl_vars['iS']->value){
|
|
||||||
$_smarty_tpl->tpl_vars['kS']->value = $_smarty_tpl->tpl_vars['iS']->key;
|
|
||||||
?>
|
|
||||||
<tr>
|
|
||||||
<td width="40" height="35"></td>
|
|
||||||
<td align="center" width="40">
|
|
||||||
<a href="javascript:void(0)" onclick="ShowProveedores(<?php echo $_smarty_tpl->getVariable('kS')->value;?>
|
|
||||||
)"><div id="iconSuc_<?php echo $_smarty_tpl->getVariable('kS')->value;?>
|
|
||||||
">[+]</div></a>
|
|
||||||
</td>
|
|
||||||
<td align="left"><?php echo $_smarty_tpl->getVariable('iS')->value['nombre'];?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<tr id="prov_<?php echo $_smarty_tpl->getVariable('kS')->value;?>
|
|
||||||
" style="display:none">
|
|
||||||
<td colspan="3" align="left">
|
|
||||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/analisis-proveedor.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);?>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<?php }} else { ?>
|
|
||||||
<tr>
|
|
||||||
<td align="center">Ningún registro encontrado.</td>
|
|
||||||
</tr>
|
|
||||||
<?php } ?>
|
|
||||||
</table>
|
|
||||||
@@ -1,136 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-06-18 10:28:51
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/boxes/total-desglosado.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:6466337453a1b0337b6891-17376715%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'0e7661214b15bf2f07b814da0e0f8aa893f4bb0a' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/boxes/total-desglosado.tpl',
|
|
||||||
1 => 1375965231,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '6466337453a1b0337b6891-17376715',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<div style="width:750px;">
|
|
||||||
|
|
||||||
<?php if ($_smarty_tpl->getVariable('impuestos')->value){?>
|
|
||||||
<div style="float:left; width:350px ;border:solid; border-width:1px; border-color:#000; background-color:#FFC; padding:5px">
|
|
||||||
Subtotal Original
|
|
||||||
</div>
|
|
||||||
<div style="float:left; width:250px;border:solid; border-width:1px; border-color:#000; background-color:#FFC; padding:5px">
|
|
||||||
$ <?php echo $_smarty_tpl->getVariable('totalDesglosado')->value['subtotalOriginal'];?>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div style="clear:both"></div>
|
|
||||||
|
|
||||||
<?php $_smarty_tpl->tpl_vars['impuesto'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('impuestos')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
||||||
if (count($_from) > 0){
|
|
||||||
foreach ($_from as $_smarty_tpl->tpl_vars['impuesto']->key => $_smarty_tpl->tpl_vars['impuesto']->value){
|
|
||||||
?>
|
|
||||||
<div style="float:left; width:350px ;border:solid; border-width:1px; border-color:#000; background-color:#FFC; padding:5px">
|
|
||||||
<?php if ($_smarty_tpl->getVariable('impuesto')->value['tipo']=="retencion"){?>
|
|
||||||
Retención
|
|
||||||
<?php }elseif($_smarty_tpl->getVariable('impuesto')->value['tipo']=="deduccion"){?>
|
|
||||||
Deducción
|
|
||||||
<?php }?>
|
|
||||||
<?php echo $_smarty_tpl->getVariable('impuesto')->value['tasa'];?>
|
|
||||||
% de <?php echo $_smarty_tpl->getVariable('impuesto')->value['impuesto'];?>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div style="float:left; width:250px;border:solid; border-width:1px; border-color:#000; background-color:#FFC; padding:5px">
|
|
||||||
$ <?php echo $_smarty_tpl->getVariable('impuesto')->value['importe'];?>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div style="clear:both"></div>
|
|
||||||
|
|
||||||
<?php }} ?>
|
|
||||||
<?php }?>
|
|
||||||
|
|
||||||
<div style="float:left; width:350px ;border:solid; border-width:1px; border-color:#000; background-color:#FFC; padding:5px">
|
|
||||||
Subtotal
|
|
||||||
</div>
|
|
||||||
<div style="float:left; width:250px;border:solid; border-width:1px; border-color:#000; background-color:#FFC; padding:5px">
|
|
||||||
$ <?php echo $_smarty_tpl->getVariable('totalDesglosado')->value['subtotal'];?>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div style="clear:both"></div>
|
|
||||||
<div style="float:left; width:350px ;border:solid; border-width:1px; border-color:#000; background-color:#FFC; padding:5px">
|
|
||||||
Descuento
|
|
||||||
</div>
|
|
||||||
<div style="float:left; width:250px;border:solid; border-width:1px; border-color:#000; background-color:#FFC; padding:5px">
|
|
||||||
$ <?php echo $_smarty_tpl->getVariable('totalDesglosado')->value['descuento'];?>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div style="clear:both"></div>
|
|
||||||
<div style="float:left; width:350px ;border:solid; border-width:1px; border-color:#000; background-color:#FFC; padding:5px">
|
|
||||||
Después de Descuento
|
|
||||||
</div>
|
|
||||||
<div style="float:left; width:250px;border:solid; border-width:1px; border-color:#000; background-color:#FFC; padding:5px">
|
|
||||||
$ <?php echo $_smarty_tpl->getVariable('totalDesglosado')->value['afterDescuento'];?>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div style="clear:both"></div>
|
|
||||||
|
|
||||||
<div style="float:left; width:350px ;border:solid; border-width:1px; border-color:#000; background-color:#FFC; padding:5px">
|
|
||||||
IVA
|
|
||||||
</div>
|
|
||||||
<div style="float:left; width:250px;border:solid; border-width:1px; border-color:#000; background-color:#FFC; padding:5px">
|
|
||||||
$ <?php echo $_smarty_tpl->getVariable('totalDesglosado')->value['iva'];?>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div style="clear:both"></div>
|
|
||||||
<div style="float:left; width:350px ;border:solid; border-width:1px; border-color:#000; background-color:#FFC; padding:5px">
|
|
||||||
Después de IVA
|
|
||||||
</div>
|
|
||||||
<div style="float:left; width:250px;border:solid; border-width:1px; border-color:#000; background-color:#FFC; padding:5px">
|
|
||||||
$ <?php echo $_smarty_tpl->getVariable('totalDesglosado')->value['afterIva'];?>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div style="clear:both"></div>
|
|
||||||
<div style="float:left; width:350px ;border:solid; border-width:1px; border-color:#000; background-color:#FFC; padding:5px">
|
|
||||||
IEPS
|
|
||||||
</div>
|
|
||||||
<div style="float:left; width:250px;border:solid; border-width:1px; border-color:#000; background-color:#FFC; padding:5px">
|
|
||||||
$ <?php echo $_smarty_tpl->getVariable('totalDesglosado')->value['ieps'];?>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div style="float:left; width:350px ;border:solid; border-width:1px; border-color:#000; background-color:#FFC; padding:5px">
|
|
||||||
Después de Impuestos
|
|
||||||
</div>
|
|
||||||
<div style="float:left; width:250px;border:solid; border-width:1px; border-color:#000; background-color:#FFC; padding:5px">
|
|
||||||
$ <?php echo $_smarty_tpl->getVariable('totalDesglosado')->value['afterImpuestos'];?>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div style="clear:both"></div>
|
|
||||||
<div style="clear:both"></div>
|
|
||||||
<div style="float:left; width:350px ;border:solid; border-width:1px; border-color:#000; background-color:#FFC; padding:5px">
|
|
||||||
Ret. IVA
|
|
||||||
</div>
|
|
||||||
<div style="float:left; width:250px;border:solid; border-width:1px; border-color:#000; background-color:#FFC; padding:5px">
|
|
||||||
$ <?php echo $_smarty_tpl->getVariable('totalDesglosado')->value['retIva'];?>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div style="clear:both"></div>
|
|
||||||
<div style="float:left; width:350px ;border:solid; border-width:1px; border-color:#000; background-color:#FFC; padding:5px">
|
|
||||||
Ret. ISR
|
|
||||||
</div>
|
|
||||||
<div style="float:left; width:250px;border:solid; border-width:1px; border-color:#000; background-color:#FFC; padding:5px">
|
|
||||||
$ <?php echo $_smarty_tpl->getVariable('totalDesglosado')->value['retIsr'];?>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div style="clear:both"></div>
|
|
||||||
<div style="float:left; width:350px ;border:solid; border-width:1px; border-color:#000; background-color:#FFC; padding:5px">
|
|
||||||
Total
|
|
||||||
</div>
|
|
||||||
<div style="float:left; width:250px;border:solid; border-width:1px; border-color:#000; background-color:#FFC; padding:5px">
|
|
||||||
$ <?php echo $_smarty_tpl->getVariable('totalDesglosado')->value['total'];?>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div style="clear:both"></div>
|
|
||||||
</div>
|
|
||||||
@@ -1,51 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-04-30 10:09:41
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/boxes/agregar-pago-popup.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:14212676345361123596dfc7-59884567%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'0f64aaefb227bd24b85a1c90529dcfaf9b6c7fa2' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/boxes/agregar-pago-popup.tpl',
|
|
||||||
1 => 1379913041,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '14212676345361123596dfc7-59884567',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<div class="popupheader" style="z-index:70">
|
|
||||||
<div id="fviewmenu" style="z-index:70">
|
|
||||||
<div id="fviewclose"><span style="color:#CCC" id="closePopUpDiv">
|
|
||||||
<a href="javascript:void(0)">Close<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/b_disn.png" border="0" alt="close" /></a></span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="ftitl">
|
|
||||||
<div class="flabel">Agregar Pago :: Pedido No. <?php echo $_smarty_tpl->getVariable('info')->value['noPedido'];?>
|
|
||||||
</div>
|
|
||||||
<div id="vtitl">
|
|
||||||
<span title="Titulo">Agregar Pago :: Pedido No. <?php echo $_smarty_tpl->getVariable('info')->value['noPedido'];?>
|
|
||||||
</span>
|
|
||||||
<br />
|
|
||||||
Factura: <?php echo $_smarty_tpl->getVariable('info')->value['folioProv'];?>
|
|
||||||
|
|
||||||
<br />
|
|
||||||
Saldo: $<?php echo number_format($_smarty_tpl->getVariable('info')->value['saldo'],2,'.',',');?>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div id="draganddrop" style="position:absolute;top:45px;left:640px">
|
|
||||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/draganddrop.png" border="0" alt="mueve" />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="wrapper">
|
|
||||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/forms/agregar-pago.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>
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-05-06 10:41:37
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/items/devoluciones-header.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:1172723804536902b19fcaf2-66012218%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'1205095a2ba885ce0723933c08a3afcd9a5629a0' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/items/devoluciones-header.tpl',
|
|
||||||
1 => 1375965374,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '1172723804536902b19fcaf2-66012218',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<div class="clear"></div>
|
|
||||||
<!--THIS IS A WIDE PORTLET-->
|
|
||||||
<div class="portlet">
|
|
||||||
|
|
||||||
<div class="portlet-content nopadding">
|
|
||||||
|
|
||||||
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" border="0">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th width="80" scope="col"><div align="center">No.</div></th>
|
|
||||||
<th width="150" scope="col"><div align="center">Sucursal</div></th>
|
|
||||||
<th width="" scope="col"><div align="center">Usuario</div></th>
|
|
||||||
<th width="100" scope="col"><div align="center">Fecha</div></th>
|
|
||||||
<th width="100" scope="col"><div align="center">Total</div></th>
|
|
||||||
<th width="100" scope="col"><div align="center">Status</div></th>
|
|
||||||
<th width="60" scope="col"><div align="center">Acciones</div></th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-04-30 08:53:15
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/boxes/status_open.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:8061366095361004bc956d6-17104369%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'1376ea34ce0741056268b0cca975921d2ec0ec37' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/boxes/status_open.tpl',
|
|
||||||
1 => 1375965230,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '8061366095361004bc956d6-17104369',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<div id="centeredDiv" class="" style="margin:auto; position:fixed; top:50%; left:50%; margin-top:-150px;margin-left:-275px;z-index:3000; display:none">
|
|
||||||
<div style="width:548px; border:solid; border-color:#999;border-width:1px; background-color:#ccc; padding-left:5px; padding-top:5px; padding-bottom:5px">
|
|
||||||
<div style="width:500px; border:solid; border-color:#999;border-width:1px; background-color:#FFF; padding:20px">
|
|
||||||
<div id="close_icon" style="position:absolute;top: 40px; left: 500px; z-index:5000; cursor:pointer" onclick="ToogleStatusDiv()"><img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/close_icon.gif" /></div>
|
|
||||||
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-06-04 13:31:08
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/enumProdCatPromo.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:1626918278538f65ec6a1218-89435290%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'15a14e2d64031c9e1715332e2feedf95eacf3074' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/enumProdCatPromo.tpl',
|
|
||||||
1 => 1401906170,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '1626918278538f65ec6a1218-89435290',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('categorias')->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){
|
|
||||||
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
|
|
||||||
?>
|
|
||||||
<input type="checkbox" name="idProdCat[]" value="<?php echo $_smarty_tpl->getVariable('item')->value['prodCatId'];?>
|
|
||||||
" <?php if ($_smarty_tpl->getVariable('item')->value['checked']){?>checked<?php }?>><?php echo $_smarty_tpl->getVariable('item')->value['nombre'];?>
|
|
||||||
</option>
|
|
||||||
<br />
|
|
||||||
<?php }} ?>
|
|
||||||
@@ -1,277 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2015-02-26 16:04:12
|
|
||||||
compiled from "/var/www/html/templates/forms/editar-proveedor.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:128535820154ef985cb0e302-10113112%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'16122ef15d73822f822458a4cbef9daa770779a7' =>
|
|
||||||
array (
|
|
||||||
0 => '/var/www/html/templates/forms/editar-proveedor.tpl',
|
|
||||||
1 => 1410130451,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '128535820154ef985cb0e302-10113112',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<div id="divForm">
|
|
||||||
<form id="editarProveedorForm" name="editarProveedorForm" method="post">
|
|
||||||
<input type="hidden" id="proveedorId" name="proveedorId" value="<?php echo $_smarty_tpl->getVariable('post')->value['proveedorId'];?>
|
|
||||||
"/>
|
|
||||||
<fieldset>
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">* Numero de Proveedor:</div>
|
|
||||||
<div class="r"><input value="<?php echo $_smarty_tpl->getVariable('post')->value['noProv'];?>
|
|
||||||
" type="text" name="noProv" id="noProv" maxlength="13" class="largeInput">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">* RFC y Homoclave:</div>
|
|
||||||
<div class="r"><input type="text" name="rfc" id="rfc" class="largeInput wide2" value="<?php echo $_smarty_tpl->getVariable('post')->value['rfc'];?>
|
|
||||||
">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">* Nombre Completo o Razón Social:</div>
|
|
||||||
<div class="r"><input type="text" name="nombre" id="nombrenuv" class="largeInput wide2" value="<?php echo $_smarty_tpl->getVariable('post')->value['nombre'];?>
|
|
||||||
">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="a">
|
|
||||||
<br />
|
|
||||||
<div align="center"><b>.:: Dirección Fiscal ::.</b></div>
|
|
||||||
</div>
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">Dirección:</div>
|
|
||||||
<div class="r"><input type="text" name="calle" id="calle" class="largeInput wide2" value="<?php echo $_smarty_tpl->getVariable('post')->value['calle'];?>
|
|
||||||
">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">No Exterior:</div>
|
|
||||||
<div class="r"><input type="text" name="noExt" id="noExt" class="largeInput wide2" value="<?php echo $_smarty_tpl->getVariable('post')->value['noExt'];?>
|
|
||||||
">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">No Interior:</div>
|
|
||||||
<div class="r"><input type="text" name="noInt" id="noInt" class="largeInput wide2" value="<?php echo $_smarty_tpl->getVariable('post')->value['noInt'];?>
|
|
||||||
">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">Referencia:</div>
|
|
||||||
<div class="r"><input type="text" name="referencia" id="referencia" class="largeInput wide2" value="<?php echo $_smarty_tpl->getVariable('post')->value['referencia'];?>
|
|
||||||
">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">Colonia:</div>
|
|
||||||
<div class="r"><input type="text" name="colonia" id="colonia" class="largeInput wide2" value="<?php echo $_smarty_tpl->getVariable('post')->value['colonia'];?>
|
|
||||||
">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">Localidad:</div>
|
|
||||||
<div class="r"><input type="text" name="localidad" id="localidad" class="largeInput wide2" value="<?php echo $_smarty_tpl->getVariable('post')->value['localidad'];?>
|
|
||||||
">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">Municipio o Delegación:</div>
|
|
||||||
<div class="r"><input type="text" name="municipio" id="municipio" class="largeInput wide2" value="<?php echo $_smarty_tpl->getVariable('post')->value['municipio'];?>
|
|
||||||
">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">Estado:</div>
|
|
||||||
<div class="r"><input type="text" name="estado" id="estado" class="largeInput wide2" value="<?php echo $_smarty_tpl->getVariable('post')->value['estado'];?>
|
|
||||||
">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">Pais:</div>
|
|
||||||
<div class="r"><input type="text" name="pais" id="pais" class="largeInput wide2" value="<?php echo $_smarty_tpl->getVariable('post')->value['pais'];?>
|
|
||||||
">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">Código Postal:</div>
|
|
||||||
<div class="r"><input type="text" name="codigoPostal" id="codigoPostal" class="largeInput wide2" value="<?php echo $_smarty_tpl->getVariable('post')->value['codigoPostal'];?>
|
|
||||||
">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="a">
|
|
||||||
<br />
|
|
||||||
<div align="center"><b>.:: Contacto Ventas ::.</b></div>
|
|
||||||
</div>
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">Nombre Completo:</div>
|
|
||||||
<div class="r"><input type="text" name="nombreVtas" id="nombreVtas" class="largeInput wide2" value="<?php echo $_smarty_tpl->getVariable('post')->value['nombreVtas'];?>
|
|
||||||
">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">Teléfono Oficina:</div>
|
|
||||||
<div class="r"><input type="telefonoVtas" name="telefonoVtas" id="calle" class="largeInput wide2" value="<?php echo $_smarty_tpl->getVariable('post')->value['telefonoVtas'];?>
|
|
||||||
">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">Teléfono Celular:</div>
|
|
||||||
<div class="r"><input type="text" name="celularVtas" id="celularVtas" class="largeInput wide2" value="<?php echo $_smarty_tpl->getVariable('post')->value['celularVtas'];?>
|
|
||||||
">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">Correo electrónico:</div>
|
|
||||||
<div class="r"><input type="text" name="emailVtas" id="emailVtas" class="largeInput wide2" value="<?php echo $_smarty_tpl->getVariable('post')->value['emailVtas'];?>
|
|
||||||
">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="a">
|
|
||||||
<br />
|
|
||||||
<div align="center"><b>.:: Contacto Pagos ::.</b></div>
|
|
||||||
</div>
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">Nombre Completo:</div>
|
|
||||||
<div class="r"><input type="text" name="nombrePagos" id="nombrePagos" class="largeInput wide2" value="<?php echo $_smarty_tpl->getVariable('post')->value['nombrePagos'];?>
|
|
||||||
">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">Teléfono Oficina:</div>
|
|
||||||
<div class="r"><input type="telefonoPagos" name="telefonoPagos" id="calle" class="largeInput wide2" value="<?php echo $_smarty_tpl->getVariable('post')->value['telefonoPagos'];?>
|
|
||||||
">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">Teléfono Celular:</div>
|
|
||||||
<div class="r"><input type="text" name="celularPagos" id="celularPagos" class="largeInput wide2" value="<?php echo $_smarty_tpl->getVariable('post')->value['celularPagos'];?>
|
|
||||||
">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">Correo electrónico:</div>
|
|
||||||
<div class="r"><input type="text" name="emailPagos" id="emailPagos" class="largeInput wide2" value="<?php echo $_smarty_tpl->getVariable('post')->value['emailPagos'];?>
|
|
||||||
">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="a">
|
|
||||||
<br />
|
|
||||||
<div align="center"><b>.:: Contacto Entregas ::.</b></div>
|
|
||||||
</div>
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">Nombre Completo:</div>
|
|
||||||
<div class="r"><input type="text" name="nombreEnt" id="nombreEnt" class="largeInput wide2" value="<?php echo $_smarty_tpl->getVariable('post')->value['nombreEnt'];?>
|
|
||||||
">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">Teléfono Oficina:</div>
|
|
||||||
<div class="r"><input type="telefonoEnt" name="telefonoEnt" id="calle" class="largeInput wide2" value="<?php echo $_smarty_tpl->getVariable('post')->value['telefonoEnt'];?>
|
|
||||||
">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">Teléfono Celular:</div>
|
|
||||||
<div class="r"><input type="text" name="celularEnt" id="celularEnt" class="largeInput wide2" value="<?php echo $_smarty_tpl->getVariable('post')->value['celularEnt'];?>
|
|
||||||
">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">Correo electrónico:</div>
|
|
||||||
<div class="r"><input type="text" name="emailEnt" id="emailEnt" class="largeInput wide2" value="<?php echo $_smarty_tpl->getVariable('post')->value['emailEnt'];?>
|
|
||||||
">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="a">
|
|
||||||
<br />
|
|
||||||
<div align="center"><b>.:: Datos Bancarios ::.</b></div>
|
|
||||||
</div>
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">Banco:</div>
|
|
||||||
<div class="r"><input type="text" name="banco" id="banco" class="largeInput wide2" value="<?php echo $_smarty_tpl->getVariable('post')->value['banco'];?>
|
|
||||||
">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">No. de Cuenta:</div>
|
|
||||||
<div class="r"><input type="text" name="noCuenta" id="noCuenta" class="largeInput wide2" value="<?php echo $_smarty_tpl->getVariable('post')->value['noCuenta'];?>
|
|
||||||
">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">CLABE:</div>
|
|
||||||
<div class="r"><input type="text" name="clabe" id="clabe" class="largeInput wide2" value="<?php echo $_smarty_tpl->getVariable('post')->value['clabe'];?>
|
|
||||||
">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">Dirección de Almacén</div>
|
|
||||||
<div class="r"><input type="text" name="almacen" id="almacen" class="largeInput wide2" value="<?php echo $_smarty_tpl->getVariable('post')->value['almacen'];?>
|
|
||||||
">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">Plazo</div>
|
|
||||||
<div class="r">
|
|
||||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/enumPlazo.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>
|
|
||||||
</div>
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">% Publicidad</div>
|
|
||||||
<div class="r">
|
|
||||||
<input type="text" value="<?php echo $_smarty_tpl->getVariable('post')->value['publicidad'];?>
|
|
||||||
" name="publicidad" class="largeInput wide2" />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">% Flete</div>
|
|
||||||
<div class="r"><input type="text" name="flete" id="flete" class="largeInput wide2" value="<?php echo $_smarty_tpl->getVariable('post')->value['flete'];?>
|
|
||||||
">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">% Desarrollo</div>
|
|
||||||
<div class="r"><input type="text" name="desarrollo" id="desarrollo" class="largeInput wide2" value="<?php echo $_smarty_tpl->getVariable('post')->value['desarrollo'];?>
|
|
||||||
">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">% Especial</div>
|
|
||||||
<div class="r"><input type="text" name="especial" id="especial" class="largeInput wide2" value="<?php echo $_smarty_tpl->getVariable('post')->value['especial'];?>
|
|
||||||
">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">Compra en Firme</div>
|
|
||||||
<div class="r">
|
|
||||||
<select id="compraFirme" name="compraFirme" class="largeInput">
|
|
||||||
<option value="Si" <?php if ($_smarty_tpl->getVariable('post')->value['compraFirme']=="Si"){?> selected="selected"<?php }?> >Si</option>
|
|
||||||
<option value="No" <?php if ($_smarty_tpl->getVariable('post')->value['compraFirme']=="No"){?> selected="selected"<?php }?>>No</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div style="clear:both"></div>
|
|
||||||
<hr />
|
|
||||||
* Campos requeridos
|
|
||||||
<div class="formLine" style="text-align:center; padding-left:290px">
|
|
||||||
<a class="button" id="editarProveedor" name="editarProveedor"><span>Actualizar</span></a>
|
|
||||||
</div>
|
|
||||||
<input type="hidden" id="type" name="type" value="saveEditProveedor"/>
|
|
||||||
</fieldset>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-04-30 10:28:13
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/items/metodos-pago-base.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:130076265361168d4cf219-32718369%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'162ff35f7b9914188e759dd3844bc7df99f7bd81' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/items/metodos-pago-base.tpl',
|
|
||||||
1 => 1375965383,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '130076265361168d4cf219-32718369',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<tr>
|
|
||||||
<td align="center"><div align="center"><?php echo $_smarty_tpl->getVariable('item')->value['metodoPagoId'];?>
|
|
||||||
</div></td>
|
|
||||||
<td><?php echo $_smarty_tpl->getVariable('item')->value['nombre'];?>
|
|
||||||
</td>
|
|
||||||
<td align="center">
|
|
||||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/icons/edit.gif" class="spanEdit" id="<?php echo $_smarty_tpl->getVariable('item')->value['metodoPagoId'];?>
|
|
||||||
" title="Editar"/>
|
|
||||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/icons/delete.gif" class="spanDelete" id="<?php echo $_smarty_tpl->getVariable('item')->value['metodoPagoId'];?>
|
|
||||||
" title="Eliminar"/>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
@@ -1,65 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-06-15 11:03:49
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/forms/motivo-cancelacion.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:1589355072539dc3e5b58b57-62345507%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'16858d9b7fe34743fa22ab8b9885fbc966946892' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/forms/motivo-cancelacion.tpl',
|
|
||||||
1 => 1375965287,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '1589355072539dc3e5b58b57-62345507',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<!-- Form -->
|
|
||||||
|
|
||||||
<div class="m">
|
|
||||||
|
|
||||||
<form name="frmCancelar" id="frmCancelar" method="post" action="">
|
|
||||||
<input type="hidden" name="type" value="cancelarFactura" />
|
|
||||||
<input type="hidden" name="comprobanteId" value="<?php echo $_smarty_tpl->getVariable('comprobanteId')->value;?>
|
|
||||||
" />
|
|
||||||
<fieldset>
|
|
||||||
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">Motivo de la cancelacion *</div>
|
|
||||||
<div class="r">
|
|
||||||
<textarea name="motivo" id="motivo" class="largeInput wide2"></textarea>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">
|
|
||||||
* Campos requeridos
|
|
||||||
</div>
|
|
||||||
<div class="r" style="margin-left:300px">
|
|
||||||
<a class="button" id="btnCancelar" name="btnCancelar"><span>Cancelar</span></a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div style="clear:both"></div>
|
|
||||||
|
|
||||||
<div class="a">
|
|
||||||
<br />
|
|
||||||
<div class="l">
|
|
||||||
** El proceso puede llevar varios segundos.
|
|
||||||
<br />
|
|
||||||
** Favor de ser paciente y no dar click 2 veces en el botón.
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="a">
|
|
||||||
<div id="txtMsg"></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="a"></div>
|
|
||||||
</fieldset>
|
|
||||||
</form>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- End Form -->
|
|
||||||
@@ -1,47 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-06-04 09:57:46
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/clientes.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:179244588538f33ea6b9307-19067276%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'1689b0f5fce9d4182465f94dada22b143498432e' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/clientes.tpl',
|
|
||||||
1 => 1375965420,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '179244588538f33ea6b9307-19067276',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
|
|
||||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/items/clientes-header.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
|
|
||||||
$_template->assign('clase',"Off"); echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
|
|
||||||
|
|
||||||
|
|
||||||
<?php if (count($_smarty_tpl->getVariable('clientes')->value['items'])){?>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('clientes')->value['items']; 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){
|
|
||||||
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
|
|
||||||
?>
|
|
||||||
<?php if ($_smarty_tpl->getVariable('key')->value%2==0){?>
|
|
||||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/items/clientes-base.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
|
|
||||||
$_template->assign('clase',"Off"); echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
|
|
||||||
|
|
||||||
<?php }else{ ?>
|
|
||||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/items/clientes-base.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
|
|
||||||
$_template->assign('clase',"On"); echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
|
|
||||||
|
|
||||||
<?php }?>
|
|
||||||
<?php }} ?>
|
|
||||||
<?php }else{ ?>
|
|
||||||
<tr><td colspan="3" align="center">Ningún registro encontrado.</td>
|
|
||||||
<?php }?>
|
|
||||||
|
|
||||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/pages_new.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
|
|
||||||
$_template->assign('pages',$_smarty_tpl->getVariable('clientes')->value['pages']);$_template->assign('colspan',3); echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2015-02-26 16:04:12
|
|
||||||
compiled from "/var/www/html/templates/lists/enumPlazo.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:166049318954ef985cc82bc7-50321242%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'169bf80659c542e5a937706df76c426e33412809' =>
|
|
||||||
array (
|
|
||||||
0 => '/var/www/html/templates/lists/enumPlazo.tpl',
|
|
||||||
1 => 1410130458,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '166049318954ef985cc82bc7-50321242',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<select name="plazo" id="plazo" class="largeInput" style="width:300px">
|
|
||||||
<option value="">Seleccione</option>
|
|
||||||
<option value="15" <?php if ($_smarty_tpl->getVariable('post')->value['plazo']=="15"){?>selected<?php }?>>15</option>
|
|
||||||
<option value="30" <?php if ($_smarty_tpl->getVariable('post')->value['plazo']=="30"){?>selected<?php }?>>30</option>
|
|
||||||
<option value="45" <?php if ($_smarty_tpl->getVariable('post')->value['plazo']=="45"){?>selected<?php }?>>45</option>
|
|
||||||
<option value="60" <?php if ($_smarty_tpl->getVariable('post')->value['plazo']=="60"){?>selected<?php }?>>60</option>
|
|
||||||
</select>
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-04-30 13:20:25
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/enumProdSubcat2.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:142803909553613ee908c580-10807418%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'1871ac3e4174b0c2f6ce979d091c6ef64cc5af19' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/enumProdSubcat2.tpl',
|
|
||||||
1 => 1377821005,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '142803909553613ee908c580-10807418',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<select name="prodSubcatId" id="prodSubcatId" class="largeInput" style="width:200px">
|
|
||||||
<option value="">Todos</option>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('subcategorias')->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){
|
|
||||||
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
|
|
||||||
?>
|
|
||||||
<option value="<?php echo $_smarty_tpl->getVariable('item')->value['prodSubcatId'];?>
|
|
||||||
"><?php echo $_smarty_tpl->getVariable('item')->value['nombre'];?>
|
|
||||||
</option>
|
|
||||||
<?php }} ?>
|
|
||||||
</select>
|
|
||||||
@@ -1,44 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-06-04 13:32:41
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/boxes/excluir-promocion-popup.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:537064635538f664922a9f7-05977952%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'18867a0af846629541764f00c8fe871ed9966cce' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/boxes/excluir-promocion-popup.tpl',
|
|
||||||
1 => 1401906303,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '537064635538f664922a9f7-05977952',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<div class="popupheader" style="z-index:70">
|
|
||||||
<div id="fviewmenu" style="z-index:70">
|
|
||||||
<div id="fviewclose"><span style="color:#CCC" id="closePopUpDiv">
|
|
||||||
<a href="javascript:void(0)">Close<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/b_disn.png" border="0" alt="close" /></a></span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="ftitl">
|
|
||||||
<div class="flabel">Excluir Promoción</div>
|
|
||||||
<div id="vtitl"><span title="Titulo">Excluir Promoción</span></div>
|
|
||||||
<br />
|
|
||||||
<?php echo $_smarty_tpl->getVariable('info')->value['nombre'];?>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div id="draganddrop" style="position:absolute;top:45px;left:640px">
|
|
||||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/draganddrop.png" border="0" alt="mueve" />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="wrapper">
|
|
||||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/forms/excluir-promocion.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>
|
|
||||||
@@ -1,44 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-04-30 10:08:50
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/items/cuentas-notas-base.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:5888319045361120225e572-94733685%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'1946bf0b8129b683caca13a2a5bb80c8efc3f1f0' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/items/cuentas-notas-base.tpl',
|
|
||||||
1 => 1379545364,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '5888319045361120225e572-94733685',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['it'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['ky'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('item')->value['notas']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
||||||
if (count($_from) > 0){
|
|
||||||
foreach ($_from as $_smarty_tpl->tpl_vars['it']->key => $_smarty_tpl->tpl_vars['it']->value){
|
|
||||||
$_smarty_tpl->tpl_vars['ky']->value = $_smarty_tpl->tpl_vars['it']->key;
|
|
||||||
?>
|
|
||||||
<tr>
|
|
||||||
<td align="center" height="25"><?php echo $_smarty_tpl->getVariable('it')->value['noNota'];?>
|
|
||||||
</td>
|
|
||||||
<td align="center">$<?php echo number_format($_smarty_tpl->getVariable('it')->value['cantidad'],2,".",",");?>
|
|
||||||
<?php echo $_smarty_tpl->getVariable('it')->value['currency'];?>
|
|
||||||
</td>
|
|
||||||
<td align="center"><?php echo $_smarty_tpl->getVariable('it')->value['fecha'];?>
|
|
||||||
</td>
|
|
||||||
<td align="center">
|
|
||||||
<a href="javascript:void(0)" onclick="DeleteNota(<?php echo $_smarty_tpl->getVariable('it')->value['pedidoNotaId'];?>
|
|
||||||
)" title="Eliminar">
|
|
||||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/icons/delete.gif" border="0" />
|
|
||||||
</a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<?php }} else { ?>
|
|
||||||
<tr><td colspan="4" align="center" height="30">Ningún registro encontrado.</td></tr>
|
|
||||||
<?php } ?>
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-04-30 08:21:46
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/forms/select-vend.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:10584714125360f8ead2be90-31452624%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'19543412d766475cf4adb08493cac97e75227c8e' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/forms/select-vend.tpl',
|
|
||||||
1 => 1380898078,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '10584714125360f8ead2be90-31452624',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<select name="vendedorId" id="vendedorId" class="largeInput" style="width:220px">
|
|
||||||
<option value="todos">Todos</option>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('resVend')->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){
|
|
||||||
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
|
|
||||||
?>
|
|
||||||
<option value="<?php echo $_smarty_tpl->getVariable('item')->value['usuarioId'];?>
|
|
||||||
"><?php echo $_smarty_tpl->getVariable('item')->value['nombre'];?>
|
|
||||||
<?php echo $_smarty_tpl->getVariable('item')->value['apellidos'];?>
|
|
||||||
</option>
|
|
||||||
<?php }} ?>
|
|
||||||
</select>
|
|
||||||
@@ -1,102 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-09-11 10:07:47
|
|
||||||
compiled from "/var/www/html/templates/lists/envios-ordenes-comp.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:9843448665411bac3ad11a7-18083658%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'1b8d6421c20c921bdd4257df8398518ad1209943' =>
|
|
||||||
array (
|
|
||||||
0 => '/var/www/html/templates/lists/envios-ordenes-comp.tpl',
|
|
||||||
1 => 1410130459,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '9843448665411bac3ad11a7-18083658',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
|
|
||||||
<div align="center"><b><?php echo $_smarty_tpl->getVariable('nomSuc')->value;?>
|
|
||||||
</b></div>
|
|
||||||
<br />
|
|
||||||
<table width="850" cellpadding="0" cellspacing="0" border="1">
|
|
||||||
<tr>
|
|
||||||
<td width="100" align="center" height="30"><b>No. de Proveedor</b></td>
|
|
||||||
<td width="" align="center"><b>Nombre del Proveedor</b></td>
|
|
||||||
<td width="110" align="center"><b>No. Orden de Compra</b></td>
|
|
||||||
<td width="110" align="center"><b>Cantidad de Prendas/Paq.</b></td>
|
|
||||||
<td width="110" align="center"><b>Valor</b></td>
|
|
||||||
<td width="110" align="center"><b>No. de Cajas</b></td>
|
|
||||||
<td width="50" align="center"></td>
|
|
||||||
</tr>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('ordenes')->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){
|
|
||||||
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
|
|
||||||
?>
|
|
||||||
<tr>
|
|
||||||
<td align="center" height="30"><?php echo $_smarty_tpl->getVariable('item')->value['noProv'];?>
|
|
||||||
</td>
|
|
||||||
<td align="center"><?php echo $_smarty_tpl->getVariable('item')->value['proveedor'];?>
|
|
||||||
</td>
|
|
||||||
<td align="center"><?php echo $_smarty_tpl->getVariable('item')->value['noPedido'];?>
|
|
||||||
</td>
|
|
||||||
<td align="center"><?php echo $_smarty_tpl->getVariable('item')->value['prendas'];?>
|
|
||||||
</td>
|
|
||||||
<td align="center">$<?php echo $_smarty_tpl->getVariable('item')->value['total'];?>
|
|
||||||
</td>
|
|
||||||
<td align="center">
|
|
||||||
<input type="text" name="noCajas_<?php echo $_smarty_tpl->getVariable('item')->value['pedidoId'];?>
|
|
||||||
" id="noCajas_<?php echo $_smarty_tpl->getVariable('item')->value['pedidoId'];?>
|
|
||||||
" value="<?php echo $_smarty_tpl->getVariable('item')->value['cajas'];?>
|
|
||||||
" class="smallInput" style="width:90px" />
|
|
||||||
</td>
|
|
||||||
<td align="center">
|
|
||||||
<input type="checkbox" name="idPedido[]" id="" value="<?php echo $_smarty_tpl->getVariable('item')->value['pedidoId'];?>
|
|
||||||
" checked="checked" />
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="center" colspan="7">
|
|
||||||
<br />
|
|
||||||
<div align="center"><b>Total de Cajas: <?php echo $_smarty_tpl->getVariable('item')->value['cajas'];?>
|
|
||||||
</b></div>
|
|
||||||
<br />
|
|
||||||
<table width="90%" cellpadding="0" cellspacing="0" border="1">
|
|
||||||
<tr>
|
|
||||||
<td align="center" bgcolor="#CCCCCC" width="150"><b>Código Barra</b></td>
|
|
||||||
<td align="center" bgcolor="#CCCCCC"><b>Modelo</b></td>
|
|
||||||
<td align="center" bgcolor="#CCCCCC" width="120"><b>Cantidad</b></td>
|
|
||||||
</tr>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['it'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('item')->value['productos']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
||||||
if (count($_from) > 0){
|
|
||||||
foreach ($_from as $_smarty_tpl->tpl_vars['it']->key => $_smarty_tpl->tpl_vars['it']->value){
|
|
||||||
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['it']->key;
|
|
||||||
?>
|
|
||||||
<tr>
|
|
||||||
<td align="center"><?php echo $_smarty_tpl->getVariable('it')->value['codigoBarra'];?>
|
|
||||||
</td>
|
|
||||||
<td align="center"><?php echo $_smarty_tpl->getVariable('it')->value['modelo'];?>
|
|
||||||
</td>
|
|
||||||
<td align="center"><?php echo $_smarty_tpl->getVariable('it')->value['cantidad'];?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<?php }} else { ?>
|
|
||||||
<tr><td colspan="3" align="center">Ningún producto encontrado.</td></tr>
|
|
||||||
<?php } ?>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<?php }} else { ?>
|
|
||||||
<tr>
|
|
||||||
<td colspan="7" align="center" height="30">Ningún registro encontrado.</td>
|
|
||||||
</tr>
|
|
||||||
<?php } ?>
|
|
||||||
</table>
|
|
||||||
@@ -1,61 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-09-08 12:17:22
|
|
||||||
compiled from "/var/www/html/templates/lists/reportes-devcedis-prods.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:1368336157540de4a263e032-25507599%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'1cafacc6f633b6e1f784dd95b085b9ff40f77d30' =>
|
|
||||||
array (
|
|
||||||
0 => '/var/www/html/templates/lists/reportes-devcedis-prods.tpl',
|
|
||||||
1 => 1410130460,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '1368336157540de4a263e032-25507599',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th width="70" style="background-color:#99CCFF"><div align="center">Sucursal</div></th>
|
|
||||||
<th width="" style="background-color:#99CCFF"><div align="center">Proveedor</div></th>
|
|
||||||
<th width="60" style="background-color:#99CCFF"><div align="center">Código Barra</div></th>
|
|
||||||
<th width="200" style="background-color:#99CCFF"><div align="center">Producto</div></th>
|
|
||||||
<th width="60" style="background-color:#99CCFF"><div align="center">Cantidad</div></th>
|
|
||||||
<th width="60" style="background-color:#99CCFF"><div align="center">Costo</div></th>
|
|
||||||
<th width="60" style="background-color:#99CCFF"><div align="center">Total</div></th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['itP'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['kP'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('item')->value['productos']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
||||||
if (count($_from) > 0){
|
|
||||||
foreach ($_from as $_smarty_tpl->tpl_vars['itP']->key => $_smarty_tpl->tpl_vars['itP']->value){
|
|
||||||
$_smarty_tpl->tpl_vars['kP']->value = $_smarty_tpl->tpl_vars['itP']->key;
|
|
||||||
?>
|
|
||||||
<tr>
|
|
||||||
<td align="center"><?php echo urldecode($_smarty_tpl->getVariable('itP')->value['sucursal']);?>
|
|
||||||
</td>
|
|
||||||
<td align="center"><?php echo $_smarty_tpl->getVariable('itP')->value['proveedor'];?>
|
|
||||||
</td>
|
|
||||||
<td align="center"><?php echo $_smarty_tpl->getVariable('itP')->value['codigoBarra'];?>
|
|
||||||
</td>
|
|
||||||
<td align="center"><?php echo $_smarty_tpl->getVariable('itP')->value['producto'];?>
|
|
||||||
</td>
|
|
||||||
<td align="center"><?php echo $_smarty_tpl->getVariable('itP')->value['cantidad'];?>
|
|
||||||
</td>
|
|
||||||
<td align="center">$<?php echo number_format($_smarty_tpl->getVariable('itP')->value['costo'],2,'.',',');?>
|
|
||||||
</td>
|
|
||||||
<td align="center">$<?php echo number_format($_smarty_tpl->getVariable('itP')->value['total'],2,'.',',');?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<?php }} else { ?>
|
|
||||||
<tr>
|
|
||||||
<td colspan="6" align="center">Ningún registro encontrado.</td>
|
|
||||||
</tr>
|
|
||||||
<?php } ?>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-05-01 09:23:18
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/items/usuarios-header.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:1749257204536258d637ebb6-71485800%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'1d279adfd721acc19e142bc2a7ec0216ec4f5735' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/items/usuarios-header.tpl',
|
|
||||||
1 => 1375965401,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '1749257204536258d637ebb6-71485800',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<div class="clear"></div>
|
|
||||||
<!--THIS IS A WIDE PORTLET-->
|
|
||||||
<div class="portlet">
|
|
||||||
|
|
||||||
<div class="portlet-content nopadding">
|
|
||||||
<form action="" method="post">
|
|
||||||
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" summary="Employee Pay Sheet">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th width="" scope="col">Nombre</th>
|
|
||||||
<th width="180" scope="col"><div align="center">Email</div></th>
|
|
||||||
<th width="150" scope="col"><div align="center">Tipo</div></th>
|
|
||||||
<th width="170" scope="col"><div align="center">Sucursal</div></th>
|
|
||||||
<th width="100" scope="col"><div align="center">Acciones</div></th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-09-22 14:35:37
|
|
||||||
compiled from "/var/www/html/templates/items/facturacion-mensual-base.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:135159639554207a096e7c93-57791708%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'1d3694f89f33d3ca2bf762aab7e774722b11dbb3' =>
|
|
||||||
array (
|
|
||||||
0 => '/var/www/html/templates/items/facturacion-mensual-base.tpl',
|
|
||||||
1 => 1410130454,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '135159639554207a096e7c93-57791708',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<tr>
|
|
||||||
<td align="center"><?php echo $_smarty_tpl->getVariable('fact')->value['rfc'];?>
|
|
||||||
</td>
|
|
||||||
<td align="left"><?php echo $_smarty_tpl->getVariable('fact')->value['nombre'];?>
|
|
||||||
</td>
|
|
||||||
<td align="center"><?php echo $_smarty_tpl->getVariable('fact')->value['fecha'];?>
|
|
||||||
</td>
|
|
||||||
<td align="center"><?php echo $_smarty_tpl->getVariable('fact')->value['total'];?>
|
|
||||||
</td>
|
|
||||||
<td align="center"><?php echo $_smarty_tpl->getVariable('fact')->value['serie'];?>
|
|
||||||
<?php echo $_smarty_tpl->getVariable('fact')->value['folio'];?>
|
|
||||||
</td>
|
|
||||||
<?php if ($_smarty_tpl->getVariable('version')->value=="construc"||$_smarty_tpl->getVariable('version')->value=="v3"){?>
|
|
||||||
<td align="center"><?php echo $_smarty_tpl->getVariable('fact')->value['uuid'];?>
|
|
||||||
</td>
|
|
||||||
<td align="center"><?php echo $_smarty_tpl->getVariable('fact')->value['fechaIni'];?>
|
|
||||||
- <?php echo $_smarty_tpl->getVariable('fact')->value['fechaFin'];?>
|
|
||||||
</td>
|
|
||||||
<?php }?>
|
|
||||||
<td align="center">
|
|
||||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/icons/details.png" class="spanDetails" id="<?php echo $_smarty_tpl->getVariable('fact')->value['comprobanteId'];?>
|
|
||||||
" border="0" alt="Ver Detalles" />
|
|
||||||
<?php if ($_smarty_tpl->getVariable('fact')->value['status']==1){?>
|
|
||||||
<a href="javascript:void(0)">
|
|
||||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/icons/cancel.png" class="spanCancel" id="<?php echo $_smarty_tpl->getVariable('fact')->value['comprobanteId'];?>
|
|
||||||
" border="0" alt="Cancelar"/></a>
|
|
||||||
<?php }?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
@@ -1,53 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-09-07 17:58:55
|
|
||||||
compiled from "/var/www/html/templates/boxes/status_on_popup.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:1775463384540ce32faca454-89580539%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'1ddcd7705ad7ca4c414c7d18e6b7f9b32ee28639' =>
|
|
||||||
array (
|
|
||||||
0 => '/var/www/html/templates/boxes/status_on_popup.tpl',
|
|
||||||
1 => 1410130449,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '1775463384540ce32faca454-89580539',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/boxes/status_open_on_popup.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);?>
|
|
||||||
|
|
||||||
<?php if (!empty($_smarty_tpl->getVariable('errors')->value)){?>
|
|
||||||
<h3>
|
|
||||||
<?php if ($_smarty_tpl->getVariable('errors')->value['complete']){?>
|
|
||||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/ok.gif" style="cursor:pointer" onclick="ToogleStatusDivOnPopup()"/>
|
|
||||||
<?php }else{ ?>
|
|
||||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/error.gif" style="cursor:pointer" onclick="ToogleStatusDivOnPopup()"/>
|
|
||||||
<?php }?>
|
|
||||||
</h3>
|
|
||||||
<div style="position:relative;top:-40px;left:50px; font-size:16px;">
|
|
||||||
<?php $_smarty_tpl->tpl_vars["error"] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars["key"] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('errors')->value['value']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
||||||
if (count($_from) > 0){
|
|
||||||
foreach ($_from as $_smarty_tpl->tpl_vars["error"]->key => $_smarty_tpl->tpl_vars["error"]->value){
|
|
||||||
$_smarty_tpl->tpl_vars["key"]->value = $_smarty_tpl->tpl_vars["error"]->key;
|
|
||||||
?>
|
|
||||||
<?php echo $_smarty_tpl->getVariable('error')->value;?>
|
|
||||||
|
|
||||||
<?php if ($_smarty_tpl->getVariable('errors')->value['field'][$_smarty_tpl->getVariable('key')->value]){?>
|
|
||||||
: <?php echo $_smarty_tpl->getVariable('errors')->value['field'][$_smarty_tpl->getVariable('key')->value];?>
|
|
||||||
|
|
||||||
<?php }?>
|
|
||||||
<br />
|
|
||||||
<?php }} ?>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<?php }?>
|
|
||||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/boxes/status_close.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);?>
|
|
||||||
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-04-30 12:02:40
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/forms/agregar-ticket-facturar.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:97995549453612cb07a4e84-20067971%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'1edf4e5f0b781ffc2786a75d80deb5b255265dd7' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/forms/agregar-ticket-facturar.tpl',
|
|
||||||
1 => 1385163789,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '97995549453612cb07a4e84-20067971',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<div id="divForm">
|
|
||||||
<form id="frmTicket" name="frmTicket" method="post">
|
|
||||||
<fieldset>
|
|
||||||
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">* Ingrese el Folio Novomoda del Ticket:</div>
|
|
||||||
<div class="r"><input type="text" name="ventaId" id="ventaId" class="largeInput wide2" maxlength="10">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div style="clear:both"></div>
|
|
||||||
<hr />
|
|
||||||
* Campo requerido
|
|
||||||
<div style="padding-left:300px">
|
|
||||||
<a class="button" onclick="SaveTicket()"><span>Continuar >></span></a>
|
|
||||||
</div>
|
|
||||||
<input type="hidden" id="type" name="type" value="saveAddTicket"/>
|
|
||||||
</fieldset>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-09-09 14:48:55
|
|
||||||
compiled from "/var/www/html/templates/lists/enumVigenciaPromo.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:1731013369540f59a7954706-49225498%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'1ef18b3af4b7934a0feca7f4f89d0131ca938f5c' =>
|
|
||||||
array (
|
|
||||||
0 => '/var/www/html/templates/lists/enumVigenciaPromo.tpl',
|
|
||||||
1 => 1410130459,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '1731013369540f59a7954706-49225498',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<select name="vigencia" id="vigencia" class="largeInput" onchange="ShowCalendars()">
|
|
||||||
<option value="">Seleccione</option>
|
|
||||||
<option value="Permanente" <?php if ($_smarty_tpl->getVariable('info')->value['vigencia']=="Permanente"){?>selected<?php }?>>Permanente</option>
|
|
||||||
<option value="Periodo" <?php if ($_smarty_tpl->getVariable('info')->value['vigencia']=="Periodo"){?>selected<?php }?>>Por Periodo</option>
|
|
||||||
</select>
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-07-02 16:25:42
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/boxes/agregar-atributo-popup.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:16856782153b478d6b68976-43518628%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'1f0b84ea4a39417eb4f73972e37d513f1f64acca' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/boxes/agregar-atributo-popup.tpl',
|
|
||||||
1 => 1375965198,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '16856782153b478d6b68976-43518628',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<div class="popupheader" style="z-index:70">
|
|
||||||
<div id="fviewmenu" style="z-index:70">
|
|
||||||
<div id="fviewclose"><span style="color:#CCC" id="closePopUpDiv">
|
|
||||||
<a href="javascript:void(0)">Close<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/b_disn.png" border="0" alt="close" /></a></span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="ftitl">
|
|
||||||
<div class="flabel">Agregar Atributo</div>
|
|
||||||
<div id="vtitl"><span title="Titulo">Agregar Atributo</span></div>
|
|
||||||
</div>
|
|
||||||
<div id="draganddrop" style="position:absolute;top:45px;left:640px">
|
|
||||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/draganddrop.png" border="0" alt="mueve" />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="wrapper">
|
|
||||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/forms/agregar-atributo.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>
|
|
||||||
@@ -1,48 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-07-09 11:01:47
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/boxes/calificar-proveedor-popup.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:164869760153bd676b775422-87309232%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'215aae3fd2aad1b166cff6efbf31517f9edb32ed' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/boxes/calificar-proveedor-popup.tpl',
|
|
||||||
1 => 1379881046,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '164869760153bd676b775422-87309232',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<div class="popupheader" style="z-index:70">
|
|
||||||
<div id="fviewmenu" style="z-index:70">
|
|
||||||
<div id="fviewclose"><span style="color:#CCC" id="closePopUpDiv">Close<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/b_disn.png" border="0" alt="close" /></span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="ftitl">
|
|
||||||
<div class="flabel">Calificar Proveedor :: Pedido No. <?php echo $_smarty_tpl->getVariable('info')->value['noPedido'];?>
|
|
||||||
</div>
|
|
||||||
<div id="vtitl"><span title="Titulo">
|
|
||||||
Calificar Proveedor :: Pedido No. <?php echo $_smarty_tpl->getVariable('info')->value['noPedido'];?>
|
|
||||||
|
|
||||||
<br />
|
|
||||||
Proveedor: <?php echo $_smarty_tpl->getVariable('info')->value['proveedor'];?>
|
|
||||||
|
|
||||||
</span></div>
|
|
||||||
</div>
|
|
||||||
<div id="draganddrop" style="position:absolute;top:45px;left:640px">
|
|
||||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/draganddrop.png" border="0" alt="mueve" />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="wrapper">
|
|
||||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/forms/calificar-proveedor.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>
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-04-30 12:02:40
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/boxes/facturar-ticket-popup.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:46484297953612cb05de8b5-47685177%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'21ff6d9fb6383c5951e1b6158f1f9e1a073603aa' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/boxes/facturar-ticket-popup.tpl',
|
|
||||||
1 => 1385163825,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '46484297953612cb05de8b5-47685177',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<div class="popupheader" style="z-index:70">
|
|
||||||
<div id="fviewmenu" style="z-index:70">
|
|
||||||
<div id="fviewclose"><span style="color:#CCC" id="closePopUpDiv">Close<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/b_disn.png" border="0" alt="close" /></span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="ftitl">
|
|
||||||
<div class="flabel">Paso 1 de 3 :: Facturar Ticket</div>
|
|
||||||
<div id="vtitl"><span title="Titulo">Paso 1 de 3 :: Facturar Ticket</span></div>
|
|
||||||
</div>
|
|
||||||
<div id="draganddrop" style="position:absolute;top:45px;left:640px">
|
|
||||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/draganddrop.png" border="0" alt="mueve" />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="wrapper">
|
|
||||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/forms/agregar-ticket-facturar.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>
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-07-02 18:34:11
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/forms/filtro-reporte-prod-prov2.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:192376828953b496f3181f98-23705058%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'22837bd4487dcfadd540651ee1f72fed09f631c2' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/forms/filtro-reporte-prod-prov2.tpl',
|
|
||||||
1 => 1404343991,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '192376828953b496f3181f98-23705058',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<br /><br />
|
|
||||||
<h2 align="center">Reporte en Mantenimiento</h2>
|
|
||||||
|
|
||||||
@@ -1,352 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-06-27 05:44:23
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/reportes-prod-prov-item.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:108225702953ad4b07cd45f5-47601480%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'22932b63ddaf66740b2dddbd73f75614c4bf6b39' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/reportes-prod-prov-item.tpl',
|
|
||||||
1 => 1403865853,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '108225702953ad4b07cd45f5-47601480',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<?php if (!is_callable('smarty_modifier_date_format')) include '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/libs/plugins/modifier.date_format.php';
|
|
||||||
?><table width="<?php echo $_smarty_tpl->getVariable('width')->value;?>
|
|
||||||
" cellpadding="0" cellspacing="0" id="tblProdProv" border="0" bgcolor="#FFFFFF" class="sortable">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th width="60"></th>
|
|
||||||
<th width="60"></th>
|
|
||||||
<th width="100"></th>
|
|
||||||
<th width="100"></th>
|
|
||||||
<th width="200"></th>
|
|
||||||
<th width="60"></th>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['mes'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['kP'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('periodo')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
||||||
if (count($_from) > 0){
|
|
||||||
foreach ($_from as $_smarty_tpl->tpl_vars['mes']->key => $_smarty_tpl->tpl_vars['mes']->value){
|
|
||||||
$_smarty_tpl->tpl_vars['kP']->value = $_smarty_tpl->tpl_vars['mes']->key;
|
|
||||||
?>
|
|
||||||
<th width="400" colspan="6"><b><?php echo $_smarty_tpl->getVariable('mes')->value;?>
|
|
||||||
</b></th>
|
|
||||||
<?php }} ?>
|
|
||||||
<th width="100"></th>
|
|
||||||
<th width="80"></th>
|
|
||||||
<th width="80"></th>
|
|
||||||
<th width="100"></th>
|
|
||||||
|
|
||||||
<th width="80"></th>
|
|
||||||
<th width="80"></th>
|
|
||||||
<th width="100"></th>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>Depto.</th>
|
|
||||||
<th>Línea</th>
|
|
||||||
<th>Clave</th>
|
|
||||||
<th><b>Código</b></th>
|
|
||||||
<th><b>Producto</b></th>
|
|
||||||
<th><b>No. Prov.</b></th>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['mes'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['kP'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('periodo')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
||||||
if (count($_from) > 0){
|
|
||||||
foreach ($_from as $_smarty_tpl->tpl_vars['mes']->key => $_smarty_tpl->tpl_vars['mes']->value){
|
|
||||||
$_smarty_tpl->tpl_vars['kP']->value = $_smarty_tpl->tpl_vars['mes']->key;
|
|
||||||
?>
|
|
||||||
<th><b>Inicial</b></th>
|
|
||||||
<th><b>Entrada</b></th>
|
|
||||||
<th><b>Salida</b></th>
|
|
||||||
<th><b>Ajuste Entrada</b></th>
|
|
||||||
<th><b>Ajuste Salida</b></th>
|
|
||||||
<th><b>Bloqueados</b></th>
|
|
||||||
<?php }} ?>
|
|
||||||
<th><b>Ultima Compra</b></th>
|
|
||||||
<th><b>Total Piezas</b></th>
|
|
||||||
<th><b>Costo</b></th>
|
|
||||||
<th><b>Importe Total de Inv.</b></th>
|
|
||||||
<th><b>Total Ventas</b></th>
|
|
||||||
<th><b>Precio Venta</b></th>
|
|
||||||
<th><b>Importe Total Ventas</b></th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('suc')->value['categorias']; 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){
|
|
||||||
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
|
|
||||||
?>
|
|
||||||
<tr>
|
|
||||||
<td align="center"><?php echo $_smarty_tpl->getVariable('item')->value['prodCatId'];?>
|
|
||||||
</td>
|
|
||||||
<td align="center"><?php echo $_smarty_tpl->getVariable('item')->value['prodSubcatId'];?>
|
|
||||||
</td>
|
|
||||||
<td align="left" colspan="2"><?php echo $_smarty_tpl->getVariable('item')->value['nombre'];?>
|
|
||||||
</td>
|
|
||||||
<td align="left"></td>
|
|
||||||
<td align="center"></td>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['p'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['kP'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('periodo')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
||||||
if (count($_from) > 0){
|
|
||||||
foreach ($_from as $_smarty_tpl->tpl_vars['p']->key => $_smarty_tpl->tpl_vars['p']->value){
|
|
||||||
$_smarty_tpl->tpl_vars['kP']->value = $_smarty_tpl->tpl_vars['p']->key;
|
|
||||||
?>
|
|
||||||
<td align="center"></td>
|
|
||||||
<td align="center"></td>
|
|
||||||
<td align="center"></td>
|
|
||||||
<td align="center"></td>
|
|
||||||
<td align="center"></td>
|
|
||||||
<?php }} ?>
|
|
||||||
<td align="center"></td>
|
|
||||||
<td align="center"></td>
|
|
||||||
<td align="center"></td>
|
|
||||||
<td align="center"></td>
|
|
||||||
|
|
||||||
<td align="center"></td>
|
|
||||||
<td align="center"></td>
|
|
||||||
<td align="right"></td>
|
|
||||||
</tr>
|
|
||||||
<?php ob_start();?><?php echo $_smarty_tpl->getVariable('item')->value['prodCatId'];?>
|
|
||||||
<?php $_tmp1=ob_get_clean();?><?php $_smarty_tpl->tpl_vars['iS'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['kS'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('suc')->value['subcategorias'][$_tmp1]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
||||||
if (count($_from) > 0){
|
|
||||||
foreach ($_from as $_smarty_tpl->tpl_vars['iS']->key => $_smarty_tpl->tpl_vars['iS']->value){
|
|
||||||
$_smarty_tpl->tpl_vars['kS']->value = $_smarty_tpl->tpl_vars['iS']->key;
|
|
||||||
?>
|
|
||||||
<tr>
|
|
||||||
<td align="center"><?php echo $_smarty_tpl->getVariable('item')->value['prodCatId'];?>
|
|
||||||
</td>
|
|
||||||
<td align="center"><?php echo $_smarty_tpl->getVariable('iS')->value['prodSubcatId'];?>
|
|
||||||
</td>
|
|
||||||
<td align="left" colspan="2"><?php echo $_smarty_tpl->getVariable('iS')->value['nombre'];?>
|
|
||||||
</td>
|
|
||||||
<td align="left"></td>
|
|
||||||
<td align="center"></td>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['p'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['kP'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('periodo')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
||||||
if (count($_from) > 0){
|
|
||||||
foreach ($_from as $_smarty_tpl->tpl_vars['p']->key => $_smarty_tpl->tpl_vars['p']->value){
|
|
||||||
$_smarty_tpl->tpl_vars['kP']->value = $_smarty_tpl->tpl_vars['p']->key;
|
|
||||||
?>
|
|
||||||
<td align="center"></td>
|
|
||||||
<td align="center"></td>
|
|
||||||
<td align="center"></td>
|
|
||||||
<td align="center"></td>
|
|
||||||
<td align="center"></td>
|
|
||||||
<td align="center"></td>
|
|
||||||
<?php }} ?>
|
|
||||||
<td align="center"></td>
|
|
||||||
<td align="center"></td>
|
|
||||||
<td align="center"></td>
|
|
||||||
<td align="right"></td>
|
|
||||||
|
|
||||||
<td align="center"></td>
|
|
||||||
<td align="center"></td>
|
|
||||||
<td align="center"></td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<?php ob_start();?><?php echo $_smarty_tpl->getVariable('item')->value['prodCatId'];?>
|
|
||||||
<?php $_tmp2=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->getVariable('iS')->value['prodSubcatId'];?>
|
|
||||||
<?php $_tmp3=ob_get_clean();?><?php $_smarty_tpl->tpl_vars['iP'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['kP'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('suc')->value['productos'][$_tmp2][$_tmp3]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
||||||
if (count($_from) > 0){
|
|
||||||
foreach ($_from as $_smarty_tpl->tpl_vars['iP']->key => $_smarty_tpl->tpl_vars['iP']->value){
|
|
||||||
$_smarty_tpl->tpl_vars['kP']->value = $_smarty_tpl->tpl_vars['iP']->key;
|
|
||||||
?>
|
|
||||||
<tr>
|
|
||||||
<td align="center"></td>
|
|
||||||
<td align="center"></td>
|
|
||||||
<td align="center"></td>
|
|
||||||
<td align="center"><?php echo $_smarty_tpl->getVariable('iP')->value['codigoBarra'];?>
|
|
||||||
</td>
|
|
||||||
<td align="left"><?php echo $_smarty_tpl->getVariable('iP')->value['modelo'];?>
|
|
||||||
</td>
|
|
||||||
<td align="center"><?php echo $_smarty_tpl->getVariable('iP')->value['proveedorId'];?>
|
|
||||||
</td>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['p'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['kP'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('periodo')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
||||||
if (count($_from) > 0){
|
|
||||||
foreach ($_from as $_smarty_tpl->tpl_vars['p']->key => $_smarty_tpl->tpl_vars['p']->value){
|
|
||||||
$_smarty_tpl->tpl_vars['kP']->value = $_smarty_tpl->tpl_vars['p']->key;
|
|
||||||
?>
|
|
||||||
<td align="center"><?php echo number_format($_smarty_tpl->getVariable('iP')->value['iniciales'][$_smarty_tpl->getVariable('kP')->value],0,'.','');?>
|
|
||||||
</td>
|
|
||||||
<td align="center"><?php echo number_format($_smarty_tpl->getVariable('iP')->value['entradas'][$_smarty_tpl->getVariable('kP')->value],0,'.','');?>
|
|
||||||
</td>
|
|
||||||
<td align="center"><?php echo number_format($_smarty_tpl->getVariable('iP')->value['salidas'][$_smarty_tpl->getVariable('kP')->value],0,'.','');?>
|
|
||||||
</td>
|
|
||||||
<td align="center"><?php echo number_format($_smarty_tpl->getVariable('iP')->value['entradasA'][$_smarty_tpl->getVariable('kP')->value],0,'.','');?>
|
|
||||||
</td>
|
|
||||||
<td align="center"><?php echo number_format($_smarty_tpl->getVariable('iP')->value['salidasA'][$_smarty_tpl->getVariable('kP')->value],0,'.','');?>
|
|
||||||
</td>
|
|
||||||
<td align="center"><?php echo number_format($_smarty_tpl->getVariable('iP')->value['bloqueados'][$_smarty_tpl->getVariable('kP')->value],0,'.','');?>
|
|
||||||
</td>
|
|
||||||
<?php }} ?>
|
|
||||||
<td align="center"><?php echo smarty_modifier_date_format($_smarty_tpl->getVariable('iP')->value['fecha'],"%d-%m-%Y");?>
|
|
||||||
</td>
|
|
||||||
<td align="center"><?php echo number_format($_smarty_tpl->getVariable('iP')->value['totalPzas'],0,'.','');?>
|
|
||||||
</td>
|
|
||||||
<td align="center">$<?php echo number_format($_smarty_tpl->getVariable('iP')->value['costo'],2,'.','');?>
|
|
||||||
</td>
|
|
||||||
<td align="right">$<?php echo number_format($_smarty_tpl->getVariable('iP')->value['importe'],2,'.','');?>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
<td align="center"><?php echo number_format($_smarty_tpl->getVariable('iP')->value['totalVtas'],0,'.','');?>
|
|
||||||
</td>
|
|
||||||
<td align="center"><?php echo number_format($_smarty_tpl->getVariable('iP')->value['precioVta'],2,'.','');?>
|
|
||||||
</td>
|
|
||||||
<td align="right"><?php echo number_format($_smarty_tpl->getVariable('iP')->value['importeVtas'],2,'.','');?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<?php }} else { ?>
|
|
||||||
<tr><td colspan="<?php echo $_smarty_tpl->getVariable('colspan')->value;?>
|
|
||||||
" align="center">Ningún producto encontrado.</td></tr>
|
|
||||||
<?php } ?>
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<td align="center"></td>
|
|
||||||
<td align="center"></td>
|
|
||||||
<td align="center"></td>
|
|
||||||
<td align="center"></td>
|
|
||||||
<td align="center"><b>TOTAL LINEA</b></td>
|
|
||||||
<td align="center"></td>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['p'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['kP'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('periodo')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
||||||
if (count($_from) > 0){
|
|
||||||
foreach ($_from as $_smarty_tpl->tpl_vars['p']->key => $_smarty_tpl->tpl_vars['p']->value){
|
|
||||||
$_smarty_tpl->tpl_vars['kP']->value = $_smarty_tpl->tpl_vars['p']->key;
|
|
||||||
?>
|
|
||||||
<td align="center"><?php echo number_format($_smarty_tpl->getVariable('suc')->value['totSubs'][$_smarty_tpl->getVariable('iS')->value['prodSubcatId']][$_smarty_tpl->getVariable('kP')->value]['inicial'],0,'.','');?>
|
|
||||||
</td>
|
|
||||||
<td align="center"><?php echo number_format($_smarty_tpl->getVariable('suc')->value['totSubs'][$_smarty_tpl->getVariable('iS')->value['prodSubcatId']][$_smarty_tpl->getVariable('kP')->value]['entradas'],0,'.','');?>
|
|
||||||
</td>
|
|
||||||
<td align="center"><?php echo number_format($_smarty_tpl->getVariable('suc')->value['totSubs'][$_smarty_tpl->getVariable('iS')->value['prodSubcatId']][$_smarty_tpl->getVariable('kP')->value]['salidas'],0,'.','');?>
|
|
||||||
</td>
|
|
||||||
<td align="center"><?php echo number_format($_smarty_tpl->getVariable('suc')->value['totSubs'][$_smarty_tpl->getVariable('iS')->value['prodSubcatId']][$_smarty_tpl->getVariable('kP')->value]['entradasA'],0,'.','');?>
|
|
||||||
</td>
|
|
||||||
<td align="center"><?php echo number_format($_smarty_tpl->getVariable('suc')->value['totSubs'][$_smarty_tpl->getVariable('iS')->value['prodSubcatId']][$_smarty_tpl->getVariable('kP')->value]['salidasA'],0,'.','');?>
|
|
||||||
</td>
|
|
||||||
<td align="center"><?php echo number_format($_smarty_tpl->getVariable('suc')->value['totSubs'][$_smarty_tpl->getVariable('iS')->value['prodSubcatId']][$_smarty_tpl->getVariable('kP')->value]['bloqueados'],0,'.','');?>
|
|
||||||
</td>
|
|
||||||
<?php }} ?>
|
|
||||||
<td align="center"></td>
|
|
||||||
<td align="center"><?php echo number_format($_smarty_tpl->getVariable('suc')->value['totSubs'][$_smarty_tpl->getVariable('iS')->value['prodSubcatId']]['totalPzas'],0,'.','');?>
|
|
||||||
</td>
|
|
||||||
<td align="center"></td>
|
|
||||||
<td align="right">$<?php echo number_format($_smarty_tpl->getVariable('suc')->value['totSubs'][$_smarty_tpl->getVariable('iS')->value['prodSubcatId']]['importe'],2,'.',',');?>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
<td align="center"><?php echo number_format($_smarty_tpl->getVariable('suc')->value['totSubs'][$_smarty_tpl->getVariable('iS')->value['prodSubcatId']]['totalVtas'],0,'.','');?>
|
|
||||||
</td>
|
|
||||||
<td align="center"></td>
|
|
||||||
<td align="right">$<?php echo number_format($_smarty_tpl->getVariable('suc')->value['totSubs'][$_smarty_tpl->getVariable('iS')->value['prodSubcatId']]['importeVtas'],2,'.',',');?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<?php }} ?>
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<td align="center"></td>
|
|
||||||
<td align="center"></td>
|
|
||||||
<td align="center"></td>
|
|
||||||
<td align="center"></td>
|
|
||||||
<td align="center"><b>TOTAL DEPTO.</b></td>
|
|
||||||
<td align="center"></td>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['p'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['kP'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('periodo')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
||||||
if (count($_from) > 0){
|
|
||||||
foreach ($_from as $_smarty_tpl->tpl_vars['p']->key => $_smarty_tpl->tpl_vars['p']->value){
|
|
||||||
$_smarty_tpl->tpl_vars['kP']->value = $_smarty_tpl->tpl_vars['p']->key;
|
|
||||||
?>
|
|
||||||
<td align="center"><?php echo number_format($_smarty_tpl->getVariable('suc')->value['totCats'][$_smarty_tpl->getVariable('item')->value['prodCatId']][$_smarty_tpl->getVariable('kP')->value]['inicial'],0,'.','');?>
|
|
||||||
</td>
|
|
||||||
<td align="center"><?php echo number_format($_smarty_tpl->getVariable('suc')->value['totCats'][$_smarty_tpl->getVariable('item')->value['prodCatId']][$_smarty_tpl->getVariable('kP')->value]['entradas'],0,'.','');?>
|
|
||||||
</td>
|
|
||||||
<td align="center"><?php echo number_format($_smarty_tpl->getVariable('suc')->value['totCats'][$_smarty_tpl->getVariable('item')->value['prodCatId']][$_smarty_tpl->getVariable('kP')->value]['salidas'],0,'.','');?>
|
|
||||||
</td>
|
|
||||||
<td align="center"><?php echo number_format($_smarty_tpl->getVariable('suc')->value['totCats'][$_smarty_tpl->getVariable('item')->value['prodCatId']][$_smarty_tpl->getVariable('kP')->value]['entradasA'],0,'.','');?>
|
|
||||||
</td>
|
|
||||||
<td align="center"><?php echo number_format($_smarty_tpl->getVariable('suc')->value['totCats'][$_smarty_tpl->getVariable('item')->value['prodCatId']][$_smarty_tpl->getVariable('kP')->value]['salidasA'],0,'.','');?>
|
|
||||||
</td>
|
|
||||||
<td align="center"><?php echo number_format($_smarty_tpl->getVariable('suc')->value['totCats'][$_smarty_tpl->getVariable('item')->value['prodCatId']][$_smarty_tpl->getVariable('kP')->value]['bloqueados'],0,'.','');?>
|
|
||||||
</td>
|
|
||||||
<?php }} ?>
|
|
||||||
<td align="center"></td>
|
|
||||||
<td align="center"><?php echo number_format($_smarty_tpl->getVariable('suc')->value['totCats'][$_smarty_tpl->getVariable('item')->value['prodCatId']]['totalPzas'],0,'.','');?>
|
|
||||||
</td>
|
|
||||||
<td align="center"></td>
|
|
||||||
<td align="right">$<?php echo number_format($_smarty_tpl->getVariable('suc')->value['totCats'][$_smarty_tpl->getVariable('item')->value['prodCatId']]['importe'],2,'.',',');?>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
<td align="center"><?php echo number_format($_smarty_tpl->getVariable('suc')->value['totCats'][$_smarty_tpl->getVariable('item')->value['prodCatId']]['totalVtas'],0,'.','');?>
|
|
||||||
</td>
|
|
||||||
<td align="center"></td>
|
|
||||||
<td align="right">$<?php echo number_format($_smarty_tpl->getVariable('suc')->value['totCats'][$_smarty_tpl->getVariable('item')->value['prodCatId']]['importeVtas'],2,'.',',');?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<?php }} ?>
|
|
||||||
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<?php if (count($_smarty_tpl->getVariable('suc')->value['productos'])>0){?>
|
|
||||||
<table width="<?php echo $_smarty_tpl->getVariable('width')->value;?>
|
|
||||||
" cellpadding="0" cellspacing="0" border="0" bgcolor="#FFFFFF">
|
|
||||||
<tr>
|
|
||||||
<th width="60"></th>
|
|
||||||
<th width="60"></th>
|
|
||||||
<th width="100"></th>
|
|
||||||
<th width="100"></th>
|
|
||||||
<th width="200"><b>TOTALES</b></th>
|
|
||||||
<th width="60"></th>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['mes'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['kP'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('periodo')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
||||||
if (count($_from) > 0){
|
|
||||||
foreach ($_from as $_smarty_tpl->tpl_vars['mes']->key => $_smarty_tpl->tpl_vars['mes']->value){
|
|
||||||
$_smarty_tpl->tpl_vars['kP']->value = $_smarty_tpl->tpl_vars['mes']->key;
|
|
||||||
?>
|
|
||||||
<td width="60" align="center"><b><?php echo number_format($_smarty_tpl->getVariable('suc')->value['totIniciales'][$_smarty_tpl->getVariable('kP')->value],0,'.',',');?>
|
|
||||||
</b></td>
|
|
||||||
<td width="60" align="center"><b><?php echo number_format($_smarty_tpl->getVariable('suc')->value['totEntradas'][$_smarty_tpl->getVariable('kP')->value],0,'.',',');?>
|
|
||||||
</b></td>
|
|
||||||
<td width="60" align="center"><b><?php echo number_format($_smarty_tpl->getVariable('suc')->value['totSalidas'][$_smarty_tpl->getVariable('kP')->value],0,'.',',');?>
|
|
||||||
</b></td>
|
|
||||||
<td width="60" align="center"><b><?php echo number_format($_smarty_tpl->getVariable('suc')->value['totEntradasA'][$_smarty_tpl->getVariable('kP')->value],0,'.',',');?>
|
|
||||||
</b></td>
|
|
||||||
<td width="60" align="center"><b><?php echo number_format($_smarty_tpl->getVariable('suc')->value['totSalidasA'][$_smarty_tpl->getVariable('kP')->value],0,'.',',');?>
|
|
||||||
</b></td>
|
|
||||||
<td width="60" align="center"><b><?php echo number_format($_smarty_tpl->getVariable('suc')->value['totBloqueadosA'][$_smarty_tpl->getVariable('kP')->value],0,'.',',');?>
|
|
||||||
</b></td>
|
|
||||||
<?php }} ?>
|
|
||||||
<th width="100"></th>
|
|
||||||
<th width="80"><b><?php echo number_format($_smarty_tpl->getVariable('suc')->value['totPzas'],0,'.',',');?>
|
|
||||||
</b></th>
|
|
||||||
<th width="80"></th>
|
|
||||||
<th width="100"><b>$<?php echo number_format($_smarty_tpl->getVariable('suc')->value['totImporte'],2,'.',',');?>
|
|
||||||
</b></th>
|
|
||||||
|
|
||||||
<th width="80"><b><?php echo number_format($_smarty_tpl->getVariable('suc')->value['totVtas'],0,'.',',');?>
|
|
||||||
</b></th>
|
|
||||||
<th width="80"></th>
|
|
||||||
<th width="100"><b>$<?php echo number_format($_smarty_tpl->getVariable('suc')->value['totImporteVtas'],2,'.',',');?>
|
|
||||||
</b></th>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
<?php }?>
|
|
||||||
@@ -1,54 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-04-29 22:57:29
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/analisis-venta.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:1332564298536074a9919796-24517487%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'232d1c529dfff7af3bd8894d1510ab17d98b4733' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/analisis-venta.tpl',
|
|
||||||
1 => 1394826846,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '1332564298536074a9919796-24517487',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<?php if (!is_callable('smarty_modifier_date_format')) include '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/libs/plugins/modifier.date_format.php';
|
|
||||||
?><?php if (count($_smarty_tpl->getVariable('sucursales')->value)>0){?>
|
|
||||||
<div align="center">
|
|
||||||
<b>Periodo:</b>
|
|
||||||
<br />
|
|
||||||
<?php echo smarty_modifier_date_format($_smarty_tpl->getVariable('fechaIni')->value,"%d-%m-%Y");?>
|
|
||||||
al <?php echo smarty_modifier_date_format($_smarty_tpl->getVariable('fechaFin')->value,"%d-%m-%Y");?>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<?php }?>
|
|
||||||
|
|
||||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/items/analisis-venta-header.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
|
|
||||||
$_template->assign('clase',"Off"); echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
|
|
||||||
|
|
||||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/items/analisis-venta-base.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
|
|
||||||
$_template->assign('clase',"Off"); echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
|
|
||||||
|
|
||||||
|
|
||||||
<?php if (count($_smarty_tpl->getVariable('sucursales')->value)>0){?>
|
|
||||||
<tr>
|
|
||||||
<td align="left"></td>
|
|
||||||
<td align="center"></td>
|
|
||||||
<td align="center"></td>
|
|
||||||
<td align="center"></td>
|
|
||||||
<td align="center">TOTALES</td>
|
|
||||||
<td align="center"><?php echo $_smarty_tpl->getVariable('totales')->value['totProds'];?>
|
|
||||||
</td>
|
|
||||||
<td align="center"><?php echo number_format($_smarty_tpl->getVariable('totales')->value['totVtas'],2,'.',',');?>
|
|
||||||
</td>
|
|
||||||
<td align="center"><?php echo number_format($_smarty_tpl->getVariable('totales')->value['utilidad'],2,'.',',');?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<?php }?>
|
|
||||||
|
|
||||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/pages_new.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
|
|
||||||
$_template->assign('pages',$_smarty_tpl->getVariable('meses')->value['pages']);$_template->assign('colspan',10); echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-06-12 18:58:36
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/ver-descuentos.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:1543999997539a3eac8e0de2-93954109%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'24060fbeadbfc29c4c84cf64b3bab3b268622466' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/ver-descuentos.tpl',
|
|
||||||
1 => 1375965482,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '1543999997539a3eac8e0de2-93954109',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<div id="divForm" align="center">
|
|
||||||
<table width="100%" cellpadding="0" cellspacing="0" align="center">
|
|
||||||
<tr>
|
|
||||||
<td><div align="center">Publicidad (<?php echo $_smarty_tpl->getVariable('descuentos')->value['publicidad'];?>
|
|
||||||
%)</div></td>
|
|
||||||
<td><div class="txtFrm">$<?php echo number_format($_smarty_tpl->getVariable('totalPublicidad')->value,2,'.',',');?>
|
|
||||||
</div></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><div align="center">Flete (<?php echo $_smarty_tpl->getVariable('descuentos')->value['flete'];?>
|
|
||||||
%)</div></td>
|
|
||||||
<td><div class="txtFrm">$<?php echo number_format($_smarty_tpl->getVariable('totalFlete')->value,2,'.',',');?>
|
|
||||||
</div></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><div align="center">Desarrollo (<?php echo $_smarty_tpl->getVariable('descuentos')->value['desarrollo'];?>
|
|
||||||
%)</div></td>
|
|
||||||
<td><div class="txtFrm">$<?php echo number_format($_smarty_tpl->getVariable('totalDesarrollo')->value,2,'.',',');?>
|
|
||||||
</div></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><div align="center">Especial (<?php echo $_smarty_tpl->getVariable('descuentos')->value['especial'];?>
|
|
||||||
%)</div></td>
|
|
||||||
<td><div class="txtFrm">$<?php echo number_format($_smarty_tpl->getVariable('totalEspecial')->value,2,'.',',');?>
|
|
||||||
</div></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-05-13 16:42:04
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/items/descuentos-header.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:691289082537291ac5396e0-72325734%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'24f6cd2f303e32863883183ed1f3fe95c905126f' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/items/descuentos-header.tpl',
|
|
||||||
1 => 1375965373,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '691289082537291ac5396e0-72325734',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<div class="clear"></div>
|
|
||||||
<!--THIS IS A WIDE PORTLET-->
|
|
||||||
<div class="portlet">
|
|
||||||
|
|
||||||
<div class="portlet-content nopadding">
|
|
||||||
|
|
||||||
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" border="0">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th width="80" scope="col"><div align="center">No.</div></th>
|
|
||||||
<th width="150" scope="col"><div align="center">Sucursal</div></th>
|
|
||||||
<th width="" scope="col"><div align="center">Usuario</div></th>
|
|
||||||
<th width="100" scope="col"><div align="center">Fecha</div></th>
|
|
||||||
<th width="100" scope="col"><div align="center">Total</div></th>
|
|
||||||
<th width="100" scope="col"><div align="center">Status</div></th>
|
|
||||||
<th width="60" scope="col"><div align="center">Acciones</div></th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
@@ -1,164 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-09-15 14:28:51
|
|
||||||
compiled from "/var/www/html/templates/lists/pedidos-proporciones.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:68213310554173df35227a9-24460529%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'2546d9c710de13c9516219cb22a1e93d3bfccfdc' =>
|
|
||||||
array (
|
|
||||||
0 => '/var/www/html/templates/lists/pedidos-proporciones.tpl',
|
|
||||||
1 => 1410130460,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '68213310554173df35227a9-24460529',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<table width="" cellpadding="0" cellspacing="0" border="1">
|
|
||||||
<tr>
|
|
||||||
<td width="120" align="center" height="30"><b>Color / Talla</b></td>
|
|
||||||
<td width="80" align="center"><b>Prop. Color</b></td>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('tallas')->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){
|
|
||||||
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
|
|
||||||
?>
|
|
||||||
<td align="left" width="90">
|
|
||||||
<?php if ($_smarty_tpl->getVariable('item')->value['id']>0){?>
|
|
||||||
<div align="center"><b><?php echo $_smarty_tpl->getVariable('item')->value['nombre'];?>
|
|
||||||
</b></div>
|
|
||||||
<input type="hidden" name="proporcionNT[<?php echo $_smarty_tpl->getVariable('key')->value;?>
|
|
||||||
]" id="proporcionNT_<?php echo $_smarty_tpl->getVariable('key')->value;?>
|
|
||||||
" value="<?php echo $_smarty_tpl->getVariable('item')->value['nombre'];?>
|
|
||||||
" />
|
|
||||||
<?php }else{ ?>
|
|
||||||
<input type="text" class="smallInput" name="proporcionNT[<?php echo $_smarty_tpl->getVariable('key')->value;?>
|
|
||||||
]" id="proporcionNT_<?php echo $_smarty_tpl->getVariable('key')->value;?>
|
|
||||||
" value="<?php echo $_smarty_tpl->getVariable('item')->value['nombre'];?>
|
|
||||||
" style="width:60px" />
|
|
||||||
<a href="javascript:void(0)" onclick="DelTalla(<?php echo $_smarty_tpl->getVariable('key')->value;?>
|
|
||||||
)">
|
|
||||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/icons/delete.gif" border="0" />
|
|
||||||
</a>
|
|
||||||
<?php }?>
|
|
||||||
<input type="hidden" name="proporcionIT[<?php echo $_smarty_tpl->getVariable('key')->value;?>
|
|
||||||
]" id="proporcionIT_<?php echo $_smarty_tpl->getVariable('key')->value;?>
|
|
||||||
" value="<?php echo $_smarty_tpl->getVariable('item')->value['id'];?>
|
|
||||||
" />
|
|
||||||
</td>
|
|
||||||
<?php }} ?>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="center" height="30"><b>Prop. Talla</b></td>
|
|
||||||
<td align="center"></td>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('tallas')->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){
|
|
||||||
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
|
|
||||||
?>
|
|
||||||
<td align="left">
|
|
||||||
<input type="text" class="smallInput" name="proporcionT[<?php echo $_smarty_tpl->getVariable('key')->value;?>
|
|
||||||
]" id="proporcionT_<?php echo $_smarty_tpl->getVariable('key')->value;?>
|
|
||||||
" value="<?php echo $_smarty_tpl->getVariable('item')->value['cantidad'];?>
|
|
||||||
" style="width:60px" />
|
|
||||||
</td>
|
|
||||||
<?php }} ?>
|
|
||||||
</tr>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['c'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['idC'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('colores')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
||||||
if (count($_from) > 0){
|
|
||||||
foreach ($_from as $_smarty_tpl->tpl_vars['c']->key => $_smarty_tpl->tpl_vars['c']->value){
|
|
||||||
$_smarty_tpl->tpl_vars['idC']->value = $_smarty_tpl->tpl_vars['c']->key;
|
|
||||||
?>
|
|
||||||
<tr>
|
|
||||||
<td align="center" height="30">
|
|
||||||
<?php if ($_smarty_tpl->getVariable('c')->value['id']>0){?>
|
|
||||||
<div align="center"><b><?php echo $_smarty_tpl->getVariable('c')->value['nombre'];?>
|
|
||||||
</b></div>
|
|
||||||
<input type="hidden" name="proporcionNC[<?php echo $_smarty_tpl->getVariable('idC')->value;?>
|
|
||||||
]" id="proporcionNC_<?php echo $_smarty_tpl->getVariable('idC')->value;?>
|
|
||||||
" value="<?php echo $_smarty_tpl->getVariable('c')->value['nombre'];?>
|
|
||||||
" />
|
|
||||||
<?php }else{ ?>
|
|
||||||
<input type="text" class="smallInput" name="proporcionNC[<?php echo $_smarty_tpl->getVariable('idC')->value;?>
|
|
||||||
]" id="proporcionNC_<?php echo $_smarty_tpl->getVariable('idC')->value;?>
|
|
||||||
" value="<?php echo $_smarty_tpl->getVariable('c')->value['nombre'];?>
|
|
||||||
" style="width:60px" />
|
|
||||||
<a href="javascript:void(0)" onclick="DelColor(<?php echo $_smarty_tpl->getVariable('idC')->value;?>
|
|
||||||
)">
|
|
||||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/icons/delete.gif" border="0" />
|
|
||||||
</a>
|
|
||||||
<?php }?>
|
|
||||||
<input type="hidden" name="proporcionIC[<?php echo $_smarty_tpl->getVariable('idC')->value;?>
|
|
||||||
]" id="proporcionIC_<?php echo $_smarty_tpl->getVariable('idC')->value;?>
|
|
||||||
" value="<?php echo $_smarty_tpl->getVariable('c')->value['id'];?>
|
|
||||||
" />
|
|
||||||
</td>
|
|
||||||
<td align="center">
|
|
||||||
<input type="text" class="smallInput" name="proporcionC[<?php echo $_smarty_tpl->getVariable('idC')->value;?>
|
|
||||||
]" id="proporcionC_<?php echo $_smarty_tpl->getVariable('idC')->value;?>
|
|
||||||
" value="<?php echo $_smarty_tpl->getVariable('c')->value['cantidad'];?>
|
|
||||||
" style="width:60px" />
|
|
||||||
</td>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['t'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['idT'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('tallas')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
||||||
if (count($_from) > 0){
|
|
||||||
foreach ($_from as $_smarty_tpl->tpl_vars['t']->key => $_smarty_tpl->tpl_vars['t']->value){
|
|
||||||
$_smarty_tpl->tpl_vars['idT']->value = $_smarty_tpl->tpl_vars['t']->key;
|
|
||||||
?>
|
|
||||||
<td align="center"><?php ob_start();?><?php echo $_smarty_tpl->getVariable('idT')->value;?>
|
|
||||||
<?php $_tmp1=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->getVariable('idC')->value;?>
|
|
||||||
<?php $_tmp2=ob_get_clean();?><?php echo $_smarty_tpl->getVariable('subtotales')->value[$_tmp1][$_tmp2];?>
|
|
||||||
</td>
|
|
||||||
<?php }} ?>
|
|
||||||
</tr>
|
|
||||||
<?php }} ?>
|
|
||||||
<tr>
|
|
||||||
<td align="center" height="30"><b>Total</b></td>
|
|
||||||
<td align="center"></td>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['idT'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('tallas')->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){
|
|
||||||
$_smarty_tpl->tpl_vars['idT']->value = $_smarty_tpl->tpl_vars['item']->key;
|
|
||||||
?>
|
|
||||||
<td align="center"><?php ob_start();?><?php echo $_smarty_tpl->getVariable('idT')->value;?>
|
|
||||||
<?php $_tmp3=ob_get_clean();?><?php echo $_smarty_tpl->getVariable('totales')->value[$_tmp3];?>
|
|
||||||
</td>
|
|
||||||
<?php }} ?>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<div id="tblLoader"></div>
|
|
||||||
|
|
||||||
<?php if ($_smarty_tpl->getVariable('productoId')->value){?>
|
|
||||||
|
|
||||||
<div align="center">
|
|
||||||
<input type="button" name="btnUpdate" onclick="UpdateProporcion()" value="Actualizar Proporciones" style="padding:10px" />
|
|
||||||
</div>
|
|
||||||
<br />
|
|
||||||
<table width="300" cellpadding="0" cellspacing="0" border="0">
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<td align="left">Cant. de Prendas a adquirir:</td>
|
|
||||||
<td align="left">
|
|
||||||
<input name="cantPrendas" id="cantPrendas" type="text" class="largeInput" style="width:80px" value="" />
|
|
||||||
<input type="hidden" name="cantLotes" id="cantLotes" value="1" />
|
|
||||||
<input type="hidden" name="totalLote" id="totalLote" value="<?php echo $_smarty_tpl->getVariable('totalLote')->value;?>
|
|
||||||
" />
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<?php }?>
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-05-05 17:24:11
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/forms/editar-producto-categoria.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:39453282353680f8b832c11-63000840%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'26bf3e7d11b3f75c65c9336a19644c4d998d48e4' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/forms/editar-producto-categoria.tpl',
|
|
||||||
1 => 1375965274,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '39453282353680f8b832c11-63000840',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<div id="divForm">
|
|
||||||
<form name="frmEditarCategoria" id="frmEditarCategoria" method="post" action="">
|
|
||||||
<input type="hidden" name="type" value="saveEditCategory" />
|
|
||||||
<input type="hidden" name="prodCatId" value="<?php echo $_smarty_tpl->getVariable('info')->value['prodCatId'];?>
|
|
||||||
" />
|
|
||||||
<fieldset>
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">* Nombre:</div>
|
|
||||||
<div class="r"><input type="text" name="name" id="name" class="largeInput wide2" value="<?php echo $_smarty_tpl->getVariable('info')->value['nombre'];?>
|
|
||||||
"></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div style="clear:both"></div>
|
|
||||||
<hr />
|
|
||||||
|
|
||||||
* Campos requeridos
|
|
||||||
<div class="formLine" style="text-align:center; padding-left:300px">
|
|
||||||
<a class="button" id="btnUpdate"><span>Actualizar</span></a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</fieldset>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
@@ -1,43 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-12-10 08:16:23
|
|
||||||
compiled from "/var/www/html/templates/items/envios-reporte-header.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:414912830548855b799dd89-79772969%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'26fcce3403d83f75a932e6cc974e348287e37a39' =>
|
|
||||||
array (
|
|
||||||
0 => '/var/www/html/templates/items/envios-reporte-header.tpl',
|
|
||||||
1 => 1410130454,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '414912830548855b799dd89-79772969',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<div class="clear"></div>
|
|
||||||
<!--THIS IS A WIDE PORTLET-->
|
|
||||||
<div class="portlet">
|
|
||||||
<br />
|
|
||||||
<div class="portlet-content nopadding">
|
|
||||||
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<td align="right" colspan="6" style="border-top:none;">
|
|
||||||
<a href="#" onclick="ExportGral(); return false;">
|
|
||||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/icons/excel.png" title="Exportar Reporte"/>
|
|
||||||
</a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th width="100" scope="col"><div align="center">Código Barra</div></th>
|
|
||||||
<th width="" scope="col"><div align="center">Descripción</div></th>
|
|
||||||
<th width="110" scope="col"><div align="center">Unidad</div></th>
|
|
||||||
<th width="110" scope="col"><div align="center">Cantidad</div></th>
|
|
||||||
<th width="80" scope="col"><div align="center">Precio</div></th>
|
|
||||||
<th width="100" scope="col"><div align="center">Importe</div></th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
@@ -1,227 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-04-30 12:35:40
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/items/reportes-proMasVend-base2.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:19684021775361346c0052c3-33515061%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'29a98437d29e140d99f64b47ebf12f1deca8c8ed' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/items/reportes-proMasVend-base2.tpl',
|
|
||||||
1 => 1382622989,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '19684021775361346c0052c3-33515061',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('sucursales')->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){
|
|
||||||
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
|
|
||||||
?>
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th></th>
|
|
||||||
<th></th>
|
|
||||||
<th></th>
|
|
||||||
<th></th>
|
|
||||||
<th></th>
|
|
||||||
<th width="200" id="alinear"><b><?php echo urldecode((utf8_decode($_smarty_tpl->getVariable('item')->value['nombre'])));?>
|
|
||||||
</b></th>
|
|
||||||
<th></th>
|
|
||||||
<th></th>
|
|
||||||
<th></th>
|
|
||||||
<th></th>
|
|
||||||
<th></th>
|
|
||||||
<th></th>
|
|
||||||
<th ><div style="float:right"><a href="javascript:void(0)" id="showHide<?php echo $_smarty_tpl->getVariable('item')->value['sucursalId'];?>
|
|
||||||
" onclick="ShowDesc(<?php echo $_smarty_tpl->getVariable('item')->value['sucursalId'];?>
|
|
||||||
)">[+]</a></div></th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
|
|
||||||
<tbody id="totales<?php echo $_smarty_tpl->getVariable('item')->value['sucursalId'];?>
|
|
||||||
" style="display:none">
|
|
||||||
<tr style="background:#E0E5E7;text-align:center">
|
|
||||||
<th id="alinear"><b>Imagen</b></th>
|
|
||||||
<th id="alinear"><b>Proveedor</b></th>
|
|
||||||
<th id="alinear"><b>Departamento</b></th>
|
|
||||||
<th id="alinear"><b>Línea</b></th>
|
|
||||||
<th id="alinear"><b>Código de Barras</b></th>
|
|
||||||
<th id="alinear"><b>Producto</b></th>
|
|
||||||
<th id="alinear"><b>Cant. en Pedido</b></th>
|
|
||||||
<th id="alinear"><b>Cant. CEDIS</b></th>
|
|
||||||
<th id="alinear"><b>Inv. Actual</b></th>
|
|
||||||
<th id="alinear"><b>No. Prods. Vendidos</b></th>
|
|
||||||
<th id="alinear"><b>Costo</b></th>
|
|
||||||
<th id="alinear"><b>Precio Venta</b></th>
|
|
||||||
<th id="alinear"><b>Importe Total</b></th>
|
|
||||||
</tr>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['itP'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['k1'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('item')->value['productos']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
||||||
if (count($_from) > 0){
|
|
||||||
foreach ($_from as $_smarty_tpl->tpl_vars['itP']->key => $_smarty_tpl->tpl_vars['itP']->value){
|
|
||||||
$_smarty_tpl->tpl_vars['k1']->value = $_smarty_tpl->tpl_vars['itP']->key;
|
|
||||||
?>
|
|
||||||
<tr>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF">
|
|
||||||
<?php if ($_smarty_tpl->getVariable('itP')->value['imagen']!=''){?>
|
|
||||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/productos/<?php echo $_smarty_tpl->getVariable('itP')->value['imagen'];?>
|
|
||||||
" width="60" height="60" />
|
|
||||||
<?php }?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF" bgcolor="#FFFFFF"><?php echo $_smarty_tpl->getVariable('itP')->value['proveedor'];?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF"><?php echo $_smarty_tpl->getVariable('itP')->value['depto'];?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF"><?php echo $_smarty_tpl->getVariable('itP')->value['linea'];?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF"><?php echo $_smarty_tpl->getVariable('itP')->value['codigoBarra'];?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:left; background-color:#FFFFFF"><?php echo $_smarty_tpl->getVariable('itP')->value['modelo'];?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF"><?php echo number_format($_smarty_tpl->getVariable('itP')->value['porLlegar'],0,'.',',');?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF"><?php echo number_format($_smarty_tpl->getVariable('itP')->value['cedis'],0,'.',',');?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF"><?php echo number_format($_smarty_tpl->getVariable('itP')->value['disponible'],0,'.',',');?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF"><?php echo number_format($_smarty_tpl->getVariable('itP')->value['vendidos'],0,'.',',');?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF">$<?php echo number_format($_smarty_tpl->getVariable('itP')->value['costo'],2,'.',',');?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF">$<?php echo number_format($_smarty_tpl->getVariable('itP')->value['precioVenta'],2,'.',',');?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF">$<?php echo number_format($_smarty_tpl->getVariable('itP')->value['total'],2,'.',',');?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<?php }} ?>
|
|
||||||
<tr>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF"></td>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF"></td>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF"></td>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF"></td>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF"></td>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF"><b>TOTAL</b></td>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF"><b><?php echo number_format($_smarty_tpl->getVariable('item')->value['porLlegar'],0,'.',',');?>
|
|
||||||
</b></td>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF"><b><?php echo number_format($_smarty_tpl->getVariable('item')->value['cedis'],0,'.',',');?>
|
|
||||||
</b></td>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF"><b><?php echo number_format($_smarty_tpl->getVariable('item')->value['disponible'],0,'.',',');?>
|
|
||||||
</b></td>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF"><b><?php echo number_format($_smarty_tpl->getVariable('item')->value['vendidos'],0,'.',',');?>
|
|
||||||
</b></td>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF"></td>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF"></td>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF"><b>$<?php echo number_format($_smarty_tpl->getVariable('item')->value['importe'],2,'.',',');?>
|
|
||||||
</b></td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
<?php }} ?>
|
|
||||||
|
|
||||||
<?php if (count($_smarty_tpl->getVariable('sucursales')->value)>1){?>
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th></th>
|
|
||||||
<th></th>
|
|
||||||
<th></th>
|
|
||||||
<th></th>
|
|
||||||
<th></th>
|
|
||||||
<th width="200" id="alinear"><b>TOTALES GLOBALES</b></th>
|
|
||||||
<th></th>
|
|
||||||
<th></th>
|
|
||||||
<th></th>
|
|
||||||
<th></th>
|
|
||||||
<th></th>
|
|
||||||
<th></th>
|
|
||||||
<th ><div style="float:right"><a href="javascript:void(0)" id="showHide1000" onclick="ShowDesc(1000)">[+]</a></div></th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
|
|
||||||
<tbody id="totales1000" style="display:none">
|
|
||||||
<tr style="background:#E0E5E7;text-align:center">
|
|
||||||
<th id="alinear"><b>Imagen</b></th>
|
|
||||||
<th id="alinear"><b>Proveedor</b></th>
|
|
||||||
<th id="alinear"><b>Departamento</b></th>
|
|
||||||
<th id="alinear"><b>Línea</b></th>
|
|
||||||
<th id="alinear"><b>Código de Barras</b></th>
|
|
||||||
<th id="alinear"><b>Producto</b></th>
|
|
||||||
<th id="alinear"><b>Cant. en Pedido</b></th>
|
|
||||||
<th id="alinear"><b>Cant. CEDIS</b></th>
|
|
||||||
<th id="alinear"><b>Inv. Actual</b></th>
|
|
||||||
<th id="alinear"><b>No. Prods. Vendidos</b></th>
|
|
||||||
<th id="alinear"><b>Costo</b></th>
|
|
||||||
<th id="alinear"><b>Precio Venta</b></th>
|
|
||||||
<th id="alinear"><b>Importe Total</b></th>
|
|
||||||
</tr>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['itP'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['k1'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('global')->value['productos']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
||||||
if (count($_from) > 0){
|
|
||||||
foreach ($_from as $_smarty_tpl->tpl_vars['itP']->key => $_smarty_tpl->tpl_vars['itP']->value){
|
|
||||||
$_smarty_tpl->tpl_vars['k1']->value = $_smarty_tpl->tpl_vars['itP']->key;
|
|
||||||
?>
|
|
||||||
<tr>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF">
|
|
||||||
<?php if ($_smarty_tpl->getVariable('itP')->value['imagen']!=''){?>
|
|
||||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/productos/<?php echo $_smarty_tpl->getVariable('itP')->value['imagen'];?>
|
|
||||||
" width="60" height="60" />
|
|
||||||
<?php }?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF" bgcolor="#FFFFFF"><?php echo $_smarty_tpl->getVariable('itP')->value['proveedor'];?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF"><?php echo $_smarty_tpl->getVariable('itP')->value['depto'];?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF"><?php echo $_smarty_tpl->getVariable('itP')->value['linea'];?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF"><?php echo $_smarty_tpl->getVariable('itP')->value['codigoBarra'];?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:left; background-color:#FFFFFF"><?php echo $_smarty_tpl->getVariable('itP')->value['modelo'];?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF"><?php echo number_format($_smarty_tpl->getVariable('itP')->value['porLlegar'],0,'.',',');?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF"><?php echo number_format($_smarty_tpl->getVariable('itP')->value['cedis'],0,'.',',');?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF"><?php echo number_format($_smarty_tpl->getVariable('itP')->value['disponible'],0,'.',',');?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF"><?php echo number_format($_smarty_tpl->getVariable('itP')->value['vendidos'],0,'.',',');?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF">$<?php echo number_format($_smarty_tpl->getVariable('itP')->value['costo'],2,'.',',');?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF">$<?php echo number_format($_smarty_tpl->getVariable('itP')->value['precioVenta'],2,'.',',');?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF">$<?php echo number_format($_smarty_tpl->getVariable('itP')->value['total'],2,'.',',');?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<?php }} ?>
|
|
||||||
<tr>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF"></td>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF"></td>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF"></td>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF"></td>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF"></td>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF"><b>TOTAL</b></td>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF"><b><?php echo number_format($_smarty_tpl->getVariable('global')->value['porLlegar'],0,'.',',');?>
|
|
||||||
</b></td>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF"><b><?php echo number_format($_smarty_tpl->getVariable('global')->value['cedis'],0,'.',',');?>
|
|
||||||
</b></td>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF">
|
|
||||||
<b><?php echo number_format($_smarty_tpl->getVariable('global')->value['disponible'],0,'.',',');?>
|
|
||||||
</b>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF"><b><?php echo number_format($_smarty_tpl->getVariable('global')->value['vendidos'],0,'.',',');?>
|
|
||||||
</b></td>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF"></td>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF"></td>
|
|
||||||
<td style="text-align:center; background-color:#FFFFFF"><b>$<?php echo number_format($_smarty_tpl->getVariable('global')->value['total'],2,'.',',');?>
|
|
||||||
</b></td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
<?php }?>
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-06-13 16:43:57
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/items/sucursales-header.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:544132123539b709d7c6b70-98778056%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'2b79f9deeac365a9fcbc3cce9a6c8dc0c2636355' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/items/sucursales-header.tpl',
|
|
||||||
1 => 1375965398,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '544132123539b709d7c6b70-98778056',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<div align="center">
|
|
||||||
<span id="addSucursal" style="cursor:pointer"><img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/icons/add.png" border="0" />Agregar Sucursal</span>
|
|
||||||
</div>
|
|
||||||
<br />
|
|
||||||
|
|
||||||
<div class="clear"></div>
|
|
||||||
|
|
||||||
<div class="portlet" style="width:95%; padding-left:20px" align="center">
|
|
||||||
|
|
||||||
<div class="portlet-content nopadding">
|
|
||||||
|
|
||||||
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" summary="Employee Pay Sheet">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th width="80" scope="col"><div align="center">No.</div></th>
|
|
||||||
<th width="136" scope="col"><div align="center">RFC</div></th>
|
|
||||||
<th width="" scope="col"><div align="center">Nombre</div></th>
|
|
||||||
<th width="109" scope="col"><div align="center">IVA</div></th>
|
|
||||||
<th width="100" scope="col"><div align="center">Acciones</div></th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-06-13 16:43:57
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/items/sucursales-base.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:264011040539b709dda0a05-91643035%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'2b8188c64c666bde8bfe899688adc9de39c60faa' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/items/sucursales-base.tpl',
|
|
||||||
1 => 1375965398,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '264011040539b709dda0a05-91643035',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<tr>
|
|
||||||
<td align="center"><?php echo $_smarty_tpl->getVariable('sucursal')->value['sucursalId'];?>
|
|
||||||
</td>
|
|
||||||
<td align="center"><?php echo $_smarty_tpl->getVariable('sucursal')->value['rfc'];?>
|
|
||||||
</td>
|
|
||||||
<td align="center"><?php echo $_smarty_tpl->getVariable('sucursal')->value['nombre'];?>
|
|
||||||
</td>
|
|
||||||
<td align="center"><?php echo $_smarty_tpl->getVariable('sucursal')->value['iva'];?>
|
|
||||||
%</td>
|
|
||||||
<td align="center">
|
|
||||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/icons/details.png" class="spanViewSucursal" id="<?php echo $_smarty_tpl->getVariable('sucursal')->value['sucursalId'];?>
|
|
||||||
" title="Ver Detalles" />
|
|
||||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/icons/edit.gif" class="spanEditSucursal" id="<?php echo $_smarty_tpl->getVariable('sucursal')->value['sucursalId'];?>
|
|
||||||
" title="Editar"/>
|
|
||||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/icons/delete.gif" class="spanDeleteSucursal" id="<?php echo $_smarty_tpl->getVariable('sucursal')->value['sucursalId'];?>
|
|
||||||
" title="Eliminar"/>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
@@ -1,54 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-05-01 09:44:05
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/enumProdVta.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:61539871953625db5c44939-27947593%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'2c9d7e20e75e322ae856e7d6a9c15f42eae92ad9' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/enumProdVta.tpl',
|
|
||||||
1 => 1375965441,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '61539871953625db5c44939-27947593',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<?php if (!is_callable('smarty_modifier_upper')) include '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/libs/plugins/modifier.upper.php';
|
|
||||||
?><table width="100%" cellpadding="0" cellspacing="0" border="1">
|
|
||||||
<tr>
|
|
||||||
<td width="80" align="center" height="30"><b>DISP.</b></td>
|
|
||||||
<td width="100"align="center"><b>P. U.</td>
|
|
||||||
<td width="" align="center"><b>DESCRIPCION</b></td>
|
|
||||||
<td width="20"></td>
|
|
||||||
</tr>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['key'] = 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){
|
|
||||||
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
|
|
||||||
?>
|
|
||||||
<tr>
|
|
||||||
<td align="center" height="30"><?php echo $_smarty_tpl->getVariable('item')->value['disponible'];?>
|
|
||||||
</td>
|
|
||||||
<td align="center"><?php echo $_smarty_tpl->getVariable('item')->value['precioVentaIva'];?>
|
|
||||||
</td>
|
|
||||||
<td align="left"><?php echo smarty_modifier_upper($_smarty_tpl->getVariable('item')->value['nombre']);?>
|
|
||||||
</td>
|
|
||||||
<td align="center">
|
|
||||||
<a href="javascript:void(0)" onclick="UpdateInfoProdB(<?php echo $_smarty_tpl->getVariable('item')->value['productoId'];?>
|
|
||||||
)">
|
|
||||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/icons/add.png" border="0" />
|
|
||||||
</a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<?php }} else { ?>
|
|
||||||
<tr>
|
|
||||||
<td colspan="4" height="30" align="center">Ningún registro encontrado.</td>
|
|
||||||
</tr>
|
|
||||||
<?php } ?>
|
|
||||||
</table>
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-04-30 08:32:06
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/boxes/agregar-venta-popup.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:17149977615360fb56ec1897-41501244%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'2cf6d2de352813afcab219a3e9df5bf585ee79b6' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/boxes/agregar-venta-popup.tpl',
|
|
||||||
1 => 1375965210,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '17149977615360fb56ec1897-41501244',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<div id="divIframe" style="height:700px"></div>
|
|
||||||
@@ -1,49 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-09-23 17:55:01
|
|
||||||
compiled from "/var/www/html/templates/boxes/export-factura.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:8907894675421fa45bf7a59-68366070%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'2daea5e851b43b2ea78be37c594d0f7bb00e085d' =>
|
|
||||||
array (
|
|
||||||
0 => '/var/www/html/templates/boxes/export-factura.tpl',
|
|
||||||
1 => 1410130448,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '8907894675421fa45bf7a59-68366070',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<div>
|
|
||||||
El comprobante ha sido generada exitosamente, ahora puedes proceder a guardar los archivos.
|
|
||||||
<br />No te preocupes, estos archivos los podras volver a ver en "Consultar Comprobantes"
|
|
||||||
<br /><br />
|
|
||||||
|
|
||||||
<?php if ($_smarty_tpl->getVariable('info')->value['version']=="v3"||$_smarty_tpl->getVariable('info')->value['version']=="construc"){?>
|
|
||||||
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/util/download.php?path=<?php echo $_smarty_tpl->getVariable('comprobante')->value['path'];?>
|
|
||||||
&secPath=xml&filename=SIGN_<?php echo $_smarty_tpl->getVariable('comprobante')->value['xml'];?>
|
|
||||||
.xml&contentType=text/xml" target="_blank" title="Descargar XML">
|
|
||||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/xml_icon.png" height="100" width="100" border="0"/>
|
|
||||||
</a>
|
|
||||||
<?php }elseif($_smarty_tpl->getVariable('info')->value['version']=="2"){?>
|
|
||||||
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/util/download.php?path=<?php echo $_smarty_tpl->getVariable('comprobante')->value['path'];?>
|
|
||||||
&secPath=xml&filename=<?php echo $_smarty_tpl->getVariable('comprobante')->value['xml'];?>
|
|
||||||
.xml&contentType=text/xml" target="_blank" title="Descargar XML">
|
|
||||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/xml_icon.png" height="100" width="100" border="0"/></a>
|
|
||||||
<?php }?>
|
|
||||||
|
|
||||||
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/facturacion-pdf/ver/<?php echo $_smarty_tpl->getVariable('comprobante')->value['comprobanteId'];?>
|
|
||||||
" target="_blank" title="Descargar PDF">
|
|
||||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/pdf_icon.png" height="100" width="100" border="0"/></a>
|
|
||||||
<br /><br />
|
|
||||||
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/facturacion-nueva">Crear Nuevo Comprobante</a>
|
|
||||||
</div>
|
|
||||||
@@ -1,48 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2016-05-03 14:57:54
|
|
||||||
compiled from "/var/www/html/templates/lists/usuarios.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:1244015892572902c2301b38-97797000%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'2f553159d15c11045d004a688a1b24b031cda40a' =>
|
|
||||||
array (
|
|
||||||
0 => '/var/www/html/templates/lists/usuarios.tpl',
|
|
||||||
1 => 1410130461,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '1244015892572902c2301b38-97797000',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
|
|
||||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/items/usuarios-header.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
|
|
||||||
$_template->assign('clase',"Off"); echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
|
|
||||||
|
|
||||||
|
|
||||||
<?php if (count($_smarty_tpl->getVariable('usuarios')->value)){?>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['usuario'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('usuarios')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
||||||
if (count($_from) > 0){
|
|
||||||
foreach ($_from as $_smarty_tpl->tpl_vars['usuario']->key => $_smarty_tpl->tpl_vars['usuario']->value){
|
|
||||||
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['usuario']->key;
|
|
||||||
?>
|
|
||||||
<?php if ($_smarty_tpl->getVariable('key')->value%2==0){?>
|
|
||||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/items/usuarios-base.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
|
|
||||||
$_template->assign('clase',"Off"); echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
|
|
||||||
|
|
||||||
<?php }else{ ?>
|
|
||||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/items/usuarios-base.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
|
|
||||||
$_template->assign('clase',"On"); echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
|
|
||||||
|
|
||||||
<?php }?>
|
|
||||||
<?php }} ?>
|
|
||||||
<?php }else{ ?>
|
|
||||||
<tr><td colspan="5" align="center">Ningún registro encontrado.</td>
|
|
||||||
<?php }?>
|
|
||||||
|
|
||||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/pages_new.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
|
|
||||||
$_template->assign('pages',$_smarty_tpl->getVariable('pages')->value);$_template->assign('colspan',5); echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
|
|
||||||
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-05-01 09:44:05
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/enumProdCatVta.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:178903834053625db5bece08-86615195%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'2fbcb33ec1a003b36c72ee3587c329e9e75d5271' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/enumProdCatVta.tpl',
|
|
||||||
1 => 1375965436,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '178903834053625db5bece08-86615195',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<?php if (!is_callable('smarty_modifier_truncate')) include '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/libs/plugins/modifier.truncate.php';
|
|
||||||
?> <select name="prodCatId2" id="prodCatId2" class="largeInput" style="width:210px" onchange="LoadSubcats()">
|
|
||||||
<option value="">Seleccione</option>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('categorias')->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){
|
|
||||||
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
|
|
||||||
?>
|
|
||||||
<option value="<?php echo $_smarty_tpl->getVariable('item')->value['prodCatId'];?>
|
|
||||||
"><?php echo smarty_modifier_truncate($_smarty_tpl->getVariable('item')->value['nombre'],25,'...');?>
|
|
||||||
</option>
|
|
||||||
<?php }} ?>
|
|
||||||
</select>
|
|
||||||
@@ -1,47 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-09-08 12:22:01
|
|
||||||
compiled from "/var/www/html/templates/lists/productos.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:950539790540de5b91a6524-79649572%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'30a06573f58dec6ec40d0c56965e23d6836e8482' =>
|
|
||||||
array (
|
|
||||||
0 => '/var/www/html/templates/lists/productos.tpl',
|
|
||||||
1 => 1410130460,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '950539790540de5b91a6524-79649572',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
|
|
||||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/items/productos-header.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
|
|
||||||
$_template->assign('clase',"Off"); echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
|
|
||||||
|
|
||||||
|
|
||||||
<?php if (count($_smarty_tpl->getVariable('productos')->value['items'])){?>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('productos')->value['items']; 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){
|
|
||||||
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
|
|
||||||
?>
|
|
||||||
<?php if ($_smarty_tpl->getVariable('key')->value%2==0){?>
|
|
||||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/items/productos-base.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
|
|
||||||
$_template->assign('clase',"Off"); echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
|
|
||||||
|
|
||||||
<?php }else{ ?>
|
|
||||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/items/productos-base.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
|
|
||||||
$_template->assign('clase',"On"); echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
|
|
||||||
|
|
||||||
<?php }?>
|
|
||||||
<?php }} ?>
|
|
||||||
<?php }else{ ?>
|
|
||||||
<tr><td colspan="9" align="center">Ningún registro encontrado.</td>
|
|
||||||
<?php }?>
|
|
||||||
|
|
||||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/pages_new.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
|
|
||||||
$_template->assign('pages',$_smarty_tpl->getVariable('productos')->value['pages']);$_template->assign('colspan',9); echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-04-30 10:28:13
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/boxes/status_open_on_popup.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:21370971345361168d44a681-18604340%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'30e60f39654fddf53c9963940c921eb279480826' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/boxes/status_open_on_popup.tpl',
|
|
||||||
1 => 1375965231,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '21370971345361168d44a681-18604340',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<div id="centeredDivOnPopup" class="" style="margin:auto; position:fixed; top:50%; left:50%; margin-top:-150px;margin-left:-275px;z-index:3000; display:none">
|
|
||||||
<div style="width:548px; border:solid; border-color:#999;border-width:1px; background-color:#ccc; padding-left:5px; padding-top:5px; padding-bottom:5px">
|
|
||||||
<div style="width:500px; border:solid; border-color:#999;border-width:1px; background-color:#FFF; padding:20px">
|
|
||||||
<div id="close_icon" onclick="ToogleStatusDivOnPopup()" style="position:absolute;top: 35px; left: 500px;cursor:pointer; z-index:5000"><a href="javascript:void(0)"><img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/close_icon.gif" height="32" width="32" border="0"/></a></div>
|
|
||||||
|
|
||||||
@@ -1,95 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-09-08 12:17:22
|
|
||||||
compiled from "/var/www/html/templates/lists/reportes-devcedis.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:364191590540de4a2571082-90789978%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'31f56b60492a59cacf1338de96d0edb8a070bdba' =>
|
|
||||||
array (
|
|
||||||
0 => '/var/www/html/templates/lists/reportes-devcedis.tpl',
|
|
||||||
1 => 1410130460,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '364191590540de4a2571082-90789978',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<?php if (!is_callable('smarty_modifier_date_format')) include '/var/www/html/libs/plugins/modifier.date_format.php';
|
|
||||||
?><div class="clear"></div>
|
|
||||||
<!--THIS IS A WIDE PORTLET-->
|
|
||||||
<div class="portlet">
|
|
||||||
<br />
|
|
||||||
<div class="portlet-content nopadding">
|
|
||||||
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th width="100" scope="col"><div align="center">No. Dev.</div></th>
|
|
||||||
<th width="120" scope="col"><div align="center">Fecha</div></th>
|
|
||||||
<th width="" scope="col"><div align="center">Usuario</div></th>
|
|
||||||
<th width="100" scope="col"><div align="center">Productos</div></th>
|
|
||||||
<th width="150" scope="col"><div align="center">Total</div></th>
|
|
||||||
<th width="100" scope="col"><div align="center">Acciones</div></th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('devoluciones')->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){
|
|
||||||
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
|
|
||||||
?>
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<td align="center"><?php echo $_smarty_tpl->getVariable('item')->value['devCedisId'];?>
|
|
||||||
</td>
|
|
||||||
<td align="center"><?php echo smarty_modifier_date_format($_smarty_tpl->getVariable('item')->value['fecha'],"%d-%m-%Y %k:%M:%S");?>
|
|
||||||
</td>
|
|
||||||
<td align="center"><?php echo $_smarty_tpl->getVariable('item')->value['usuario'];?>
|
|
||||||
</td>
|
|
||||||
<td align="center"><?php echo $_smarty_tpl->getVariable('item')->value['totalCantidad'];?>
|
|
||||||
</td>
|
|
||||||
<td align="center">$<?php echo number_format($_smarty_tpl->getVariable('item')->value['total'],2,'.',',');?>
|
|
||||||
</td>
|
|
||||||
<td align="center">
|
|
||||||
<a href="javascript:void(0)" onclick="ViewProducts(<?php echo $_smarty_tpl->getVariable('item')->value['devCedisId'];?>
|
|
||||||
)" title="Ver Productos">
|
|
||||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/icons/details.png" border="0" />
|
|
||||||
</a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td colspan="6">
|
|
||||||
<div id="listProds_<?php echo $_smarty_tpl->getVariable('item')->value['devCedisId'];?>
|
|
||||||
" style="display:none">
|
|
||||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/reportes-devcedis-prods.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>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<?php }} else { ?>
|
|
||||||
<tr>
|
|
||||||
<td colspan="6" align="center">Ningún registro encontrado.</td>
|
|
||||||
</tr>
|
|
||||||
<?php } ?>
|
|
||||||
|
|
||||||
<?php if (count($_smarty_tpl->getVariable('devoluciones')->value)){?>
|
|
||||||
<tr>
|
|
||||||
<td align="center"></td>
|
|
||||||
<td align="center"></td>
|
|
||||||
<td align="center"><b>TOTALES</b></td>
|
|
||||||
<td align="center"><b><?php echo number_format($_smarty_tpl->getVariable('totalProds')->value,0,'.',',');?>
|
|
||||||
</b></td>
|
|
||||||
<td align="center"><b>$<?php echo number_format($_smarty_tpl->getVariable('totalTotal')->value,2,'.',',');?>
|
|
||||||
</b></td>
|
|
||||||
<td align="center"></td>
|
|
||||||
</tr>
|
|
||||||
<?php }?>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@@ -1,70 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2016-01-07 10:44:15
|
|
||||||
compiled from "/var/www/html/templates/forms/filtro-prods-transito.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:1327769682568e95dfe919f9-62731619%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'32023a71e0855bf5240f1153aea912620465e9f0' =>
|
|
||||||
array (
|
|
||||||
0 => '/var/www/html/templates/forms/filtro-prods-transito.tpl',
|
|
||||||
1 => 1410130451,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '1327769682568e95dfe919f9-62731619',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<form name="frmProdsTransito" id="frmProdsTransito" method="post" action="export/prods-transito.php">
|
|
||||||
<input type="hidden" name="type" id="type" value="prodsTransito" />
|
|
||||||
|
|
||||||
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" style="border-top:1px solid #999999">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th align="center"><div align="center">Sucursal</div></th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td align="center">
|
|
||||||
<select name="idSucursal" id="idSucursal" class="largeInput">
|
|
||||||
<option value="">Todas</option>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('sucursales')->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){
|
|
||||||
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
|
|
||||||
?>
|
|
||||||
<option value="<?php echo $_smarty_tpl->getVariable('item')->value['sucursalId'];?>
|
|
||||||
"><?php echo $_smarty_tpl->getVariable('item')->value['nombre'];?>
|
|
||||||
</option>
|
|
||||||
<?php }} ?>
|
|
||||||
</select>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="center">
|
|
||||||
<input type="button" name="btnReporte" id="btnReporte" value="Generar" class="btnSearch" onclick="RepProdsTransito()"/>
|
|
||||||
<div style="float:right; padding-right:50px">
|
|
||||||
<a href="javascript:void(0)" onclick="ExportProdsTransito()">
|
|
||||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/icons/excel.png" title="Exportar Reporte" border="0"/>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="center">
|
|
||||||
<div id="loadBusqueda" style="display:none" align="center">
|
|
||||||
<br />
|
|
||||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/loading.gif" width="16" height="16" />
|
|
||||||
<br />Cargando...
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</form>
|
|
||||||
@@ -1,62 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-05-02 12:10:00
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/forms/agregar-producto-subcategoria.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:9147913225363d1688c77e8-13013667%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'320fd1afd4bb862fc5a3c7dfc54bf93aa9a8f90f' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/forms/agregar-producto-subcategoria.tpl',
|
|
||||||
1 => 1375965257,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '9147913225363d1688c77e8-13013667',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<div id="divForm">
|
|
||||||
<form name="frmAgregarSubcategoria" id="frmAgregarSubcategoria" method="post" action="">
|
|
||||||
<input type="hidden" name="type" id="type" value="saveSubcategory" />
|
|
||||||
<input type="hidden" name="prodCatId" id="prodCatId" value="<?php echo $_smarty_tpl->getVariable('prodCatId')->value;?>
|
|
||||||
" />
|
|
||||||
<fieldset>
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">* Nombre:</div>
|
|
||||||
<div class="r"><input type="text" name="name" id="name" class="largeInput wide2"></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">* Atributos:</div>
|
|
||||||
<div class="r">
|
|
||||||
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('atributos')->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){
|
|
||||||
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
|
|
||||||
?>
|
|
||||||
<input type="checkbox" name="atributos[]" id="atributo_<?php echo $_smarty_tpl->getVariable('item')->value['atributoId'];?>
|
|
||||||
" value="<?php echo $_smarty_tpl->getVariable('item')->value['atributoId'];?>
|
|
||||||
" />
|
|
||||||
<?php echo $_smarty_tpl->getVariable('item')->value['nombre'];?>
|
|
||||||
|
|
||||||
<br />
|
|
||||||
<?php }} else { ?>
|
|
||||||
<div align="center">Ningún registro encontrado.</div>
|
|
||||||
<?php } ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div style="clear:both"></div>
|
|
||||||
<hr />
|
|
||||||
|
|
||||||
* Campos requeridos
|
|
||||||
<div class="formLine" style="text-align:center; padding-left:300px">
|
|
||||||
<a class="button" id="btnSave"><span>Agregar</span></a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</fieldset>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-04-30 10:28:13
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/items/metodos-pago-header.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:20087851235361168d4b5cb6-53820663%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'3266cabc7f792f5edf16e758c242b90a2c355e8f' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/items/metodos-pago-header.tpl',
|
|
||||||
1 => 1375965383,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '20087851235361168d4b5cb6-53820663',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<div class="clear"></div>
|
|
||||||
<!--THIS IS A WIDE PORTLET-->
|
|
||||||
<div class="portlet">
|
|
||||||
|
|
||||||
<div align="center" class="btnAddGral">
|
|
||||||
<a href="javascript:void(0)" class="inline_add" id="addMetodoPago">Agregar Método de Pago</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="portlet-content nopadding">
|
|
||||||
<form action="" method="post">
|
|
||||||
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" summary="Employee Pay Sheet">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th width="100" scope="col"><div align="center">ID</div></th>
|
|
||||||
<th width="" scope="col">Nombre</th>
|
|
||||||
<th width="100" scope="col"><div align="center">Acciones</div></th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-09-25 10:23:13
|
|
||||||
compiled from "/var/www/html/templates/items/proveedores-header.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:167149773354243361dfd281-67438271%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'32a566a70398cc22efc59fa404164ab617bc9e11' =>
|
|
||||||
array (
|
|
||||||
0 => '/var/www/html/templates/items/proveedores-header.tpl',
|
|
||||||
1 => 1410130456,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '167149773354243361dfd281-67438271',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<div class="clear"></div>
|
|
||||||
<!--THIS IS A WIDE PORTLET-->
|
|
||||||
<div class="portlet">
|
|
||||||
|
|
||||||
<div class="portlet-content nopadding">
|
|
||||||
<form action="" method="post">
|
|
||||||
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" summary="Employee Pay Sheet">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th width="80" scope="col"><div align="center">No. Prov.</div></th>
|
|
||||||
<th width="180" scope="col"><div align="center">RFC</div></th>
|
|
||||||
<th width="" scope="col"><div align="center">Nombre</div></th>
|
|
||||||
<th width="150" scope="col"><div align="center">Teléfono</div></th>
|
|
||||||
<th width="100" scope="col"><div align="center">Acciones</div></th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
@@ -1,139 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-06-19 14:05:59
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/forms/editar-cliente.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:118486552053a33497120474-60573564%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'33085bcd7ccedc164c1689e3b032c5d41b401f52' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/forms/editar-cliente.tpl',
|
|
||||||
1 => 1375965268,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '118486552053a33497120474-60573564',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<div id="divForm">
|
|
||||||
<form id="editarClienteForm" name="editarClienteForm" method="post">
|
|
||||||
<fieldset>
|
|
||||||
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">* RFC y Homoclave:</div>
|
|
||||||
<div class="r"><input type="text" name="rfc" id="rfc" class="largeInput wide2" value="<?php echo $_smarty_tpl->getVariable('post')->value['rfc'];?>
|
|
||||||
">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">* Nombre Completo o Razón Social:</div>
|
|
||||||
<div class="r"><input type="text" name="razonSocial" id="razonSocial" class="largeInput wide2" value="<?php echo $_smarty_tpl->getVariable('post')->value['nombre'];?>
|
|
||||||
">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">* Dirección:</div>
|
|
||||||
<div class="r"><input type="text" name="calle" id="calle" class="largeInput wide2" value="<?php echo $_smarty_tpl->getVariable('post')->value['calle'];?>
|
|
||||||
">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">* No Exterior:</div>
|
|
||||||
<div class="r"><input type="text" name="noExt" id="noExt" class="largeInput wide2" value="<?php echo $_smarty_tpl->getVariable('post')->value['noExt'];?>
|
|
||||||
">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">No Interior:</div>
|
|
||||||
<div class="r"><input type="text" name="noInt" id="noInt" class="largeInput wide2" value="<?php echo $_smarty_tpl->getVariable('post')->value['noInt'];?>
|
|
||||||
">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">Referencia:</div>
|
|
||||||
<div class="r"><input type="text" name="referencia" id="referencia" class="largeInput wide2" value="<?php echo $_smarty_tpl->getVariable('post')->value['referencia'];?>
|
|
||||||
">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">Colonia:</div>
|
|
||||||
<div class="r"><input type="text" name="colonia" id="colonia" class="largeInput wide2" value="<?php echo $_smarty_tpl->getVariable('post')->value['colonia'];?>
|
|
||||||
">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">* Localidad:</div>
|
|
||||||
<div class="r"><input type="text" name="localidad" id="localidad" class="largeInput wide2" value="<?php echo $_smarty_tpl->getVariable('post')->value['localidad'];?>
|
|
||||||
">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">Municipio o Delegación:</div>
|
|
||||||
<div class="r"><input type="text" name="municipio" id="municipio" class="largeInput wide2" value="<?php echo $_smarty_tpl->getVariable('post')->value['municipio'];?>
|
|
||||||
">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">Código Postal:</div>
|
|
||||||
<div class="r"><input type="text" name="cp" id="cp" class="largeInput wide2" value="<?php echo $_smarty_tpl->getVariable('post')->value['cp'];?>
|
|
||||||
">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">Estado:</div>
|
|
||||||
<div class="r"><input type="text" name="estado" id="estado" class="largeInput wide2" value="<?php echo $_smarty_tpl->getVariable('post')->value['estado'];?>
|
|
||||||
">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">* Pais:</div>
|
|
||||||
<div class="r"><input type="text" name="pais" id="pais" class="largeInput wide2" value="<?php echo $_smarty_tpl->getVariable('post')->value['pais'];?>
|
|
||||||
">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">Teléfono:</div>
|
|
||||||
<div class="r"><input type="text" name="telefono" id="telefono" class="largeInput wide2" value="<?php echo $_smarty_tpl->getVariable('post')->value['telefono'];?>
|
|
||||||
">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">Correo Electrónico:</div>
|
|
||||||
<div class="r"><input type="text" name="email" id="email" class="largeInput wide2" value="<?php echo $_smarty_tpl->getVariable('post')->value['email'];?>
|
|
||||||
">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="a">
|
|
||||||
<div class="l">Password (Dejar vacio para no cambiar):</div>
|
|
||||||
<div class="r"><input type="password" name="password" id="password" class="largeInput wide2" value="">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div style="clear:both"></div>
|
|
||||||
<hr />
|
|
||||||
* Campos requeridos
|
|
||||||
<div class="formLine" style="text-align:center; padding-left:300px">
|
|
||||||
<a class="button" id="editarCliente" name="editarCliente"><span>Actualizar</span></a>
|
|
||||||
</div>
|
|
||||||
<input type="hidden" id="type" name="type" value="saveEditCliente"/>
|
|
||||||
<input type="hidden" id="clienteId" name="clienteId" value="<?php echo $_smarty_tpl->getVariable('post')->value['clienteId'];?>
|
|
||||||
"/>
|
|
||||||
</fieldset>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
@@ -1,122 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-04-30 11:56:15
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/reportes-inventario.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:23112317653612b2f0525b3-62578896%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'333e450e5d875b0bea4c0dc1dbbcd001852caaaa' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/reportes-inventario.tpl',
|
|
||||||
1 => 1386609041,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '23112317653612b2f0525b3-62578896',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<?php if (count($_smarty_tpl->getVariable('sucursales')->value)>0){?>
|
|
||||||
<div align="left"><a href="javascript:void(0)" onclick="ShowHideGral()" id="showHideG">[+] TODOS</a></div>
|
|
||||||
<?php }?>
|
|
||||||
|
|
||||||
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('sucursales')->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){
|
|
||||||
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
|
|
||||||
?>
|
|
||||||
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" border="0">
|
|
||||||
<thead>
|
|
||||||
<tr style="background:#CCC;text-align:center">
|
|
||||||
<th id="alinear" colspan="5"><b><?php echo urldecode((utf8_decode($_smarty_tpl->getVariable('item')->value['nombre'])));?>
|
|
||||||
</b></th>
|
|
||||||
<th>
|
|
||||||
<div style="float:right">
|
|
||||||
<a href="javascript:void(0)" id="showHide<?php echo $_smarty_tpl->getVariable('item')->value['sucursalId'];?>
|
|
||||||
" onclick="ShowDesc(<?php echo $_smarty_tpl->getVariable('item')->value['sucursalId'];?>
|
|
||||||
)">[+]</a>
|
|
||||||
</div>
|
|
||||||
<input type="hidden" name="idS[]" value="<?php echo $_smarty_tpl->getVariable('item')->value['sucursalId'];?>
|
|
||||||
" />
|
|
||||||
</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
</table>
|
|
||||||
<table width="100%" cellpadding="0" cellspacing="0" id="tblReporte" border="0" class="sortable">
|
|
||||||
<tbody id="totales<?php echo $_smarty_tpl->getVariable('item')->value['sucursalId'];?>
|
|
||||||
" style="display:none">
|
|
||||||
<tr style="background:#E0E5E7;text-align:center">
|
|
||||||
<td id="alinear"><b>Proveedor</b></th>
|
|
||||||
<th id="alinear"><b>Código Barra</b></th>
|
|
||||||
<th id="alinear"><b>Modelo</b></th>
|
|
||||||
<th id="alinear" width="70"><b>Costo Unitario</b></th>
|
|
||||||
<th id="alinear" width="70"><b>Precio Venta</b></th>
|
|
||||||
<th id="alinear" width="60"><b>Disponibles</b></th>
|
|
||||||
<th id="alinear" width="80"><b>Total Costo</b></th>
|
|
||||||
<th id="alinear" width="80"><b>Total P.V.</b></th>
|
|
||||||
</tr>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['it'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['ky'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('item')->value['productos']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
||||||
if (count($_from) > 0){
|
|
||||||
foreach ($_from as $_smarty_tpl->tpl_vars['it']->key => $_smarty_tpl->tpl_vars['it']->value){
|
|
||||||
$_smarty_tpl->tpl_vars['ky']->value = $_smarty_tpl->tpl_vars['it']->key;
|
|
||||||
?>
|
|
||||||
<tr>
|
|
||||||
<td style="text-align:left"><?php echo $_smarty_tpl->getVariable('it')->value['proveedor'];?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:center;"><?php echo $_smarty_tpl->getVariable('it')->value['codigoBarra'];?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:left;"><?php echo $_smarty_tpl->getVariable('it')->value['modelo'];?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:center;">$<?php echo number_format($_smarty_tpl->getVariable('it')->value['costo'],2,'.',',');?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:center;">$<?php echo number_format($_smarty_tpl->getVariable('it')->value['precioVentaIva'],2,'.',',');?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:center;"><?php echo $_smarty_tpl->getVariable('it')->value['disponible'];?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:right;">$<?php echo number_format($_smarty_tpl->getVariable('it')->value['total'],2,'.',',');?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:right;">$<?php echo number_format($_smarty_tpl->getVariable('it')->value['totalPV'],2,'.',',');?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<?php }} ?>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
<table width="100%" cellpadding="0" cellspacing="0">
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td></td>
|
|
||||||
<td></td>
|
|
||||||
<td></td>
|
|
||||||
<td></td>
|
|
||||||
<td width="90" style="text-align:center;"><b>TOTAL</b></td>
|
|
||||||
<td width="80" style="text-align:center;"><b><?php echo number_format($_smarty_tpl->getVariable('item')->value['disponible'],0,'.',',');?>
|
|
||||||
</b></td>
|
|
||||||
<td width="100" style="text-align:right;"><b>$<?php echo number_format($_smarty_tpl->getVariable('item')->value['total'],2,'.',',');?>
|
|
||||||
</b></td>
|
|
||||||
<td width="100" style="text-align:right;"><b>$<?php echo number_format($_smarty_tpl->getVariable('item')->value['totalPV'],2,'.',',');?>
|
|
||||||
</b></td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
<?php }} ?>
|
|
||||||
|
|
||||||
<?php if (count($_smarty_tpl->getVariable('sucursales')->value)>0){?>
|
|
||||||
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" border="0">
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td colspan="4"></td>
|
|
||||||
<td width="80" style="text-align:center;"><b>TOTAL GRAL.</b></td>
|
|
||||||
<td width="60" style="text-align:center;"><b><?php echo number_format($_smarty_tpl->getVariable('totales')->value['disponible'],0,'.',',');?>
|
|
||||||
</b></td>
|
|
||||||
<td width="85" style="text-align:right;"><b>$<?php echo number_format($_smarty_tpl->getVariable('totales')->value['total'],2,'.',',');?>
|
|
||||||
</b></td>
|
|
||||||
<td width="85" style="text-align:right;"><b>$<?php echo number_format($_smarty_tpl->getVariable('totales')->value['totalPV'],2,'.',',');?>
|
|
||||||
</b></td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
<?php }?>
|
|
||||||
@@ -1,44 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-09-22 14:35:26
|
|
||||||
compiled from "/var/www/html/templates/items/facturacion-mensual-header.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:2087120099542079fe2041a9-90622545%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'3360d0709ee2e854ec625252626af6405250eea1' =>
|
|
||||||
array (
|
|
||||||
0 => '/var/www/html/templates/items/facturacion-mensual-header.tpl',
|
|
||||||
1 => 1410130454,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '2087120099542079fe2041a9-90622545',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<div class="clear"></div>
|
|
||||||
<!--THIS IS A WIDE PORTLET-->
|
|
||||||
<div class="portlet">
|
|
||||||
<div align="center">
|
|
||||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/icons/user.gif" width="16" height="16" /> Resumen de Comprobantes Emitidos
|
|
||||||
</div>
|
|
||||||
<div class="portlet-content nopadding">
|
|
||||||
<form action="" method="post">
|
|
||||||
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" summary="Employee Pay Sheet">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th width="70" scope="col"><div align="center">RFC</div></th>
|
|
||||||
<th width="" scope="col"><div align="center">Nombre</div></th>
|
|
||||||
<th width="60" scope="col"><div align="center">Fecha</div></th>
|
|
||||||
<th width="89" scope="col"><div align="center">Monto</div></th>
|
|
||||||
<th width="60" scope="col"><div align="center">Folio</div></th>
|
|
||||||
<?php if ($_smarty_tpl->getVariable('version')->value=="construc"||$_smarty_tpl->getVariable('version')->value=="v3"){?>
|
|
||||||
<th width="120" scope="col"><div align="center">UUID</div></th>
|
|
||||||
<?php }?>
|
|
||||||
<th width="70" scope="col"><div align="center">Periodo</div></th>
|
|
||||||
<th width="34" scope="col"><div align="center">Acciones</div></th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
|
|
||||||
@@ -1,44 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-05-21 18:27:27
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/items/facturacion-header.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:746353053537d365f428497-95586710%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'341ed3c5a60180eb96a8d1d9f2dd35588ebde886' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/items/facturacion-header.tpl',
|
|
||||||
1 => 1386004423,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '746353053537d365f428497-95586710',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<div class="clear"></div>
|
|
||||||
<!--THIS IS A WIDE PORTLET-->
|
|
||||||
<div class="portlet">
|
|
||||||
<div align="center">
|
|
||||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/icons/user.gif" width="16" height="16" /> Resumen de Comprobantes Emitidos
|
|
||||||
</div>
|
|
||||||
<div class="portlet-content nopadding">
|
|
||||||
<form action="" method="post">
|
|
||||||
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" summary="Employee Pay Sheet">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th width="70" scope="col"><div align="center">Ticket</div></th>
|
|
||||||
<th width="70" scope="col"><div align="center">RFC</div></th>
|
|
||||||
<th width="" scope="col"><div align="center">Nombre</div></th>
|
|
||||||
<th width="60" scope="col"><div align="center">Fecha</div></th>
|
|
||||||
<th width="89" scope="col"><div align="center">Monto</div></th>
|
|
||||||
<th width="60" scope="col"><div align="center">Folio</div></th>
|
|
||||||
<?php if ($_smarty_tpl->getVariable('version')->value=="construc"||$_smarty_tpl->getVariable('version')->value=="v3"){?>
|
|
||||||
<th width="120" scope="col"><div align="center">UUID</div></th>
|
|
||||||
<?php }?>
|
|
||||||
<th width="34" scope="col"><div align="center">Acciones</div></th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-05-02 12:10:29
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/items/productos-subcategorias-base.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:11070707855363d185711395-80180453%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'352f3198c9cf6d9d3d94de1be6e82becdedb2559' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/items/productos-subcategorias-base.tpl',
|
|
||||||
1 => 1375965389,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '11070707855363d185711395-80180453',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<tr>
|
|
||||||
<td align="center"><?php echo $_smarty_tpl->getVariable('itm')->value['prodSubcatId'];?>
|
|
||||||
</td>
|
|
||||||
<td><?php echo $_smarty_tpl->getVariable('itm')->value['nombre'];?>
|
|
||||||
</td>
|
|
||||||
<td><?php echo $_smarty_tpl->getVariable('itm')->value['atributos'];?>
|
|
||||||
</td>
|
|
||||||
<td align="center">
|
|
||||||
<a href="javascript:void(0)" onclick="EditSubcategoryPopup(<?php echo $_smarty_tpl->getVariable('itm')->value['prodSubcatId'];?>
|
|
||||||
)">
|
|
||||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/icons/edit.gif" border="0" title="Editar"/>
|
|
||||||
</a>
|
|
||||||
<a href="javascript:void(0)" onclick="DeleteSubcategoryPopup(<?php echo $_smarty_tpl->getVariable('itm')->value['prodSubcatId'];?>
|
|
||||||
)">
|
|
||||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/icons/delete.gif" border="0" title="Eliminar"/>
|
|
||||||
</a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
@@ -1,137 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-04-30 08:55:40
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/reportes-pago.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:383483427536100dc31d631-18742931%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'36296e19c53c7ab3668cded64bd2fabc427cb7a9' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/reportes-pago.tpl',
|
|
||||||
1 => 1385483734,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '383483427536100dc31d631-18742931',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" border="0">
|
|
||||||
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('sucursales')->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){
|
|
||||||
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
|
|
||||||
?>
|
|
||||||
<thead>
|
|
||||||
<tr style="background:#CCC;text-align:center">
|
|
||||||
<th colspan="2" id="alinear"><b><?php echo urldecode($_smarty_tpl->getVariable('item')->value['nombre']);?>
|
|
||||||
</b></th>
|
|
||||||
<th ><div style="float:right">
|
|
||||||
<a href="javascript:void(0)" id="showHide<?php echo $_smarty_tpl->getVariable('item')->value['sucursalId'];?>
|
|
||||||
" onclick="ShowDesc(<?php echo $_smarty_tpl->getVariable('item')->value['sucursalId'];?>
|
|
||||||
)">[+]</a>
|
|
||||||
</div>
|
|
||||||
</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody style="display:none" id="totales<?php echo $_smarty_tpl->getVariable('item')->value['sucursalId'];?>
|
|
||||||
">
|
|
||||||
<tr style="background:#E0E5E7;">
|
|
||||||
<th style="text-align:left;padding-left:100px;"><b>Tipo de Pago</b></th>
|
|
||||||
<th id="alinaer"><b><div style="text-align:center">Número de Productos <br />Vendidos</div></b></th>
|
|
||||||
<th style="text-align:right; padding-right:20px"><b><div style="text-align:center">Total de venta</div></b></th>
|
|
||||||
</tr>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['it1'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['k1'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('item')->value['metodosPago']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
||||||
if (count($_from) > 0){
|
|
||||||
foreach ($_from as $_smarty_tpl->tpl_vars['it1']->key => $_smarty_tpl->tpl_vars['it1']->value){
|
|
||||||
$_smarty_tpl->tpl_vars['k1']->value = $_smarty_tpl->tpl_vars['it1']->key;
|
|
||||||
?>
|
|
||||||
<tr><td style="text-align:left;padding-left:100px;"><?php echo urldecode((utf8_encode($_smarty_tpl->getVariable('it1')->value['nombre'])));?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:center"><?php echo $_smarty_tpl->getVariable('it1')->value['totalPrendas'];?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:right;padding-right:100px;">$<?php echo number_format($_smarty_tpl->getVariable('it1')->value['total'],2,'.',',');?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<?php }} else { ?>
|
|
||||||
<tr><td colspan="3" align="center">Ninguna registro encontrado.</td></tr>
|
|
||||||
<?php } ?>
|
|
||||||
|
|
||||||
<?php if ($_smarty_tpl->getVariable('idMetodoPago')->value>0){?>
|
|
||||||
<tr>
|
|
||||||
<td style="text-align:left;padding-left:100px;"><b>TOTAL</b></td>
|
|
||||||
<td></td>
|
|
||||||
<td style="text-align:right;padding-right:100px;"><b>$<?php echo number_format($_smarty_tpl->getVariable('item')->value['total'],2,'.',',');?>
|
|
||||||
</b></td>
|
|
||||||
</tr>
|
|
||||||
<?php }else{ ?>
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<td style="text-align:left;padding-left:100px;"><b>TOTAL</b></td>
|
|
||||||
<td></td>
|
|
||||||
<td style="text-align:right;padding-right:100px;"><b>$<?php echo number_format($_smarty_tpl->getVariable('item')->value['total'],2,'.',',');?>
|
|
||||||
</b></td>
|
|
||||||
</tr>
|
|
||||||
<?php }?>
|
|
||||||
|
|
||||||
</tbody>
|
|
||||||
<?php }} ?>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<br />
|
|
||||||
|
|
||||||
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']=="admin"||$_smarty_tpl->getVariable('Usr')->value['type']=="centralizador"||$_smarty_tpl->getVariable('Usr')->value['type']=="almacen"){?>
|
|
||||||
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" border="0">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th colspan="3" id="alinear"><b>TOTAL GENERAL</b></th>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th style="text-align:left;padding-left:100px;"><b>Tipo de Pago</b></th>
|
|
||||||
<th id="alinaer"><b><div style="text-align:center">Número de Productos <br />Vendidos</div></b></th>
|
|
||||||
<th id="alinaer"><b><div style="text-align:center">Total de venta</div></b></th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['it2'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['k2'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('formasPago')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
||||||
if (count($_from) > 0){
|
|
||||||
foreach ($_from as $_smarty_tpl->tpl_vars['it2']->key => $_smarty_tpl->tpl_vars['it2']->value){
|
|
||||||
$_smarty_tpl->tpl_vars['k2']->value = $_smarty_tpl->tpl_vars['it2']->key;
|
|
||||||
?>
|
|
||||||
<tr>
|
|
||||||
<td style="text-align:left;padding-left:100px;"><?php echo urldecode((utf8_encode($_smarty_tpl->getVariable('it2')->value['nombre'])));?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:center"><?php echo $_smarty_tpl->getVariable('it2')->value['totalPrendas'];?>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:right;padding-right:100px;">$<?php echo number_format($_smarty_tpl->getVariable('it2')->value['total'],2,'.',',');?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<?php }} ?>
|
|
||||||
<?php if ($_smarty_tpl->getVariable('idMetodoPago')->value>0){?>
|
|
||||||
<tr style="background:#F4F5F6">
|
|
||||||
<td style="text-align:left;padding-left:100px;"><b>Total de Ventas</b></td>
|
|
||||||
<td style="text-align:center;"><b><?php echo $_smarty_tpl->getVariable('totales')->value['prendas'];?>
|
|
||||||
</b></td></td>
|
|
||||||
<td style="text-align:right;padding-right:100px;"><b>$<?php echo number_format($_smarty_tpl->getVariable('totales')->value['total'],2,'.',',');?>
|
|
||||||
</b></td>
|
|
||||||
</tr>
|
|
||||||
<?php }else{ ?>
|
|
||||||
|
|
||||||
<tr style="background:#F4F5F6">
|
|
||||||
<td style="text-align:left;padding-left:100px;"><b>Total de Ventas</b></td>
|
|
||||||
<td style="text-align:center;"><b><?php echo $_smarty_tpl->getVariable('totales')->value['prendas'];?>
|
|
||||||
</b></td></td>
|
|
||||||
<td style="text-align:right;padding-right:100px;"><b>$<?php echo number_format($_smarty_tpl->getVariable('totales')->value['total'],2,'.',',');?>
|
|
||||||
</b></td>
|
|
||||||
</tr>
|
|
||||||
<?php }?>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
<?php }?>
|
|
||||||
|
|
||||||
@@ -1,49 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-04-30 12:17:48
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/boxes/export-factura.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:19284591355361303c292b35-03379903%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'3808a30e70411773d216c68bde9360989d24291b' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/boxes/export-factura.tpl',
|
|
||||||
1 => 1396396276,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '19284591355361303c292b35-03379903',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<div>
|
|
||||||
El comprobante ha sido generada exitosamente, ahora puedes proceder a guardar los archivos.
|
|
||||||
<br />No te preocupes, estos archivos los podras volver a ver en "Consultar Comprobantes"
|
|
||||||
<br /><br />
|
|
||||||
|
|
||||||
<?php if ($_smarty_tpl->getVariable('info')->value['version']=="v3"||$_smarty_tpl->getVariable('info')->value['version']=="construc"){?>
|
|
||||||
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/util/download.php?path=<?php echo $_smarty_tpl->getVariable('comprobante')->value['path'];?>
|
|
||||||
&secPath=xml&filename=SIGN_<?php echo $_smarty_tpl->getVariable('comprobante')->value['xml'];?>
|
|
||||||
.xml&contentType=text/xml" target="_blank" title="Descargar XML">
|
|
||||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/xml_icon.png" height="100" width="100" border="0"/>
|
|
||||||
</a>
|
|
||||||
<?php }elseif($_smarty_tpl->getVariable('info')->value['version']=="2"){?>
|
|
||||||
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/util/download.php?path=<?php echo $_smarty_tpl->getVariable('comprobante')->value['path'];?>
|
|
||||||
&secPath=xml&filename=<?php echo $_smarty_tpl->getVariable('comprobante')->value['xml'];?>
|
|
||||||
.xml&contentType=text/xml" target="_blank" title="Descargar XML">
|
|
||||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/xml_icon.png" height="100" width="100" border="0"/></a>
|
|
||||||
<?php }?>
|
|
||||||
|
|
||||||
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/facturacion-pdf/ver/<?php echo $_smarty_tpl->getVariable('comprobante')->value['comprobanteId'];?>
|
|
||||||
" target="_blank" title="Descargar PDF">
|
|
||||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/pdf_icon.png" height="100" width="100" border="0"/></a>
|
|
||||||
<br /><br />
|
|
||||||
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/facturacion-nueva">Crear Nuevo Comprobante</a>
|
|
||||||
</div>
|
|
||||||
@@ -1,54 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-05-02 13:18:22
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/envios-tienda-prods2.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:8324603675363e16e24e770-42491791%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'392e8c6f8e881b6d5223f277d7e605c4ecbcf458' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/envios-tienda-prods2.tpl',
|
|
||||||
1 => 1377967519,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '8324603675363e16e24e770-42491791',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<hr />
|
|
||||||
<table width="600" cellpadding="0" cellspacing="0" border="1">
|
|
||||||
<tr>
|
|
||||||
<td width="150" align="center" height="30"><b>Código Barra</b></td>
|
|
||||||
<td width="" align="center" height="30"><b>Producto</b></td>
|
|
||||||
<td width="100" align="center"><b>Cantidad</b></td>
|
|
||||||
<td width="30" align="center"> </td>
|
|
||||||
</tr>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['key'] = 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){
|
|
||||||
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
|
|
||||||
?>
|
|
||||||
<tr>
|
|
||||||
<td align="center" height="30"><?php echo $_smarty_tpl->getVariable('item')->value['codigoBarra'];?>
|
|
||||||
</td>
|
|
||||||
<td align="left" height="30"><?php echo $_smarty_tpl->getVariable('item')->value['nombre'];?>
|
|
||||||
</td>
|
|
||||||
<td align="center"><?php echo $_smarty_tpl->getVariable('item')->value['cantidad'];?>
|
|
||||||
</td>
|
|
||||||
<td align="center">
|
|
||||||
<a href="javascript:void(0)" onclick="DeleteProducto(<?php echo $_smarty_tpl->getVariable('key')->value;?>
|
|
||||||
)" title="Eliminar">
|
|
||||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/icons/cancel2.png" border="0" />
|
|
||||||
</a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<?php }} else { ?>
|
|
||||||
<tr>
|
|
||||||
<td colspan="4" height="30" align="center">Ningún registro encontrado.</td>
|
|
||||||
</tr>
|
|
||||||
<?php } ?>
|
|
||||||
</table>
|
|
||||||
@@ -1,48 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-04-30 10:39:53
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/boxes/agregar-nota-popup.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:309219696536119491a0ea0-41805108%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'39bc7886235a709fd4faff39599f9961f766841b' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/boxes/agregar-nota-popup.tpl',
|
|
||||||
1 => 1379545296,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '309219696536119491a0ea0-41805108',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<div class="popupheader" style="z-index:70">
|
|
||||||
<div id="fviewmenu" style="z-index:70">
|
|
||||||
<div id="fviewclose"><span style="color:#CCC" id="closePopUpDiv">
|
|
||||||
<a href="javascript:void(0)">Close<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/b_disn.png" border="0" alt="close" /></a></span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="ftitl">
|
|
||||||
<div class="flabel">Agregar Nota de Crédito :: Pedido No. <?php echo $_smarty_tpl->getVariable('info')->value['noPedido'];?>
|
|
||||||
</div>
|
|
||||||
<div id="vtitl">
|
|
||||||
<span title="Titulo">Agregar Nota de Crédito :: Pedido No. <?php echo $_smarty_tpl->getVariable('info')->value['noPedido'];?>
|
|
||||||
</span>
|
|
||||||
<br /><br />
|
|
||||||
Saldo: $<?php echo number_format($_smarty_tpl->getVariable('info')->value['saldo'],2,'.',',');?>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div id="draganddrop" style="position:absolute;top:45px;left:640px">
|
|
||||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
||||||
/images/draganddrop.png" border="0" alt="mueve" />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="wrapper">
|
|
||||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/forms/agregar-nota.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>
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-05-15 09:37:48
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/items/proveedores-header.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:4285193925374d13c6d2889-81531129%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'39fa32cac0e2a6f2c1114072c5f352873110468e' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/items/proveedores-header.tpl',
|
|
||||||
1 => 1375965391,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '4285193925374d13c6d2889-81531129',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<div class="clear"></div>
|
|
||||||
<!--THIS IS A WIDE PORTLET-->
|
|
||||||
<div class="portlet">
|
|
||||||
|
|
||||||
<div class="portlet-content nopadding">
|
|
||||||
<form action="" method="post">
|
|
||||||
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" summary="Employee Pay Sheet">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th width="80" scope="col"><div align="center">No. Prov.</div></th>
|
|
||||||
<th width="180" scope="col"><div align="center">RFC</div></th>
|
|
||||||
<th width="" scope="col"><div align="center">Nombre</div></th>
|
|
||||||
<th width="150" scope="col"><div align="center">Teléfono</div></th>
|
|
||||||
<th width="100" scope="col"><div align="center">Acciones</div></th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-09-10 09:51:47
|
|
||||||
compiled from "/var/www/html/templates/lists/enumProdSubcat3.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:92493175410658389c6d9-50745012%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'3a9a01ac57548596448c9bf7ef4636ac06fae878' =>
|
|
||||||
array (
|
|
||||||
0 => '/var/www/html/templates/lists/enumProdSubcat3.tpl',
|
|
||||||
1 => 1410130458,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '92493175410658389c6d9-50745012',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<select name="prodSubcatId" id="prodSubcatId" class="smallInput" style="width:200px">
|
|
||||||
<option value="">Todas</option>
|
|
||||||
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
|
|
||||||
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
|
|
||||||
$_from = $_smarty_tpl->getVariable('subcategorias')->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){
|
|
||||||
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
|
|
||||||
?>
|
|
||||||
<option value="<?php echo $_smarty_tpl->getVariable('item')->value['prodSubcatId'];?>
|
|
||||||
"><?php echo $_smarty_tpl->getVariable('item')->value['nombre'];?>
|
|
||||||
</option>
|
|
||||||
<?php }} ?>
|
|
||||||
</select>
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
<?php /* Smarty version Smarty3-b7, created on 2014-04-30 08:22:21
|
|
||||||
compiled from "/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/reportes-vendedor.tpl" */ ?>
|
|
||||||
<?php /*%%SmartyHeaderCode:21417506465360f90d1c5243-53672875%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
||||||
$_smarty_tpl->decodeProperties(array (
|
|
||||||
'file_dependency' =>
|
|
||||||
array (
|
|
||||||
'3de32f4c73909ad90ca162d78420d8906d230415' =>
|
|
||||||
array (
|
|
||||||
0 => '/home/novomoda/domains/novomoda.com.mx/public_html/sistema/templates/lists/reportes-vendedor.tpl',
|
|
||||||
1 => 1380898040,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'nocache_hash' => '21417506465360f90d1c5243-53672875',
|
|
||||||
'function' =>
|
|
||||||
array (
|
|
||||||
),
|
|
||||||
'has_nocache_code' => false,
|
|
||||||
)); /*/%%SmartyHeaderCode%%*/?>
|
|
||||||
<table width="100%">
|
|
||||||
<thead>
|
|
||||||
<th>Periodo:</th>
|
|
||||||
</thead>
|
|
||||||
<tbody style="text-align:center">
|
|
||||||
<td><?php echo $_smarty_tpl->getVariable('fi')->value;?>
|
|
||||||
<b>a</b> <?php echo $_smarty_tpl->getVariable('ff')->value;?>
|
|
||||||
</td>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
<table width="100%" cellpadding="0" cellspacing="0" id="report" border="1">
|
|
||||||
<tbody>
|
|
||||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/items/reportes-vendedor-base.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);?>
|
|
||||||
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user