Fix - Mostrar variable al facturar
This commit is contained in:
parent
67584b2f67
commit
42d041c715
|
@ -1666,10 +1666,10 @@ class ImportFacturaLibreGambas(object):
|
||||||
data = {}
|
data = {}
|
||||||
tables = (
|
tables = (
|
||||||
('receptores', 'Socios'),
|
('receptores', 'Socios'),
|
||||||
('cfdifacturas', 'Facturas'),
|
# ~ ('cfdifacturas', 'Facturas'),
|
||||||
('categorias', 'Categorias'),
|
# ~ ('categorias', 'Categorias'),
|
||||||
('productos', 'Productos'),
|
# ~ ('productos', 'Productos'),
|
||||||
('tickets', 'Tickets'),
|
# ~ ('tickets', 'Tickets'),
|
||||||
)
|
)
|
||||||
for source, target in tables:
|
for source, target in tables:
|
||||||
data[target] = self._get_table(source)
|
data[target] = self._get_table(source)
|
||||||
|
@ -2232,7 +2232,6 @@ class ImportFacturaLibre(object):
|
||||||
if rfc == 'CPE920117QAA':
|
if rfc == 'CPE920117QAA':
|
||||||
nombre = 'COMERCIALIZADORA PECOLLA SA DE CV'
|
nombre = 'COMERCIALIZADORA PECOLLA SA DE CV'
|
||||||
elif rfc == 'SMA850101TQ4':
|
elif rfc == 'SMA850101TQ4':
|
||||||
# ~ 'SMA850101TQ4', 'secretaria_de_marina_-arm_baja_california_po-162'
|
|
||||||
nombre = 'SECRETARIA DE MARINA ARMADA DE MEXICO DRAGA BAHIA CHAMELA ADR-05'
|
nombre = 'SECRETARIA DE MARINA ARMADA DE MEXICO DRAGA BAHIA CHAMELA ADR-05'
|
||||||
|
|
||||||
tipo_persona = 1
|
tipo_persona = 1
|
||||||
|
|
|
@ -4972,10 +4972,10 @@ def _importar_factura_libre_gambas(conexion):
|
||||||
data = app.import_data()
|
data = app.import_data()
|
||||||
|
|
||||||
_importar_socios(data['Socios'])
|
_importar_socios(data['Socios'])
|
||||||
_importar_facturas(data['Facturas'])
|
# ~ _importar_facturas(data['Facturas'])
|
||||||
_importar_categorias(data['Categorias'])
|
# ~ _importar_categorias(data['Categorias'])
|
||||||
_importar_productos_gambas(data['Productos'])
|
# ~ _importar_productos_gambas(data['Productos'])
|
||||||
_import_tickets(data['Tickets'])
|
# ~ _import_tickets(data['Tickets'])
|
||||||
|
|
||||||
log.info('Importación terminada...')
|
log.info('Importación terminada...')
|
||||||
return
|
return
|
||||||
|
|
|
@ -550,7 +550,7 @@ function cmd_timbrar_click(id, e, node){
|
||||||
if(!validate_invoice(values)){
|
if(!validate_invoice(values)){
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
showvar(values)
|
//~ showvar(values)
|
||||||
query = table_relaciones.chain().data()
|
query = table_relaciones.chain().data()
|
||||||
msg = '¿Todos los datos son correctos?<BR><BR>'
|
msg = '¿Todos los datos son correctos?<BR><BR>'
|
||||||
if(query.length > 0){
|
if(query.length > 0){
|
||||||
|
|
Loading…
Reference in New Issue