worker-automate-hub 0.5.26__py3-none-any.whl → 0.5.27__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- worker_automate_hub/tasks/jobs/sped_fiscal.py +27 -17
- {worker_automate_hub-0.5.26.dist-info → worker_automate_hub-0.5.27.dist-info}/METADATA +1 -1
- {worker_automate_hub-0.5.26.dist-info → worker_automate_hub-0.5.27.dist-info}/RECORD +5 -5
- {worker_automate_hub-0.5.26.dist-info → worker_automate_hub-0.5.27.dist-info}/WHEEL +0 -0
- {worker_automate_hub-0.5.26.dist-info → worker_automate_hub-0.5.27.dist-info}/entry_points.txt +0 -0
@@ -396,26 +396,36 @@ async def sped_fiscal(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
|
|
396
396
|
|
397
397
|
|
398
398
|
await worker_sleep(12)
|
399
|
-
console.print(f"Verificando sem possui o pop-up de Registro de Entrada... \n")
|
400
399
|
try:
|
401
|
-
app = Application().connect(
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
400
|
+
app = Application().connect(class_name="TMsgBox")
|
401
|
+
if "Registro de Entrada" in str(app.windows()):
|
402
|
+
console.print(f"Verificando sem possui o pop-up de Registro de Entrada... \n")
|
403
|
+
return RpaRetornoProcessoDTO(
|
404
|
+
sucesso=False,
|
405
|
+
retorno=f"Erro: Livro Fiscal de Registro de Entrada não foi gerado ou não está confirmado para a empresa.",
|
406
|
+
status=RpaHistoricoStatusEnum.Falha,
|
407
|
+
tags=[RpaTagDTO(descricao=RpaTagEnum.Negocio)]
|
408
|
+
)
|
409
|
+
elif "Registro de Inventario" in str(app.windows()):
|
410
|
+
return RpaRetornoProcessoDTO(
|
411
|
+
sucesso=False,
|
412
|
+
retorno=f"Erro: POP-Up Registro de Inventario não foi gerado ou não esta confirmado para a empresa",
|
413
|
+
status=RpaHistoricoStatusEnum.Falha,
|
414
|
+
tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)]
|
415
|
+
)
|
416
|
+
|
417
|
+
elif "Apuração de ICMS" in str(app.windows()):
|
418
|
+
return RpaRetornoProcessoDTO(
|
419
|
+
sucesso=False,
|
420
|
+
retorno=f"Erro: POP-Up Apuração de ICMS, Livro de Apuração de ICMS não foi gerado no período na empresa",
|
421
|
+
status=RpaHistoricoStatusEnum.Falha,
|
422
|
+
tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)]
|
423
|
+
)
|
424
|
+
else:
|
425
|
+
console.print(f"POP UP: {str(app.windows())}. Continuando...\n")
|
408
426
|
except Exception as e:
|
409
|
-
console.print(f"
|
427
|
+
console.print(f"Erro ao verificar janelas: {e}. Continuando...\n")
|
410
428
|
|
411
|
-
registro_inventario_pop_up = await is_window_open("Registro de Inventario")
|
412
|
-
if registro_inventario_pop_up["IsOpened"] == True:
|
413
|
-
return RpaRetornoProcessoDTO(
|
414
|
-
sucesso=False,
|
415
|
-
retorno=f"Erro: POP-Up Registro de Inventario não foi gerado ou não esta confirmado para a empresa",
|
416
|
-
status=RpaHistoricoStatusEnum.Falha,
|
417
|
-
tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)]
|
418
|
-
)
|
419
429
|
|
420
430
|
await worker_sleep(5)
|
421
431
|
warning_pop_up = await is_window_open("Aviso")
|
@@ -62,7 +62,7 @@ worker_automate_hub/tasks/jobs/fidc_remessa_cobranca_cnab240.py,sha256=QBGm6eS5J
|
|
62
62
|
worker_automate_hub/tasks/jobs/login_emsys.py,sha256=scdKsseFOL-7UQ5D743VaZZzWBKaEfq0XzYNmROUOgE,5703
|
63
63
|
worker_automate_hub/tasks/jobs/login_emsys_versao_especifica.py,sha256=cGj98H7g_1HpKsFAdrpVdFF14wd7Qp2PXgwd6ww-qSw,5642
|
64
64
|
worker_automate_hub/tasks/jobs/playground.py,sha256=7vWDg9DwToHwGJ6_XOa8TQ6LmfRV5Qz2TaOV3q3P9sA,1918
|
65
|
-
worker_automate_hub/tasks/jobs/sped_fiscal.py,sha256=
|
65
|
+
worker_automate_hub/tasks/jobs/sped_fiscal.py,sha256=uHA5zQmAqqb-L_jdbBKiqINV4vXI58CL3wAI-2Xt_oQ,28938
|
66
66
|
worker_automate_hub/tasks/jobs/transferencias.py,sha256=i3fCanHZ_pSwPW03THpQPqlzrDjbV4QbKkXpUqV3dxM,39272
|
67
67
|
worker_automate_hub/tasks/task_definitions.py,sha256=TLJKIyi8IgZL_3EqVzER74kT3nfFdpSMbUwnnEkLpZk,4786
|
68
68
|
worker_automate_hub/tasks/task_executor.py,sha256=DUN2-Bi8Zxv0J_QUoV1vt7KgfbmYtixuA6i3Uzt67bA,5256
|
@@ -75,7 +75,7 @@ worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbV
|
|
75
75
|
worker_automate_hub/utils/util.py,sha256=Eyy0mLLt_xd_zVXWoHAb-GK0PU1xZdWPvh-IndajxDk,128815
|
76
76
|
worker_automate_hub/utils/utils_nfe_entrada.py,sha256=3keuXhgNkEMZhLX9gGzck41SAwJqIPlwWSo_WSOs2HI,30980
|
77
77
|
worker_automate_hub/worker.py,sha256=CT-poyP1ZYvubArYsnnNd9oJ53SPaDwgr6p6keS3nI4,6248
|
78
|
-
worker_automate_hub-0.5.
|
79
|
-
worker_automate_hub-0.5.
|
80
|
-
worker_automate_hub-0.5.
|
81
|
-
worker_automate_hub-0.5.
|
78
|
+
worker_automate_hub-0.5.27.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
|
79
|
+
worker_automate_hub-0.5.27.dist-info/METADATA,sha256=BQFWIsxr4ZHg3rsOsZAytYvcGvg9E0hwnngn87eYZds,2894
|
80
|
+
worker_automate_hub-0.5.27.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
81
|
+
worker_automate_hub-0.5.27.dist-info/RECORD,,
|
File without changes
|
{worker_automate_hub-0.5.26.dist-info → worker_automate_hub-0.5.27.dist-info}/entry_points.txt
RENAMED
File without changes
|