worker-automate-hub 0.5.320__py3-none-any.whl → 0.5.322__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/devolucao_prazo_a_faturar.py +12 -4
- worker_automate_hub/tasks/jobs/entrada_de_notas_39.py +2504 -0
- worker_automate_hub/utils/util.py +47 -133
- {worker_automate_hub-0.5.320.dist-info → worker_automate_hub-0.5.322.dist-info}/METADATA +1 -1
- {worker_automate_hub-0.5.320.dist-info → worker_automate_hub-0.5.322.dist-info}/RECORD +7 -7
- {worker_automate_hub-0.5.320.dist-info → worker_automate_hub-0.5.322.dist-info}/WHEEL +0 -0
- {worker_automate_hub-0.5.320.dist-info → worker_automate_hub-0.5.322.dist-info}/entry_points.txt +0 -0
@@ -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
|
-
|
2415
|
-
|
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
|
-
|
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()
|