worker-automate-hub 0.5.75__py3-none-any.whl → 0.5.77__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -601,7 +601,7 @@ async def devolucao_prazo_a_faturar(task: RpaProcessoEntradaDTO) -> RpaRetornoPr
601
601
  send_keys("{DOWN " + ("2") + "}")
602
602
 
603
603
 
604
- if nota.get("cliente_fidc").lower() == 'não':
604
+ if nota.get("clienteFIDC").lower() == 'não':
605
605
  try:
606
606
  panel_TPage = main_window.child_window(class_name="TPage", title="Formulario")
607
607
  panel_TTabSheet = panel_TPage.child_window(class_name="TPageControl")
@@ -219,7 +219,7 @@ async def gerar_nosso_numero(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoD
219
219
  boleto_argenta = None
220
220
  max_trys = 5
221
221
  trys = 0
222
- while boleto_argenta != None and trys <= max_trys:
222
+ while boleto_argenta == None and trys <= max_trys:
223
223
  try:
224
224
  app = Application().connect(title="BOLETO ARGENTA_1")
225
225
  boleto_argenta = app["BOLETO ARGENTA_1"]
@@ -231,6 +231,15 @@ async def gerar_nosso_numero(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoD
231
231
 
232
232
  trys += 1
233
233
  await worker_sleep(60)
234
+
235
+ #Verifica se tela Boleto Argenta foi fechada
236
+ try:
237
+ app = Application().connect(title="BOLETO ARGENTA_1")
238
+ boleto_argenta = app["BOLETO ARGENTA_1"]
239
+ console.log("Boleto Argenta sendo fechado", style="bold green")
240
+ pyautogui.click(1147, 446)
241
+ except:
242
+ console.print("Tela de boleto Argenta ainda não encontrada", style="bold yellow")
234
243
 
235
244
  await worker_sleep(5)
236
245
  #Confirmando tela de impressão
@@ -241,7 +250,7 @@ async def gerar_nosso_numero(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoD
241
250
 
242
251
  await worker_sleep(5)
243
252
 
244
- if boleto_argenta:
253
+ if boleto_argenta != None:
245
254
  return RpaRetornoProcessoDTO(
246
255
  sucesso=True,
247
256
  retorno="Nosso número gerado com sucesso!",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: worker-automate-hub
3
- Version: 0.5.75
3
+ Version: 0.5.77
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
@@ -37,7 +37,7 @@ worker_automate_hub/tasks/jobs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5
37
37
  worker_automate_hub/tasks/jobs/coleta_dje_process.py,sha256=UkLWTC5Ub2qBb0yY-8IZ0DLLOVJOfNTq_z9krx_t25Q,29476
38
38
  worker_automate_hub/tasks/jobs/conexao_rdp.py,sha256=S6QC4xhuo0pB5FjaUJZNMm1LIgEjpjifReCTBDqxH-U,11719
39
39
  worker_automate_hub/tasks/jobs/descartes.py,sha256=0bMCJ0xIcK8TLSgjF6taAbGFLMU-sGDVFIhUYSRtrbg,41092
40
- worker_automate_hub/tasks/jobs/devolucao_prazo_a_faturar.py,sha256=7dkaqRT8Mc4WrVK7CE1LYby5uYsg_3uHZohThTb8qKg,79843
40
+ worker_automate_hub/tasks/jobs/devolucao_prazo_a_faturar.py,sha256=Z1udElaYSCcSI20jdEqDnzJ4wR9mrfmfSB_UnQvVAAs,79842
41
41
  worker_automate_hub/tasks/jobs/ecac_estadual_go.py,sha256=dKkf22nH5gp3RErq5u0UzRsKyJ81fc6ZZ4vLtUuMwHA,21002
42
42
  worker_automate_hub/tasks/jobs/ecac_estadual_main.py,sha256=8WmKe4-MRtzHobXz2S4YBDNN8alfawkC-BBlRY-mn1g,1726
43
43
  worker_automate_hub/tasks/jobs/ecac_estadual_mt.py,sha256=C26zmpGQGUq6sP9lU9nanM3Fje-rkyx5tjwmRy4lyL8,25300
@@ -58,7 +58,7 @@ worker_automate_hub/tasks/jobs/entrada_de_notas_7139.py,sha256=iXbkjdg02r3tdt3eH
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
60
60
  worker_automate_hub/tasks/jobs/fechar_conexao_rdp.py,sha256=8GVImU7EnncCSxbbuEC4-EBE8oGTk6CJ-HFNqJ5OiMs,5564
61
- worker_automate_hub/tasks/jobs/fidc_gerar_nosso_numero.py,sha256=fnTXtf6TKtmiChqzap1BdAfBpnQv2l05-3VS3xUmbKg,10980
61
+ worker_automate_hub/tasks/jobs/fidc_gerar_nosso_numero.py,sha256=jw2aDLKTXKWfyaXaQubNDVeZ-5htgnxz7H6snB-dvbE,11417
62
62
  worker_automate_hub/tasks/jobs/fidc_remessa_cobranca_cnab240.py,sha256=QBGm6eS5JghgNWNqZlk1g2a2iV8LnBLiOTBBL3Giet0,4181
63
63
  worker_automate_hub/tasks/jobs/login_emsys.py,sha256=scdKsseFOL-7UQ5D743VaZZzWBKaEfq0XzYNmROUOgE,5703
64
64
  worker_automate_hub/tasks/jobs/login_emsys_versao_especifica.py,sha256=jcfhppG-MhuZYKEIt8O8NaJfdV3figNXrKt4zPqeQi0,5644
@@ -76,7 +76,7 @@ worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbV
76
76
  worker_automate_hub/utils/util.py,sha256=_uPyZOzb8puEKXUmcFkaf7HesJBs8yITRQkOqViyugU,161430
77
77
  worker_automate_hub/utils/utils_nfe_entrada.py,sha256=iYpOs7fb7C3bY61QHySr00xlDNzrrCP0zaexOpBPuaQ,31930
78
78
  worker_automate_hub/worker.py,sha256=CT-poyP1ZYvubArYsnnNd9oJ53SPaDwgr6p6keS3nI4,6248
79
- worker_automate_hub-0.5.75.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
80
- worker_automate_hub-0.5.75.dist-info/METADATA,sha256=xLA9f0deLqIOapxwpCSIFHQ9tSCHs0fqZ_ENg_6JN2Y,2894
81
- worker_automate_hub-0.5.75.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
82
- worker_automate_hub-0.5.75.dist-info/RECORD,,
79
+ worker_automate_hub-0.5.77.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
80
+ worker_automate_hub-0.5.77.dist-info/METADATA,sha256=dXFuJQuR7tiU7dZN0E8N0cdarC9Jm21hpt_JJQ1-AnY,2894
81
+ worker_automate_hub-0.5.77.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
82
+ worker_automate_hub-0.5.77.dist-info/RECORD,,