worker-automate-hub 0.5.454__py3-none-any.whl → 0.5.455__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.
@@ -4050,7 +4050,27 @@ async def devolucao_ctf(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
4050
4050
  tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)]
4051
4051
  )
4052
4052
  else:
4053
+ console.print("Valores no relatorio não batem...\n")
4054
+ with open(f"{path_to_txt}.pdf", 'rb') as file:
4055
+ file_bytes = io.BytesIO(file.read())
4056
+
4057
+ timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
4058
+ desArquivo = f"CAIXA 13 DEVOLUCAO {numero_cupom_fiscal}.pdf"
4059
+ await send_file(historico_id, desArquivo, "pdf", file_bytes, file_extension="pdf")
4053
4060
  os.remove(f"{path_to_txt}.pdf")
4061
+ retorno = f"Processo de devolução executado com sucesso \nEtapas Executadas:\n{steps}"
4062
+
4063
+ try:
4064
+ url_retorno = nota.get("urlRetorno")
4065
+ identificador = nota.get("identificador")
4066
+
4067
+ if url_retorno and identificador:
4068
+ await post_partner(url_retorno, identificador, numero_nota_fiscal, valor_nota_fiscal)
4069
+ else:
4070
+ console.print("Não foi possivel obter o valor de urlRetorno/identificador")
4071
+ except:
4072
+ console.print(f"Erro ao obter os dados ou enviar a requisição: {e}")
4073
+
4054
4074
  return RpaRetornoProcessoDTO(
4055
4075
  sucesso=False,
4056
4076
  retorno=f"O valor de entrada {penultimo_valor} não esta batendo com o valor de saída {ultimo_valor}, por favor verificar. \nEtapas Executadas:\n{steps}",
@@ -4058,6 +4078,7 @@ async def devolucao_ctf(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
4058
4078
  tags=[RpaTagDTO(descricao=RpaTagEnum.Negocio)]
4059
4079
  )
4060
4080
 
4081
+
4061
4082
  except Exception as ex:
4062
4083
  retorno = f"Erro Processo Devolução Prazo a Faturar: {str(ex)} \nEtapas Executadas:\n{steps}"
4063
4084
  logger.error(retorno)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: worker-automate-hub
3
- Version: 0.5.454
3
+ Version: 0.5.455
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/descartes.py,sha256=2zODOekSJSr7nuO9sUzT_F3YeG7N5EHuxnp05RguirE,41361
44
44
  worker_automate_hub/tasks/jobs/despesas_cte.py,sha256=TWbjBMZjYDugiqYUa_1DtCAUWOyVetoZI2SPs7AdDNc,13264
45
- worker_automate_hub/tasks/jobs/devolucao_ctf.py,sha256=sY27sUg8FMCC4SNXGlV7AFyOIo3PuhT8LXi2GcA4hBQ,237251
45
+ worker_automate_hub/tasks/jobs/devolucao_ctf.py,sha256=qfH5sYW8FH1wotAO57HzqITlzxi1Qjs6COPIDj12x3s,238299
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
@@ -88,7 +88,7 @@ worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbV
88
88
  worker_automate_hub/utils/util.py,sha256=hbO8PAsm_WxdiLyZSrY0_JeFKynHHJE_413odoL6ZBY,187178
89
89
  worker_automate_hub/utils/utils_nfe_entrada.py,sha256=wmnpuOesmPSryZszmapa37b9YNC0E2MkeDYnbwr-0rU,33315
90
90
  worker_automate_hub/worker.py,sha256=axdrr1xLTjWEyWfcyH3OCSpPTsyzck_fL_0u1DBLjvw,6525
91
- worker_automate_hub-0.5.454.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
92
- worker_automate_hub-0.5.454.dist-info/METADATA,sha256=qA7pPEcypTR9XuG0ME7DqhslLGwGZvzn7l5dNHWZosk,3012
93
- worker_automate_hub-0.5.454.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
94
- worker_automate_hub-0.5.454.dist-info/RECORD,,
91
+ worker_automate_hub-0.5.455.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
92
+ worker_automate_hub-0.5.455.dist-info/METADATA,sha256=4rS49QiL17e0FvMXiiGpySrWFxoUs579kUSPyoK_e3w,3012
93
+ worker_automate_hub-0.5.455.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
94
+ worker_automate_hub-0.5.455.dist-info/RECORD,,