worker-automate-hub 0.5.338__py3-none-any.whl → 0.5.340__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.
@@ -1268,7 +1268,10 @@ async def devolucao_prazo_a_faturar(task: RpaProcessoEntradaDTO) -> RpaRetornoPr
1268
1268
  await worker_sleep(2)
1269
1269
  cadastro_pre_venda = await is_window_open_by_class("TFrmPreVenda", "TFrmPreVenda")
1270
1270
  if cadastro_pre_venda["IsOpened"] == True:
1271
- preenchimento_header_pre_venda = await cadastro_pre_venda_header("5667 - VENDA DE COMB OU LUBRI - SEM ESTOQ E COM FINANC", cod_cliente_correto, "21 DIAS")
1271
+ if not item_arla:
1272
+ preenchimento_header_pre_venda = await cadastro_pre_venda_header("5667 - VENDA DE COMB OU LUBRI - SEM ESTOQ E COM FINANC", cod_cliente_correto, "21 DIAS")
1273
+ else:
1274
+ preenchimento_header_pre_venda = await cadastro_pre_venda_header("1202 - DEVOLUÇÃO DE VENDA MERC. - 1.202 C/ESTOQUE E S/FINANCEIRO", cod_cliente_correto, "21 DIAS")
1272
1275
  if preenchimento_header_pre_venda.sucesso:
1273
1276
  try:
1274
1277
  cidade_cliente = preenchimento_header_pre_venda.retorno
@@ -4103,7 +4106,17 @@ async def devolucao_prazo_a_faturar(task: RpaProcessoEntradaDTO) -> RpaRetornoPr
4103
4106
  tags=[RpaTagDTO(descricao=RpaTagEnum.Negocio)]
4104
4107
  )
4105
4108
  else:
4106
- console.print("Cliente FIDC não é necessario gerar relatorio final, encerrando processo.")
4109
+ console.print("Cliente FIDC não é necessario gerar relatorio final, enviando as informações para o parceiro.")
4110
+ try:
4111
+ url_retorno = nota.get("urlRetorno")
4112
+ identificador = nota.get("identificador")
4113
+
4114
+ if url_retorno and identificador:
4115
+ await post_partner(url_retorno, identificador, numero_nota_fiscal, valor_nota_fiscal)
4116
+ else:
4117
+ console.print("Não foi possivel obter o valor de urlRetorno/identificador")
4118
+ except:
4119
+ console.print(f"Erro ao obter os dados ou enviar a requisição: {e}")
4107
4120
  retorno = f"Processo de devolução executado com sucesso \nEtapas Executadas:\n{steps}"
4108
4121
  return RpaRetornoProcessoDTO(
4109
4122
  sucesso=True,
@@ -158,7 +158,7 @@ async def integracao_contabil(task: RpaProcessoEntradaDTO) -> RpaRetornoProcesso
158
158
  await worker_sleep(3)
159
159
  console.print("Clicando no botao pesquisar...")
160
160
  pyautogui.click(x=1250, y=380)
161
- await worker_sleep(20)
161
+ await worker_sleep(60)
162
162
  console.print("Aguardando carregamento...")
163
163
  max_attempts = 240
164
164
  found = False
@@ -179,7 +179,7 @@ async def integracao_contabil(task: RpaProcessoEntradaDTO) -> RpaRetornoProcesso
179
179
  status=RpaHistoricoStatusEnum.Falha,
180
180
  tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)],
181
181
  )
182
- if "validando" in field and attempt <= 2:
182
+ if "validando" in field and attempt <= 1:
183
183
  return RpaRetornoProcessoDTO(
184
184
  sucesso=False,
185
185
  retorno=f"A integração não foi realizada: nenhum lote para integrar.",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: worker-automate-hub
3
- Version: 0.5.338
3
+ Version: 0.5.340
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/cte_manual.py,sha256=JucHpRMjMiy-QEJ0wtFnytLpN53t
42
42
  worker_automate_hub/tasks/jobs/descartes.py,sha256=2zODOekSJSr7nuO9sUzT_F3YeG7N5EHuxnp05RguirE,41361
43
43
  worker_automate_hub/tasks/jobs/despesas_cte.py,sha256=TWbjBMZjYDugiqYUa_1DtCAUWOyVetoZI2SPs7AdDNc,13264
44
44
  worker_automate_hub/tasks/jobs/devolucao_ctf.py,sha256=A41O9a6kVUweUBy7Lc2dpJoeAi8QYxu-pMc8u-g0yTg,110241
45
- worker_automate_hub/tasks/jobs/devolucao_prazo_a_faturar.py,sha256=D-2GK0kstyP0Rql7OoMidDuwzMEGPCEr-em3nIBi-no,244991
45
+ worker_automate_hub/tasks/jobs/devolucao_prazo_a_faturar.py,sha256=vHg57ib-QSzDeAkQAnIMA1YNVYMQyFtfVdBX2KKEyt4,245796
46
46
  worker_automate_hub/tasks/jobs/ecac_estadual_go.py,sha256=dKkf22nH5gp3RErq5u0UzRsKyJ81fc6ZZ4vLtUuMwHA,21002
47
47
  worker_automate_hub/tasks/jobs/ecac_estadual_main.py,sha256=8WmKe4-MRtzHobXz2S4YBDNN8alfawkC-BBlRY-mn1g,1726
48
48
  worker_automate_hub/tasks/jobs/ecac_estadual_mt.py,sha256=C26zmpGQGUq6sP9lU9nanM3Fje-rkyx5tjwmRy4lyL8,25300
@@ -67,7 +67,7 @@ worker_automate_hub/tasks/jobs/fidc_exportacao_docs_portal_b2b.py,sha256=CyXllDn
67
67
  worker_automate_hub/tasks/jobs/fidc_gerar_nosso_numero.py,sha256=tiyAbOqY3bBOzxM2DvgqT_fLC4f7YvHcO34Drhq0l8Y,11433
68
68
  worker_automate_hub/tasks/jobs/fidc_remessa_cobranca_cnab240.py,sha256=Vmj0hTvyRgfczaLiQZgmh4MiG4fJEzAEvJL0Ci25AAM,15836
69
69
  worker_automate_hub/tasks/jobs/fidc_retorno_cobranca.py,sha256=5K_KJnH-NdEp-SEzbYVvBUuUpmvRlx_ISq0u_xirizQ,11812
70
- worker_automate_hub/tasks/jobs/integracao_contabil.py,sha256=YjCZ_yX_1gR2XtTY8PRjpgbllzZcxYsTTtPId1oR5uM,16745
70
+ worker_automate_hub/tasks/jobs/integracao_contabil.py,sha256=PjWcpPg3FFOpuRIhp80WU23QKKKZgdjlDrx6hcVMdzc,16745
71
71
  worker_automate_hub/tasks/jobs/login_emsys.py,sha256=scdKsseFOL-7UQ5D743VaZZzWBKaEfq0XzYNmROUOgE,5703
72
72
  worker_automate_hub/tasks/jobs/login_emsys_versao_especifica.py,sha256=jcfhppG-MhuZYKEIt8O8NaJfdV3figNXrKt4zPqeQi0,5644
73
73
  worker_automate_hub/tasks/jobs/notas_faturamento_sap.py,sha256=p6tVE027FHHXBxt2sIDxqLInpf_0wS-8TcACnS34p7w,13961
@@ -85,7 +85,7 @@ worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbV
85
85
  worker_automate_hub/utils/util.py,sha256=WZK1VjdoOCHWWXzLt9gh2uUi_6p3OfvI6DvAYIGi998,185072
86
86
  worker_automate_hub/utils/utils_nfe_entrada.py,sha256=wmnpuOesmPSryZszmapa37b9YNC0E2MkeDYnbwr-0rU,33315
87
87
  worker_automate_hub/worker.py,sha256=axdrr1xLTjWEyWfcyH3OCSpPTsyzck_fL_0u1DBLjvw,6525
88
- worker_automate_hub-0.5.338.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
89
- worker_automate_hub-0.5.338.dist-info/METADATA,sha256=tOB8HSPfB1wiEhrIngivgl1-cQIROrXf4oKeL1rHYWk,3041
90
- worker_automate_hub-0.5.338.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
91
- worker_automate_hub-0.5.338.dist-info/RECORD,,
88
+ worker_automate_hub-0.5.340.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
89
+ worker_automate_hub-0.5.340.dist-info/METADATA,sha256=cninyp8oy8EoT99vYIO1DQ2jmJ-bD5JOQPlAmDt1Fus,3041
90
+ worker_automate_hub-0.5.340.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
91
+ worker_automate_hub-0.5.340.dist-info/RECORD,,