forked from elmau/empresa-libre
Fix get version in proforma
This commit is contained in:
commit
de06f706a6
|
@ -1140,7 +1140,8 @@ class LIBO(object):
|
||||||
return
|
return
|
||||||
|
|
||||||
def _others_values(self, data):
|
def _others_values(self, data):
|
||||||
version = data['version']
|
version = data.get('version', '')
|
||||||
|
if version:
|
||||||
self._set_cell('{version}', version)
|
self._set_cell('{version}', version)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
|
@ -10497,6 +10497,32 @@ def _migrate_cert(rfc):
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
|
def _test(rfc):
|
||||||
|
if not rfc:
|
||||||
|
rfc = input('Introduce el RFC: ').strip().upper()
|
||||||
|
|
||||||
|
if not rfc:
|
||||||
|
msg = 'El RFC es requerido'
|
||||||
|
log.error(msg)
|
||||||
|
return
|
||||||
|
|
||||||
|
args = util.get_con(rfc)
|
||||||
|
if not args:
|
||||||
|
return
|
||||||
|
|
||||||
|
conectar(args)
|
||||||
|
log.info('Test con...')
|
||||||
|
|
||||||
|
query = Socios.select(Socios.id, Socios.nombre, Socios.rfc).where(Socios.nombre.contains('Lopez'))
|
||||||
|
print(query)
|
||||||
|
|
||||||
|
desconectar()
|
||||||
|
log.info('End test...')
|
||||||
|
return
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def _process_command_line_arguments():
|
def _process_command_line_arguments():
|
||||||
parser = argparse.ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
description='Empresa Libre')
|
description='Empresa Libre')
|
||||||
|
@ -10569,6 +10595,8 @@ def main(args):
|
||||||
_migrate_cert(args.rfc)
|
_migrate_cert(args.rfc)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
# ~ _test(args.rfc)
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue