worker-automate-hub 0.5.738__py3-none-any.whl → 0.5.739__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.
@@ -619,9 +619,9 @@ async def entrada_de_notas_16(task: RpaProcessoEntradaDTO) -> RpaRetornoProcesso
619
619
  retorno = await emsys.incluir_registro(chave_nfe=nota.get("nfe"))
620
620
  if retorno.sucesso == True:
621
621
  return RpaRetornoProcessoDTO(
622
- sucesso=error_work.sucesso,
623
- retorno=error_work.retorno,
624
- status=error_work.status,
622
+ sucesso=retorno.sucesso,
623
+ retorno=retorno.retorno,
624
+ status=retorno.status,
625
625
  )
626
626
  except:
627
627
  try:
@@ -686,9 +686,9 @@ async def entrada_de_notas_16(task: RpaProcessoEntradaDTO) -> RpaRetornoProcesso
686
686
  retorno = await emsys.incluir_registro(chave_nfe=nota.get("nfe"))
687
687
  if retorno.sucesso == True:
688
688
  return RpaRetornoProcessoDTO(
689
- sucesso=error_work.sucesso,
690
- retorno=error_work.retorno,
691
- status=error_work.status,
689
+ sucesso=retorno.sucesso,
690
+ retorno=retorno.retorno,
691
+ status=retorno.status,
692
692
  )
693
693
  except:
694
694
  console.print("A Nota fiscal ainda não foi incluída, continuando o processo...")
@@ -461,13 +461,16 @@ class EMSys:
461
461
  await worker_sleep(20)
462
462
  console.print("\nVerifica se a nota ja foi lançada...")
463
463
  chave_nfe = int(chave_nfe)
464
- status_nf_emsys = await get_status_nf_emsys(chave_nfe)
465
- if status_nf_emsys.get("status") == "Lançada":
466
- return RpaRetornoProcessoDTO(
467
- sucesso=True,
468
- retorno="Nota lançada com sucesso!",
469
- status=RpaHistoricoStatusEnum.Sucesso,
470
- )
464
+ try:
465
+ status_nf_emsys = await get_status_nf_emsys(chave_nfe)
466
+ if status_nf_emsys.get("status") == "Lançada":
467
+ return RpaRetornoProcessoDTO(
468
+ sucesso=True,
469
+ retorno="Nota lançada com sucesso!",
470
+ status=RpaHistoricoStatusEnum.Sucesso,
471
+ )
472
+ except:
473
+ pass
471
474
 
472
475
  if chave_cte is not None:
473
476
  await worker_sleep(20)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: worker-automate-hub
3
- Version: 0.5.738
3
+ Version: 0.5.739
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
@@ -54,7 +54,7 @@ worker_automate_hub/tasks/jobs/ecac_federal.py,sha256=VFOrbMuMHL3ac1sJ-z-N1p1WYt
54
54
  worker_automate_hub/tasks/jobs/entrada_cte_1353.py,sha256=knwPbjZZsnvHKurs7O7gv7bFpQIAmv4qPB1rZa3zBsY,12102
55
55
  worker_automate_hub/tasks/jobs/entrada_cte_333.py,sha256=FvpU_bsdPB2ANQ_i63Jlkdo5yZM4zJdr2mm41KTrJtE,13285
56
56
  worker_automate_hub/tasks/jobs/entrada_de_notas_15.py,sha256=k0sRpKOCtyld1mPEu0n6HUncZYcX8wAsKAIYKGVacSs,30487
57
- worker_automate_hub/tasks/jobs/entrada_de_notas_16.py,sha256=rJHJQb5uogzVkF8W5PUn1vdJSharfPOI6D2Zl-f5ceg,37801
57
+ worker_automate_hub/tasks/jobs/entrada_de_notas_16.py,sha256=XgCaZTn0lTxio9yLTYIf0J-PA8e80dSDa7wsUnZiffI,37783
58
58
  worker_automate_hub/tasks/jobs/entrada_de_notas_207.py,sha256=A5HM2Eh2bGZueVefnQL9KiCWW95j8zX1v2MslgbDcUE,36871
59
59
  worker_automate_hub/tasks/jobs/entrada_de_notas_32.py,sha256=lku233FqwOknXF14HHC6fZ75WubE69Jp32bAUhKPtGQ,34575
60
60
  worker_automate_hub/tasks/jobs/entrada_de_notas_33.py,sha256=ODp82BkWaiF40t6uZLJYxG2nGGnvDyeQBHhkkh9ZgPI,35994
@@ -97,9 +97,9 @@ worker_automate_hub/utils/logger.py,sha256=FYV9fg0_RAYJF_ZOCJEbqQAiCXlXk2gMpvUU1
97
97
  worker_automate_hub/utils/toast.py,sha256=xPHc5r5uOxB_cZlCzm13Kt2qSKLLFZALncU6Qg3Ft68,1162
98
98
  worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbVlwDl49Y,7972
99
99
  worker_automate_hub/utils/util.py,sha256=nV09AF8lu5poiMzWMAAgVS_VWvEuIRfNDmx46V7Nvzk,207279
100
- worker_automate_hub/utils/utils_nfe_entrada.py,sha256=qS_REFGudeZhoOkamUst8WzW1XyMGws5GehrMr5XZTM,38085
100
+ worker_automate_hub/utils/utils_nfe_entrada.py,sha256=TOXKSHOPxy8N3-ROpTGjNIHstX0i2b8qekcj1tRvjG8,38174
101
101
  worker_automate_hub/worker.py,sha256=TKTEm6vAf5p_Y_GwvIac7KRUQjlfdHTrkR73NbkjOvk,7190
102
- worker_automate_hub-0.5.738.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
103
- worker_automate_hub-0.5.738.dist-info/METADATA,sha256=68VnfamLXGURb8yHdOSQTpsJlylzm6AfCdtJqaW2YSU,3049
104
- worker_automate_hub-0.5.738.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
105
- worker_automate_hub-0.5.738.dist-info/RECORD,,
102
+ worker_automate_hub-0.5.739.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
103
+ worker_automate_hub-0.5.739.dist-info/METADATA,sha256=4P3IWx08HiInwIVDaf9dYOR9Y3I_K3umO1tzI2s1rCQ,3049
104
+ worker_automate_hub-0.5.739.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
105
+ worker_automate_hub-0.5.739.dist-info/RECORD,,