worker-automate-hub 0.5.49__tar.gz → 0.5.51__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/PKG-INFO +1 -1
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/pyproject.toml +1 -1
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/utils/util.py +41 -29
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/README.md +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/__init__.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/api/__init__.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/api/ahead_service.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/api/client.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/api/helpers/__init__.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/api/helpers/api_helpers.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/api/rdp_service.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/api/rpa_fila_service.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/api/rpa_historico_service.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/api/webhook_service.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/cli.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/config/__init__.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/config/settings.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/config.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/core/so_manipulation.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/decorators/__init__.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/decorators/deprecation.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/decorators/rate_limit.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/decorators/repeat.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/decorators/retry.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/decorators/singleton.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/decorators/timeit.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/models/__init__.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/models/dao/__init__.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/models/dao/rpa_configuracao.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/models/dao/rpa_fila.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/models/dao/rpa_historico.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/models/dao/rpa_processo.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/models/dao/rpa_robo.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/models/dto/__init__.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/models/dto/rpa_historico_request_dto.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/models/dto/rpa_processo_entrada_dto.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/models/dto/rpa_processo_rdp_dto.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/models/dto/rpa_sistema_dto.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/tasks/__init__.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/tasks/jobs/__init__.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/tasks/jobs/coleta_dje_process.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/tasks/jobs/conexao_rdp.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/tasks/jobs/descartes.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/tasks/jobs/devolucao_prazo_a_faturar.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/tasks/jobs/ecac_estadual_go.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/tasks/jobs/ecac_estadual_main.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/tasks/jobs/ecac_estadual_mt.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/tasks/jobs/ecac_estadual_sc.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/tasks/jobs/ecac_estadual_sp.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/tasks/jobs/ecac_federal.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/tasks/jobs/entrada_de_notas_15.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/tasks/jobs/entrada_de_notas_16.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/tasks/jobs/entrada_de_notas_207.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/tasks/jobs/entrada_de_notas_32.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/tasks/jobs/entrada_de_notas_33.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/tasks/jobs/entrada_de_notas_34.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/tasks/jobs/entrada_de_notas_36.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/tasks/jobs/entrada_de_notas_39.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/tasks/jobs/entrada_de_notas_500.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/tasks/jobs/entrada_de_notas_505.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/tasks/jobs/entrada_de_notas_7139.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/tasks/jobs/entrada_de_notas_9.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/tasks/jobs/exemplo_processo.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/tasks/jobs/fechar_conexao_rdp.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/tasks/jobs/fidc_gerar_nosso_numero.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/tasks/jobs/fidc_remessa_cobranca_cnab240.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/tasks/jobs/login_emsys.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/tasks/jobs/login_emsys_versao_especifica.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/tasks/jobs/playground.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/tasks/jobs/sped_fiscal.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/tasks/jobs/transferencias.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/tasks/task_definitions.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/tasks/task_executor.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/utils/__init__.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/utils/env.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/utils/get_creds_gworkspace.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/utils/logger.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/utils/toast.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/utils/updater.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/utils/utils_nfe_entrada.py +0 -0
- {worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/worker.py +0 -0
@@ -3843,49 +3843,61 @@ 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
|
-
|
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"]
|
3863
3874
|
|
3864
|
-
|
3865
|
-
|
3866
|
-
|
3867
|
-
|
3868
|
-
|
3869
|
-
|
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()
|
3896
|
+
return RpaRetornoProcessoDTO(
|
3897
|
+
sucesso=True,
|
3898
|
+
retorno=f"Sucesso",
|
3899
|
+
status=RpaHistoricoStatusEnum.Sucesso
|
3900
|
+
)
|
3889
3901
|
except Exception as e:
|
3890
3902
|
return RpaRetornoProcessoDTO(
|
3891
3903
|
sucesso=False,
|
File without changes
|
File without changes
|
{worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/api/__init__.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/api/ahead_service.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/api/rdp_service.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/api/webhook_service.py
RENAMED
File without changes
|
File without changes
|
{worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/config/__init__.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/config/settings.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/decorators/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/decorators/repeat.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/decorators/retry.py
RENAMED
File without changes
|
File without changes
|
{worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/decorators/timeit.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/models/__init__.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/models/dao/__init__.py
RENAMED
File without changes
|
File without changes
|
{worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/models/dao/rpa_fila.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/models/dao/rpa_robo.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/models/dto/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/tasks/__init__.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/tasks/jobs/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/tasks/task_executor.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/utils/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/utils/logger.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/utils/toast.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.49 → worker_automate_hub-0.5.51}/worker_automate_hub/utils/updater.py
RENAMED
File without changes
|
File without changes
|
File without changes
|