worker-automate-hub 0.5.612__py3-none-any.whl → 0.5.614__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.
@@ -832,7 +832,13 @@ async def devolucao_ctf(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
832
832
  pesquisar_venda_devolucao = await is_window_open_by_class("TFrmGerenciadorNFe2", "TFrmGerenciadorNFe2")
833
833
  if pesquisar_venda_devolucao["IsOpened"] == True:
834
834
  console.print(f"\n'Gerenciador de Notas Fiscais'aberta com sucesso",style="bold green")
835
- selecionar_itens_gerenciador_nfe = await gerenciador_nf_header(data_hoje, cod_cliente_incorreto)
835
+
836
+ if cod_cliente_incorreto != "140552":
837
+ selecionar_itens_gerenciador_nfe = await gerenciador_nf_header(data_hoje, cod_cliente_incorreto)
838
+ else:
839
+ selecionar_itens_gerenciador_nfe = await gerenciador_nf_header(data_hoje, cod_empresa)
840
+
841
+
836
842
  if selecionar_itens_gerenciador_nfe.sucesso:
837
843
  console.print("PROCESSO EXECUTADO COM SUCESSO, SEGUINDO COM O PROCESSO PARA TRANSMITIR A NF-E...\n")
838
844
  app = Application().connect(class_name="TFrmGerenciadorNFe2", timeout=10)
@@ -122,15 +122,30 @@ async def entrada_de_notas_36(task: RpaProcessoEntradaDTO) -> RpaRetornoProcesso
122
122
 
123
123
  # Procura campo documento
124
124
  console.print("Navegando pela Janela de Nota Fiscal de Entrada...\n")
125
- document_type = await select_documento_type(
126
- "NOTA FISCAL DE ENTRADA ELETRONICA - DANFE"
127
- )
128
- if document_type.sucesso == True:
129
- console.log(document_type.retorno, style="bold green")
125
+
126
+ # Lista de tipos de documentos
127
+ tipos_documento = [
128
+ "NOTA FISCAL DE ENTRADA ELETRONICA - DANFE",
129
+ "DANFE - NOTA FISCAL DE ENTRADA ELETRONICA - DANFE"
130
+ ]
131
+
132
+ document_type_result = None
133
+
134
+ for tipo in tipos_documento:
135
+ try:
136
+ resultado = await select_documento_type(tipo)
137
+ if resultado.sucesso:
138
+ document_type_result = resultado
139
+ break
140
+ except Exception as e:
141
+ console.log(f"Erro ao tentar selecionar '{tipo}': {e}", style="bold red")
142
+
143
+ if document_type_result and document_type_result.sucesso:
144
+ console.log(document_type_result.retorno, style="bold green")
130
145
  else:
131
146
  return RpaRetornoProcessoDTO(
132
147
  sucesso=False,
133
- retorno=document_type.retorno,
148
+ retorno="Não foi possível selecionar nenhum dos tipos de documento válidos.",
134
149
  status=RpaHistoricoStatusEnum.Falha,
135
150
  tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)]
136
151
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: worker-automate-hub
3
- Version: 0.5.612
3
+ Version: 0.5.614
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/conexao_rdp.py,sha256=S6QC4xhuo0pB5FjaUJZNMm1LIgE
42
42
  worker_automate_hub/tasks/jobs/cte_manual.py,sha256=JucHpRMjMiy-QEJ0wtFnytLpN53tKXgCDI05nGLGclU,603
43
43
  worker_automate_hub/tasks/jobs/cte_xml.py,sha256=CdDcDRjCJTU2DV0KAglqgCVb13ahMqzYdmaeJRKcR0o,15038
44
44
  worker_automate_hub/tasks/jobs/descartes.py,sha256=E5kKef8j7e0PTm6NBeZAXkljUoAFEMjVWvHaJ8g2fv4,44451
45
- worker_automate_hub/tasks/jobs/devolucao_ctf.py,sha256=mtnnAYYD9mxOK83S4MkATqb9g3VUBVynJdpmgPf2DZM,252652
45
+ worker_automate_hub/tasks/jobs/devolucao_ctf.py,sha256=nljsP1WZ5ENY_aSbHv-rNJ3lcuRJSv2GB43t2Tgv3Ww,252848
46
46
  worker_automate_hub/tasks/jobs/devolucao_prazo_a_faturar.py,sha256=byIk02T4fWCVgKisf50ZAEY26d8FMTlX9S7RnQVtoEE,256763
47
47
  worker_automate_hub/tasks/jobs/ecac_estadual_go.py,sha256=dKkf22nH5gp3RErq5u0UzRsKyJ81fc6ZZ4vLtUuMwHA,21002
48
48
  worker_automate_hub/tasks/jobs/ecac_estadual_main.py,sha256=8WmKe4-MRtzHobXz2S4YBDNN8alfawkC-BBlRY-mn1g,1726
@@ -58,7 +58,7 @@ worker_automate_hub/tasks/jobs/entrada_de_notas_207.py,sha256=A5HM2Eh2bGZueVefnQ
58
58
  worker_automate_hub/tasks/jobs/entrada_de_notas_32.py,sha256=lku233FqwOknXF14HHC6fZ75WubE69Jp32bAUhKPtGQ,34575
59
59
  worker_automate_hub/tasks/jobs/entrada_de_notas_33.py,sha256=MO5hjy2NS__6FXvzd3R24hGEf4u_bOvqD5lJx70Awu0,33590
60
60
  worker_automate_hub/tasks/jobs/entrada_de_notas_34.py,sha256=AXUL8DakrDeTxWW8dn36W830XfIuO47MFUusbUkrnUc,33586
61
- worker_automate_hub/tasks/jobs/entrada_de_notas_36.py,sha256=LW44NTCZJ_N5FCF5i4DRzG4GPdGEA3q_VJ1qJbH5omQ,34635
61
+ worker_automate_hub/tasks/jobs/entrada_de_notas_36.py,sha256=z494n0SUyxorjhvpbat2ELnj7lbhtWPb9JOIsattwA8,35216
62
62
  worker_automate_hub/tasks/jobs/entrada_de_notas_39.py,sha256=89WgjhzhQXKoMmbRPiliV8BvA1Ni3IN8tnRkt86RGNA,46806
63
63
  worker_automate_hub/tasks/jobs/entrada_de_notas_500.py,sha256=WBsCRbH7ANiCjEn0aEDc5AqGf6grEFhxyBoAIh3zJ40,44160
64
64
  worker_automate_hub/tasks/jobs/entrada_de_notas_503.py,sha256=FIF8HCyEAdecDw6dB9WC3hcLoLAC3FMQyTujPgfQFaI,46560
@@ -96,7 +96,7 @@ worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbV
96
96
  worker_automate_hub/utils/util.py,sha256=_pgZOFWgXoov6WPbqyRTDVXJCRFfucYB3gb9swzU7bo,198281
97
97
  worker_automate_hub/utils/utils_nfe_entrada.py,sha256=wmnpuOesmPSryZszmapa37b9YNC0E2MkeDYnbwr-0rU,33315
98
98
  worker_automate_hub/worker.py,sha256=axdrr1xLTjWEyWfcyH3OCSpPTsyzck_fL_0u1DBLjvw,6525
99
- worker_automate_hub-0.5.612.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
100
- worker_automate_hub-0.5.612.dist-info/METADATA,sha256=I9d1uqfazsIG4zwD8HyYxYNun9y_M6e9eosa1L2nTTM,3049
101
- worker_automate_hub-0.5.612.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
102
- worker_automate_hub-0.5.612.dist-info/RECORD,,
99
+ worker_automate_hub-0.5.614.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
100
+ worker_automate_hub-0.5.614.dist-info/METADATA,sha256=0U7sE7NTDBaiDG17-LUQh1Xq1PPqUbfYPkdzNucjxug,3049
101
+ worker_automate_hub-0.5.614.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
102
+ worker_automate_hub-0.5.614.dist-info/RECORD,,