worker-automate-hub 0.4.330__py3-none-any.whl → 0.4.332__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- worker_automate_hub/utils/util.py +16 -17
- {worker_automate_hub-0.4.330.dist-info → worker_automate_hub-0.4.332.dist-info}/METADATA +1 -1
- {worker_automate_hub-0.4.330.dist-info → worker_automate_hub-0.4.332.dist-info}/RECORD +5 -5
- {worker_automate_hub-0.4.330.dist-info → worker_automate_hub-0.4.332.dist-info}/WHEEL +0 -0
- {worker_automate_hub-0.4.330.dist-info → worker_automate_hub-0.4.332.dist-info}/entry_points.txt +0 -0
@@ -2332,29 +2332,21 @@ async def error_after_xml_imported() -> RpaRetornoProcessoDTO:
|
|
2332
2332
|
|
2333
2333
|
if "Mensagem do Banco de Dados" in control_text:
|
2334
2334
|
capturar_proxima_mensagem = True
|
2335
|
-
|
2336
|
-
elif
|
2335
|
+
|
2336
|
+
elif capturar_proxima_mensagem:
|
2337
2337
|
control_text = control_text.replace("\n", "").replace("\r","")
|
2338
2338
|
return RpaRetornoProcessoDTO(
|
2339
2339
|
sucesso=False,
|
2340
|
-
retorno=f"
|
2341
|
-
status=RpaHistoricoStatusEnum.
|
2340
|
+
retorno=f"Erro do banco de dados: {control_text} \n",
|
2341
|
+
status=RpaHistoricoStatusEnum.Falha,
|
2342
2342
|
)
|
2343
2343
|
|
2344
|
-
elif
|
2345
|
-
|
2346
|
-
return RpaRetornoProcessoDTO(
|
2344
|
+
elif "XML já foi importado anteriormente" in control_text:
|
2345
|
+
return RpaRetornoProcessoDTO(
|
2347
2346
|
sucesso=False,
|
2348
|
-
retorno=f"Nota descartada
|
2347
|
+
retorno=f"Nota descartada {control_text}... \n",
|
2349
2348
|
status=RpaHistoricoStatusEnum.Descartado,
|
2350
2349
|
)
|
2351
|
-
else:
|
2352
|
-
control_text = control_text.replace("\n", "").replace("\r","")
|
2353
|
-
return RpaRetornoProcessoDTO(
|
2354
|
-
sucesso=False,
|
2355
|
-
retorno=f"Erro do banco de dados: {control_text}",
|
2356
|
-
status=RpaHistoricoStatusEnum.Falha,
|
2357
|
-
)
|
2358
2350
|
|
2359
2351
|
else:
|
2360
2352
|
control_text = control_text.replace("\n", "").replace("\r","")
|
@@ -2378,10 +2370,17 @@ async def error_before_persist_record() -> RpaRetornoProcessoDTO:
|
|
2378
2370
|
for control in all_controls_from_error:
|
2379
2371
|
control_text = control.window_text()
|
2380
2372
|
|
2381
|
-
if
|
2373
|
+
if "que a data de entrada" in control_text:
|
2374
|
+
return RpaRetornoProcessoDTO(
|
2375
|
+
sucesso=False,
|
2376
|
+
retorno=f"Erro ao incluir registro, As datas das parcelas não podem ser menores que a data de entrada da nota: {control_text} \n",
|
2377
|
+
status=RpaHistoricoStatusEnum.Falha,
|
2378
|
+
)
|
2379
|
+
|
2380
|
+
elif capturar_proxima_mensagem:
|
2382
2381
|
return RpaRetornoProcessoDTO(
|
2383
2382
|
sucesso=False,
|
2384
|
-
retorno=f"
|
2383
|
+
retorno=f"Erro ao incluir registro: {control_text} \n",
|
2385
2384
|
status=RpaHistoricoStatusEnum.Falha,
|
2386
2385
|
)
|
2387
2386
|
except:
|
@@ -64,10 +64,10 @@ worker_automate_hub/utils/get_creds_gworkspace.py,sha256=ZJ0IIEjM4IXIV9rwfbOZ1V1
|
|
64
64
|
worker_automate_hub/utils/logger.py,sha256=FYV9fg0_RAYJF_ZOCJEbqQAiCXlXk2gMpvUU1rzT_xs,671
|
65
65
|
worker_automate_hub/utils/toast.py,sha256=xPHc5r5uOxB_cZlCzm13Kt2qSKLLFZALncU6Qg3Ft68,1162
|
66
66
|
worker_automate_hub/utils/updater.py,sha256=0LR6Xpe3HZk-xu-trH7vKRhP5FXp0nhp1qxtygE2Jps,7280
|
67
|
-
worker_automate_hub/utils/util.py,sha256=
|
67
|
+
worker_automate_hub/utils/util.py,sha256=_3_aEkbSKJuhRgePepDpoouB67XZj6rhawyTA8osFfI,118478
|
68
68
|
worker_automate_hub/utils/utils_nfe_entrada.py,sha256=VowHS7r3wRv3f-KAyJAqZLhe7Dkwj8CVaWGNNAQP9YY,27389
|
69
69
|
worker_automate_hub/worker.py,sha256=vkl_x7gSo6nQlhSBLwRkGx6LEONnYptfBaGxOy1ZLsE,4634
|
70
|
-
worker_automate_hub-0.4.
|
71
|
-
worker_automate_hub-0.4.
|
72
|
-
worker_automate_hub-0.4.
|
73
|
-
worker_automate_hub-0.4.
|
70
|
+
worker_automate_hub-0.4.332.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
|
71
|
+
worker_automate_hub-0.4.332.dist-info/METADATA,sha256=0ebUooItl0a_R-4XfBcVPE6AyE6jvpiQArLjkqpR2OQ,2884
|
72
|
+
worker_automate_hub-0.4.332.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
73
|
+
worker_automate_hub-0.4.332.dist-info/RECORD,,
|
File without changes
|
{worker_automate_hub-0.4.330.dist-info → worker_automate_hub-0.4.332.dist-info}/entry_points.txt
RENAMED
File without changes
|