worker-automate-hub 0.5.319__py3-none-any.whl → 0.5.321__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.
@@ -2204,18 +2204,18 @@ async def devolucao_prazo_a_faturar(task: RpaProcessoEntradaDTO) -> RpaRetornoPr
2204
2204
  else:
2205
2205
  console.print("Não possui warning para alterar tributação... \n")
2206
2206
 
2207
- try:
2208
- #Clcica no OK para seguir a transmissão da pré-venda
2209
- console.print("Identificando - TFrmDadosFaturamentoPreVenda")
2210
- app = Application().connect(class_name="TFrmDadosFaturamentoPreVenda", timeout=60)
2211
- main_window = app["TFrmDadosFaturamentoPreVenda"]
2212
- main_window.set_focus()
2213
- btn_ok = main_window.child_window(class_name="TBitBtn", found_index=1)
2214
- btn_ok.click()
2215
- except:
2216
- btn_ok = main_window.child_window(title="&Ok")
2217
- btn_ok.click()
2218
- await worker_sleep(5)
2207
+ # try:
2208
+ # #Clcica no OK para seguir a transmissão da pré-venda
2209
+ # app = Application().connect(class_name="TFrmDadosFaturamentoPreVenda", timeout=60)
2210
+ # main_window = app["TFrmDadosFaturamentoPreVenda"]
2211
+ # main_window.set_focus()
2212
+ # btn_ok = main_window.child_window(class_name="TBitBtn", found_index=1)
2213
+ # btn_ok.click()
2214
+ # except:
2215
+ # btn_ok = main_window.child_window(title="&Ok")
2216
+ # btn_ok.click()
2217
+ # await worker_sleep(5)
2218
+
2219
2219
  #Lucas Fim
2220
2220
  #ADICIONANDO MENSAGEM
2221
2221
  await worker_sleep(5)
@@ -2410,19 +2410,25 @@ async def devolucao_prazo_a_faturar(task: RpaProcessoEntradaDTO) -> RpaRetornoPr
2410
2410
  )
2411
2411
  except:
2412
2412
  console.print("Janela TFrmProcessamentoNFe2 ja fechada")
2413
-
2414
- try:
2415
- await worker_sleep(10)
2413
+
2414
+
2415
+ await worker_sleep(10)
2416
+ console.print("Verificando se a tela de Gerenciador esta aberta")
2417
+ window_gerenciador_screen = await is_window_open_by_class("TFrmGerenciadorNFe2","TFrmGerenciadorNFe2")
2418
+ if window_gerenciador_screen["IsOpened"] == True:
2416
2419
  app = Application().connect(class_name="TFrmGerenciadorNFe2", timeout=10)
2417
2420
  window_gerenciador = app["TFrmGerenciadorNFe2"]
2418
2421
  window_gerenciador.set_focus()
2422
+ await worker_sleep(2)
2419
2423
  window_gerenciador.close()
2420
- except:
2424
+ else:
2421
2425
  console.print("Janela TFrmGerenciadorNFe2 ja fechada")
2422
2426
 
2423
2427
 
2428
+ console.print("Verificando se a tela de Mensagem esta aberta")
2424
2429
  erro_screen = await is_window_open_by_class("TMemo","TMemo")
2425
2430
  if erro_screen["IsOpened"] == True:
2431
+ console.print("Janela aberta, fechando")
2426
2432
  app = Application().connect(class_name="TMemo", timeout=10)
2427
2433
  main_window = app["TMemo"]
2428
2434
  main_window.set_focus()
@@ -2430,8 +2436,10 @@ async def devolucao_prazo_a_faturar(task: RpaProcessoEntradaDTO) -> RpaRetornoPr
2430
2436
  main_window.close()
2431
2437
 
2432
2438
 
2439
+ console.print("Verificando se a tela de Faturamento Pre venda esta aberta")
2433
2440
  close_dados_faturamento = await is_window_open_by_class("TFrmDadosFaturamentoPreVenda","TFrmDadosFaturamentoPreVenda")
2434
2441
  if close_dados_faturamento["IsOpened"] == True:
2442
+ console.print("Janela aberta, fechando")
2435
2443
  app = Application().connect(class_name="TFrmDadosFaturamentoPreVenda", timeout=10)
2436
2444
  main_window = app["TFrmDadosFaturamentoPreVenda"]
2437
2445
  main_window.set_focus()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: worker-automate-hub
3
- Version: 0.5.319
3
+ Version: 0.5.321
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
@@ -42,7 +42,7 @@ worker_automate_hub/tasks/jobs/cte_manual.py,sha256=JucHpRMjMiy-QEJ0wtFnytLpN53t
42
42
  worker_automate_hub/tasks/jobs/descartes.py,sha256=2zODOekSJSr7nuO9sUzT_F3YeG7N5EHuxnp05RguirE,41361
43
43
  worker_automate_hub/tasks/jobs/despesas_cte.py,sha256=TWbjBMZjYDugiqYUa_1DtCAUWOyVetoZI2SPs7AdDNc,13264
44
44
  worker_automate_hub/tasks/jobs/devolucao_ctf.py,sha256=A41O9a6kVUweUBy7Lc2dpJoeAi8QYxu-pMc8u-g0yTg,110241
45
- worker_automate_hub/tasks/jobs/devolucao_prazo_a_faturar.py,sha256=n78D9acEABATRi1Mx3oD4oFmCUVObrkPaWQ-zNQ-N8M,233902
45
+ worker_automate_hub/tasks/jobs/devolucao_prazo_a_faturar.py,sha256=KYqvCfDw_pgH6AQpTZnxm55AYIgho5U7pFK6xc_spwA,234499
46
46
  worker_automate_hub/tasks/jobs/ecac_estadual_go.py,sha256=dKkf22nH5gp3RErq5u0UzRsKyJ81fc6ZZ4vLtUuMwHA,21002
47
47
  worker_automate_hub/tasks/jobs/ecac_estadual_main.py,sha256=8WmKe4-MRtzHobXz2S4YBDNN8alfawkC-BBlRY-mn1g,1726
48
48
  worker_automate_hub/tasks/jobs/ecac_estadual_mt.py,sha256=C26zmpGQGUq6sP9lU9nanM3Fje-rkyx5tjwmRy4lyL8,25300
@@ -85,7 +85,7 @@ worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbV
85
85
  worker_automate_hub/utils/util.py,sha256=WZK1VjdoOCHWWXzLt9gh2uUi_6p3OfvI6DvAYIGi998,185072
86
86
  worker_automate_hub/utils/utils_nfe_entrada.py,sha256=wmnpuOesmPSryZszmapa37b9YNC0E2MkeDYnbwr-0rU,33315
87
87
  worker_automate_hub/worker.py,sha256=axdrr1xLTjWEyWfcyH3OCSpPTsyzck_fL_0u1DBLjvw,6525
88
- worker_automate_hub-0.5.319.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
89
- worker_automate_hub-0.5.319.dist-info/METADATA,sha256=SjVPwoRC_fe0R7sgPd_rrbZhFFv5fIOCpaxU0x91ARo,3041
90
- worker_automate_hub-0.5.319.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
91
- worker_automate_hub-0.5.319.dist-info/RECORD,,
88
+ worker_automate_hub-0.5.321.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
89
+ worker_automate_hub-0.5.321.dist-info/METADATA,sha256=hppBmPevL9XLeuw9P0G8zbcJAd6h8IvsUHP4xENeQs8,3041
90
+ worker_automate_hub-0.5.321.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
91
+ worker_automate_hub-0.5.321.dist-info/RECORD,,