worker-automate-hub 0.5.49__py3-none-any.whl → 0.5.50__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- worker_automate_hub/utils/util.py +36 -29
- {worker_automate_hub-0.5.49.dist-info → worker_automate_hub-0.5.50.dist-info}/METADATA +1 -1
- {worker_automate_hub-0.5.49.dist-info → worker_automate_hub-0.5.50.dist-info}/RECORD +5 -5
- {worker_automate_hub-0.5.49.dist-info → worker_automate_hub-0.5.50.dist-info}/WHEEL +0 -0
- {worker_automate_hub-0.5.49.dist-info → worker_automate_hub-0.5.50.dist-info}/entry_points.txt +0 -0
@@ -3843,49 +3843,56 @@ async def pessoas_ativa_cliente_fornecedor(cod_cliente: str, ativar_cliente: boo
|
|
3843
3843
|
main_window.set_focus()
|
3844
3844
|
panel_Capa = main_window.child_window(class_name="TGroupBox", found_index=0)
|
3845
3845
|
grp_classificacao = panel_Capa.child_window(class_name="TDBIGroupBox", found_index=0)
|
3846
|
+
forncedor_atualizado = False
|
3847
|
+
cliente_atualizado = False
|
3846
3848
|
|
3847
3849
|
if ativar_forcedor:
|
3848
3850
|
checkbox_fornecedor = grp_classificacao.child_window(title="Fornecedor", class_name="TDBICheckBox")
|
3849
3851
|
if not checkbox_fornecedor.is_checked():
|
3852
|
+
forncedor_atualizado = True
|
3850
3853
|
checkbox_fornecedor.click()
|
3851
3854
|
console.print("Ativo como fornecedor... \n")
|
3852
3855
|
|
3853
3856
|
if ativar_cliente:
|
3854
3857
|
checkbox_cliente = grp_classificacao.child_window(title="Cliente",class_name="TDBICheckBox")
|
3855
3858
|
if not checkbox_cliente.is_checked():
|
3859
|
+
cliente_atualizado = True
|
3856
3860
|
checkbox_cliente.click()
|
3857
3861
|
console.print("Ativo como Cliente...\n")
|
3862
|
+
|
3863
|
+
if cliente_atualizado == True or forncedor_atualizado == True:
|
3864
|
+
await worker_sleep(2)
|
3865
|
+
inserir_registro = pyautogui.locateOnScreen(ASSETS_PATH + "\\notas_saida\\salvar_nf_saida.png", confidence=0.8)
|
3866
|
+
pyautogui.click(inserir_registro)
|
3867
|
+
await worker_sleep(3)
|
3858
3868
|
|
3859
|
-
|
3860
|
-
|
3861
|
-
|
3862
|
-
|
3863
|
-
|
3864
|
-
console.print("Verificando a existência de Confirmação...\n")
|
3865
|
-
confirm_pop_up = await is_window_open_by_class("TMessageForm","TMessageForm")
|
3866
|
-
if confirm_pop_up["IsOpened"] == True:
|
3867
|
-
app_confirm = Application().connect(class_name="TMessageForm")
|
3868
|
-
main_window_confirm = app_confirm["TMessageForm"]
|
3869
|
+
console.print("Verificando a existência de Confirmação...\n")
|
3870
|
+
confirm_pop_up = await is_window_open_by_class("TMessageForm","TMessageForm")
|
3871
|
+
if confirm_pop_up["IsOpened"] == True:
|
3872
|
+
app_confirm = Application().connect(class_name="TMessageForm")
|
3873
|
+
main_window_confirm = app_confirm["TMessageForm"]
|
3869
3874
|
|
3870
|
-
|
3871
|
-
|
3872
|
-
|
3873
|
-
|
3874
|
-
|
3875
|
-
|
3876
|
-
|
3877
|
-
|
3878
|
-
|
3879
|
-
|
3880
|
-
|
3881
|
-
|
3882
|
-
|
3883
|
-
|
3884
|
-
|
3885
|
-
|
3886
|
-
|
3887
|
-
|
3888
|
-
|
3875
|
+
btn_no = main_window_confirm["&No"]
|
3876
|
+
try:
|
3877
|
+
btn_no.click()
|
3878
|
+
await worker_sleep(3)
|
3879
|
+
console.print("O botão No foi clicado com sucesso.", style="green")
|
3880
|
+
pyautogui.press("enter")
|
3881
|
+
main_window.close()
|
3882
|
+
await worker_sleep(2)
|
3883
|
+
return RpaRetornoProcessoDTO(
|
3884
|
+
sucesso=True,
|
3885
|
+
retorno=f"Sucesso",
|
3886
|
+
status=RpaHistoricoStatusEnum.Sucesso)
|
3887
|
+
except:
|
3888
|
+
return RpaRetornoProcessoDTO(
|
3889
|
+
sucesso=False,
|
3890
|
+
retorno=f"Não foi possivel clicar em No durante a alteração no tipo de cadastro",
|
3891
|
+
status=RpaHistoricoStatusEnum.Falha,
|
3892
|
+
tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)]
|
3893
|
+
)
|
3894
|
+
else:
|
3895
|
+
main_window.close()
|
3889
3896
|
except Exception as e:
|
3890
3897
|
return RpaRetornoProcessoDTO(
|
3891
3898
|
sucesso=False,
|
@@ -73,10 +73,10 @@ worker_automate_hub/utils/get_creds_gworkspace.py,sha256=ZJ0IIEjM4IXIV9rwfbOZ1V1
|
|
73
73
|
worker_automate_hub/utils/logger.py,sha256=FYV9fg0_RAYJF_ZOCJEbqQAiCXlXk2gMpvUU1rzT_xs,671
|
74
74
|
worker_automate_hub/utils/toast.py,sha256=xPHc5r5uOxB_cZlCzm13Kt2qSKLLFZALncU6Qg3Ft68,1162
|
75
75
|
worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbVlwDl49Y,7972
|
76
|
-
worker_automate_hub/utils/util.py,sha256=
|
76
|
+
worker_automate_hub/utils/util.py,sha256=TrrrbRMGRA1P9E-vpQmziSXZnskwaL6OaRbxd9p_KlA,155405
|
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.
|
80
|
-
worker_automate_hub-0.5.
|
81
|
-
worker_automate_hub-0.5.
|
82
|
-
worker_automate_hub-0.5.
|
79
|
+
worker_automate_hub-0.5.50.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
|
80
|
+
worker_automate_hub-0.5.50.dist-info/METADATA,sha256=ntnu30PsKeNP5QlGOnwthoU4Gf4z9od6ReIOX0SZfA0,2894
|
81
|
+
worker_automate_hub-0.5.50.dist-info/WHEEL,sha256=RaoafKOydTQ7I_I3JTrPCg6kUmTgtm4BornzOqyEfJ8,88
|
82
|
+
worker_automate_hub-0.5.50.dist-info/RECORD,,
|
File without changes
|
{worker_automate_hub-0.5.49.dist-info → worker_automate_hub-0.5.50.dist-info}/entry_points.txt
RENAMED
File without changes
|