worker-automate-hub 0.5.74__py3-none-any.whl → 0.5.76__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.
@@ -476,7 +476,7 @@ async def devolucao_prazo_a_faturar(task: RpaProcessoEntradaDTO) -> RpaRetornoPr
476
476
  send_keys("^({HOME})")
477
477
  await worker_sleep(1)
478
478
  send_keys("{DOWN " + str(index) + "}", pause=0.1)
479
- await worker_sleep(1)
479
+ await worker_sleep(3)
480
480
 
481
481
  with pyautogui.hold('ctrl'):
482
482
  pyautogui.press('c')
@@ -504,7 +504,6 @@ async def devolucao_prazo_a_faturar(task: RpaProcessoEntradaDTO) -> RpaRetornoPr
504
504
 
505
505
  app = Application().connect(title="Alteração de Item")
506
506
  main_window = app["Alteração de Item"]
507
-
508
507
  main_window.set_focus()
509
508
 
510
509
  # ITERAGINDO COM O IPI
@@ -514,23 +513,22 @@ async def devolucao_prazo_a_faturar(task: RpaProcessoEntradaDTO) -> RpaRetornoPr
514
513
 
515
514
  console.print(f"Trabalhando com os itens, valor do IP {ipi_value}... \n")
516
515
  if "IPI - ENTRADAS OUTROS" in ipi_value:
517
- console.print(f"IPI Corretamente selecionado ... \n")
516
+ console.print(f"Iten selecionado com sucesso, clicando em Cancelar ...\n")
517
+ try:
518
+ btn_alterar = main_window.child_window(title="&Cancelar")
519
+ btn_alterar.click()
520
+ except:
521
+ btn_alterar = main_window.child_window(title="Cancelar")
522
+ btn_alterar.click()
523
+ await worker_sleep(3)
518
524
  else:
519
525
  console.print(f"Trabalhando com os itens, valor do IP em branco, selecionando IPI 0% ... \n")
520
526
  ipi.click_input()
521
- send_keys("^({HOME})")
522
- #send_keys("{DOWN 6}")
523
527
  set_combobox("||List", "IPI - ENTRADAS OUTROS")
524
- #send_keys("{ENTER}")
525
528
 
526
529
  await worker_sleep(4)
527
- tpage_ipi = main_window.child_window(
528
- class_name="TPanel", found_index=0
529
- )
530
- ipi = tpage_ipi.child_window(
531
- class_name="TDBIComboBox", found_index=2
532
- )
533
-
530
+ tpage_ipi = main_window.child_window(class_name="TPanel", found_index=0)
531
+ ipi = tpage_ipi.child_window(class_name="TDBIComboBox", found_index=2)
534
532
  ipi_value = ipi.window_text()
535
533
 
536
534
  if "IPI - ENTRADAS OUTROS" in ipi_value:
@@ -574,6 +572,7 @@ async def devolucao_prazo_a_faturar(task: RpaProcessoEntradaDTO) -> RpaRetornoPr
574
572
  status=RpaHistoricoStatusEnum.Falha,
575
573
  tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)]
576
574
  )
575
+ index = index+1
577
576
  except Exception as e:
578
577
  retorno = f"Erro ao trabalhar nas alterações dos itens, erro: {e} \nEtapas Executadas:\n{steps}"
579
578
  return RpaRetornoProcessoDTO(
@@ -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.74
3
+ Version: 0.5.76
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=6FeNzgUBeOR3EK-6mmuPFpNu-N8pPDkrv-BCgDgL-LM,79663
40
+ worker_automate_hub/tasks/jobs/devolucao_prazo_a_faturar.py,sha256=7dkaqRT8Mc4WrVK7CE1LYby5uYsg_3uHZohThTb8qKg,79843
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.74.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
80
- worker_automate_hub-0.5.74.dist-info/METADATA,sha256=qyj5a25V_cQo3nsogcgUHSoLrvW9wfCrzcuXwi_cJbk,2894
81
- worker_automate_hub-0.5.74.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
82
- worker_automate_hub-0.5.74.dist-info/RECORD,,
79
+ worker_automate_hub-0.5.76.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
80
+ worker_automate_hub-0.5.76.dist-info/METADATA,sha256=brhcPkfi3EemZrMR5ZkrMv7dRMj3ZRytifll6oU2ojI,2894
81
+ worker_automate_hub-0.5.76.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
82
+ worker_automate_hub-0.5.76.dist-info/RECORD,,