Skip to content

Commit c54ecdb

Browse files
committed
updated rece1.py with required changes
Signed-off-by: UTKARSH KUMAR <[email protected]>
1 parent 9544fb2 commit c54ecdb

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

rece1.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ def main():
448448
print(" /dbf: lee y almacena la información en tablas DBF")
449449
print()
450450
print("Ver rece.ini para parámetros de configuración (URL, certificados, etc.)")
451-
# sys.exit(0)
451+
return
452452

453453
if "/debug" in sys.argv:
454454
DEBUG = True
@@ -584,7 +584,7 @@ def main():
584584
claves, campos = definir_campos(formato)
585585
for campo in campos:
586586
print(" * Campo: %s" % (campo,))
587-
# sys.exit(0)
587+
return
588588

589589
# obteniendo el TA
590590
from .wsaa import WSAA
@@ -747,7 +747,7 @@ def main():
747747
],
748748
open(salida, "w"),
749749
)
750-
#sys.exit(0)
750+
return
751751

752752
if "/get" in sys.argv:
753753
print("Recuperar comprobante:")
@@ -802,7 +802,7 @@ def main():
802802
)
803803
escribir_facturas([factura], open(salida, "w"))
804804

805-
#sys.exit(0)
805+
return
806806

807807
if "/solicitarcaea" in sys.argv:
808808
i = sys.argv.index("/solicitarcaea")
@@ -852,7 +852,7 @@ def main():
852852
open(salida, "w"),
853853
)
854854

855-
#sys.exit(0)
855+
return
856856

857857
if "/consultarcaea" in sys.argv:
858858
i = sys.argv.index("/consultarcaea")
@@ -881,13 +881,13 @@ def main():
881881
print("FchVigHasta:", ws.FchVigHasta)
882882
print("FchTopeInf:", ws.FchTopeInf)
883883
print("FchProceso:", ws.FchProceso)
884-
#sys.exit(0)
884+
return
885885

886886
if "/ptosventa" in sys.argv:
887887

888888
print("=== Puntos de Venta ===")
889889
print(u"\n".join(ws.ParamGetPtosVenta()))
890-
#sys.exit(0)
890+
return
891891

892892
if "/informarcaeanoutilizadoptovta" in sys.argv:
893893
i = sys.argv.index("/informarcaeanoutilizadoptovta")
@@ -906,7 +906,7 @@ def main():
906906
print("Errores:")
907907
for error in ws.Errores:
908908
print(error)
909-
#sys.exit(0)
909+
return
910910

911911
ws.LanzarExcepciones = False
912912
f_entrada = f_salida = None
@@ -927,7 +927,7 @@ def main():
927927
f_salida.close()
928928
if XML:
929929
depurar_xml(ws.client, RUTA_XML)
930-
#sys.exit(0)
930+
return
931931

932932
except SoapFault as e:
933933
print("SoapFault:", e.faultcode, e.faultstring.encode("ascii", "ignore"))

0 commit comments

Comments
 (0)