worker-automate-hub 0.5.48__py3-none-any.whl → 0.5.50__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.
@@ -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
- await worker_sleep(2)
3860
- inserir_registro = pyautogui.locateOnScreen(ASSETS_PATH + "\\notas_saida\\salvar_nf_saida.png", confidence=0.8)
3861
- pyautogui.click(inserir_registro)
3862
- await worker_sleep(3)
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
- btn_no = main_window_confirm["&No"]
3871
- try:
3872
- btn_no.click()
3873
- await worker_sleep(3)
3874
- console.print("O botão No foi clicado com sucesso.", style="green")
3875
- main_window.close()
3876
- await worker_sleep(2)
3877
- pyautogui.press("enter")
3878
- return RpaRetornoProcessoDTO(
3879
- sucesso=True,
3880
- retorno=f"Sucesso",
3881
- status=RpaHistoricoStatusEnum.Sucesso)
3882
- except:
3883
- return RpaRetornoProcessoDTO(
3884
- sucesso=False,
3885
- retorno=f"Não foi possivel clicar em No durante a alteração no tipo de cadastro",
3886
- status=RpaHistoricoStatusEnum.Falha,
3887
- tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)]
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,
@@ -231,7 +231,7 @@ class EMSys:
231
231
  await worker_sleep(2)
232
232
 
233
233
  async def select_tipo_cobranca(self):
234
- # await worker_sleep(3)
234
+ await worker_sleep(3)
235
235
  # pyautogui.click(632, 384)
236
236
 
237
237
  console.print("Navegando pela Janela de Nota Fiscal de Entrada...\n")
@@ -242,7 +242,10 @@ class EMSys:
242
242
  console.print("Acessando a aba de Pagamentos... \n")
243
243
  panel_TPage = main_window.child_window(class_name="TPage", title="Formulario")
244
244
  panel_TTabSheet = panel_TPage.child_window(class_name="TcxCustomInnerTreeView")
245
- panel_TTabSheet.wait("visible")
245
+ try:
246
+ panel_TTabSheet.wait("visible")
247
+ except:
248
+ await worker_sleep(2)
246
249
  panel_TTabSheet.click()
247
250
  send_keys("{DOWN " + ("2") + "}")
248
251
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: worker-automate-hub
3
- Version: 0.5.48
3
+ Version: 0.5.50
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
@@ -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=cSL2cugYRk5SxSUsV94sVSIhhNCtolW9U2YN2-wbJ6M,155003
77
- worker_automate_hub/utils/utils_nfe_entrada.py,sha256=ZTb1XoKWZY7coXt06iIE8KI56N6AguhZv5DEPX2qUu8,31862
76
+ worker_automate_hub/utils/util.py,sha256=TrrrbRMGRA1P9E-vpQmziSXZnskwaL6OaRbxd9p_KlA,155405
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.48.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
80
- worker_automate_hub-0.5.48.dist-info/METADATA,sha256=7aRune47Un3VYlUteparhaPT-2NeJcU_zJo25HBilww,2894
81
- worker_automate_hub-0.5.48.dist-info/WHEEL,sha256=RaoafKOydTQ7I_I3JTrPCg6kUmTgtm4BornzOqyEfJ8,88
82
- worker_automate_hub-0.5.48.dist-info/RECORD,,
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,,