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

Sign up to get free protection for your applications and to get access to all the features.
@@ -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(
@@ -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.75
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
@@ -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.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,,