worker-automate-hub 0.5.40__py3-none-any.whl → 0.5.42__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -340,6 +340,17 @@ async def entrada_de_notas_505(task: RpaProcessoEntradaDTO) -> RpaRetornoProcess
340
340
  await incluir_registro()
341
341
 
342
342
  await worker_sleep(6)
343
+
344
+ # Verificando a existencia de erros
345
+ erro_pop_up = await is_window_open("Erro")
346
+ if erro_pop_up["IsOpened"] == True:
347
+ error_work = await error_after_xml_imported()
348
+ return RpaRetornoProcessoDTO(
349
+ sucesso=error_work.sucesso,
350
+ retorno=error_work.retorno,
351
+ status=error_work.status,
352
+ )
353
+
343
354
  nf_imported = await check_nota_importada(nota.get("nfe"))
344
355
  if nf_imported.sucesso == True:
345
356
  await worker_sleep(3)
@@ -363,11 +374,11 @@ async def entrada_de_notas_505(task: RpaProcessoEntradaDTO) -> RpaRetornoProcess
363
374
  )
364
375
  else:
365
376
  console.print("Erro ao lançar nota", style="bold red")
377
+ error_work = await error_after_xml_imported()
366
378
  return RpaRetornoProcessoDTO(
367
- sucesso=False,
368
- retorno=f"Erro ao lançar nota, erro: {nf_imported.retorno}",
369
- status=RpaHistoricoStatusEnum.Falha,
370
- tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)]
379
+ sucesso=error_work.sucesso,
380
+ retorno=error_work.retorno,
381
+ status=error_work.status,
371
382
  )
372
383
 
373
384
  except Exception as ex:
@@ -3375,7 +3375,7 @@ async def ultimo_dia_util_do_mes(data_atual):
3375
3375
 
3376
3376
  async def e_ultimo_dia_util():
3377
3377
  hoje = datetime.today()
3378
- ultimo_dia_util = ultimo_dia_util_do_mes(hoje)
3378
+ ultimo_dia_util = await ultimo_dia_util_do_mes(hoje)
3379
3379
 
3380
3380
  return hoje.date() == ultimo_dia_util.date()
3381
3381
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: worker-automate-hub
3
- Version: 0.5.40
3
+ Version: 0.5.42
4
4
  Summary: Worker Automate HUB é uma aplicação para automatizar rotinas de RPA nos ambientes Argenta.
5
5
  Author: Joel Paim
6
6
  Requires-Python: >=3.12,<4.0
@@ -53,7 +53,7 @@ worker_automate_hub/tasks/jobs/entrada_de_notas_34.py,sha256=ZxW4ueC4WsTbkx4S47i
53
53
  worker_automate_hub/tasks/jobs/entrada_de_notas_36.py,sha256=Az4XFUDK6NP428bk3q__zioJQX8OoLIcgrAz1-Uv9Kg,23180
54
54
  worker_automate_hub/tasks/jobs/entrada_de_notas_39.py,sha256=xKOJvPqEOm6CwJ1QtwNqmtmRayT70fOJjlJh9D4BtOw,35951
55
55
  worker_automate_hub/tasks/jobs/entrada_de_notas_500.py,sha256=8RLB2G_NphDr802c1Swk1e-k2ObaxeEQlyuxVhP9iUk,33990
56
- worker_automate_hub/tasks/jobs/entrada_de_notas_505.py,sha256=ZUEuOBbmkWESCsIa32GgavMlV6VccdWcXNzX7NayXDw,15226
56
+ worker_automate_hub/tasks/jobs/entrada_de_notas_505.py,sha256=MBS4YiwLjA-sM0xaDAdZYuO-Uh9N2xsQGwSaXa1H-ms,15605
57
57
  worker_automate_hub/tasks/jobs/entrada_de_notas_7139.py,sha256=SFYM1xNJVBt-GnY5Zl1xsrsGdcsb-aUZcUjF2VkNEiE,15927
58
58
  worker_automate_hub/tasks/jobs/entrada_de_notas_9.py,sha256=vUj25yHxkCNhpyOU5Vk81gsYcTTH1TJ3yn-b8N00JfQ,52857
59
59
  worker_automate_hub/tasks/jobs/exemplo_processo.py,sha256=nV0iLoip2FH2-FhLmhX3nPqsfl_MPufZ3E5Q5krJvdc,3544
@@ -73,10 +73,10 @@ worker_automate_hub/utils/get_creds_gworkspace.py,sha256=ZJ0IIEjM4IXIV9rwfbOZ1V1
73
73
  worker_automate_hub/utils/logger.py,sha256=FYV9fg0_RAYJF_ZOCJEbqQAiCXlXk2gMpvUU1rzT_xs,671
74
74
  worker_automate_hub/utils/toast.py,sha256=xPHc5r5uOxB_cZlCzm13Kt2qSKLLFZALncU6Qg3Ft68,1162
75
75
  worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbVlwDl49Y,7972
76
- worker_automate_hub/utils/util.py,sha256=aoKnUcE7FvNH9-kXjs3okDva2ytdJDdMLt4lPz8WC3s,154900
76
+ worker_automate_hub/utils/util.py,sha256=tRVO_0kuWFTRiJBBYgra0cXrtURdnY1n4YnaQaRzk8w,154906
77
77
  worker_automate_hub/utils/utils_nfe_entrada.py,sha256=ZTb1XoKWZY7coXt06iIE8KI56N6AguhZv5DEPX2qUu8,31862
78
78
  worker_automate_hub/worker.py,sha256=CT-poyP1ZYvubArYsnnNd9oJ53SPaDwgr6p6keS3nI4,6248
79
- worker_automate_hub-0.5.40.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
80
- worker_automate_hub-0.5.40.dist-info/METADATA,sha256=HooOmi-pOGB4eOz1FM6AckI74TLpG2tdp59mgK6AVsg,2894
81
- worker_automate_hub-0.5.40.dist-info/WHEEL,sha256=RaoafKOydTQ7I_I3JTrPCg6kUmTgtm4BornzOqyEfJ8,88
82
- worker_automate_hub-0.5.40.dist-info/RECORD,,
79
+ worker_automate_hub-0.5.42.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
80
+ worker_automate_hub-0.5.42.dist-info/METADATA,sha256=aVFyozuCKY5m5WzqsPAi4mJ4MzlPoTcSAyWmaFUIqeE,2894
81
+ worker_automate_hub-0.5.42.dist-info/WHEEL,sha256=RaoafKOydTQ7I_I3JTrPCg6kUmTgtm4BornzOqyEfJ8,88
82
+ worker_automate_hub-0.5.42.dist-info/RECORD,,