worker-automate-hub 0.5.745__py3-none-any.whl → 0.5.747__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.
@@ -1270,46 +1270,47 @@ async def entrada_de_notas_9(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoD
1270
1270
 
1271
1271
  await worker_sleep(8)
1272
1272
  nf_chave_acesso = int(nota.get("nfe"))
1273
- status_nf_emsys = await get_status_nf_emsys(nf_chave_acesso)
1274
- if status_nf_emsys.get("status") == "Lançada":
1275
- console.print("\nNota lançada com sucesso, processo finalizado...", style="bold green")
1276
- return RpaRetornoProcessoDTO(
1277
- sucesso=True,
1278
- retorno="Nota Lançada com sucesso!",
1279
- status=RpaHistoricoStatusEnum.Sucesso,
1280
- )
1281
- else:
1282
- console.print("Dupla confirmação lançamento da nota fiscal")
1283
- # Verifica se a info 'Nota fiscal incluida' está na tela
1284
- nf_imported = await check_nota_importada(nota.get("nfe"))
1285
- if nf_imported.sucesso == True:
1286
- await worker_sleep(12)
1287
- console.print("\nVerifica se a nota ja foi lançada...")
1288
- status_nf_emsys = await get_status_nf_emsys(nf_chave_acesso)
1289
- if status_nf_emsys.get("status") == "Lançada":
1273
+ try:
1274
+ status_nf_emsys = await get_status_nf_emsys(nf_chave_acesso)
1275
+ if status_nf_emsys.get("status") == "Lançada":
1290
1276
  console.print("\nNota lançada com sucesso, processo finalizado...", style="bold green")
1291
1277
  return RpaRetornoProcessoDTO(
1292
1278
  sucesso=True,
1293
1279
  retorno="Nota Lançada com sucesso!",
1294
1280
  status=RpaHistoricoStatusEnum.Sucesso,
1295
1281
  )
1296
- else:
1297
- console.print("Erro ao lançar nota", style="bold red")
1298
- return RpaRetornoProcessoDTO(
1299
- sucesso=False,
1300
- retorno=f"Pop-up nota incluida encontrada, porém nota encontrada como 'já lançada' trazendo as seguintes informações: {nf_imported.retorno} - {error_work}",
1301
- status=RpaHistoricoStatusEnum.Falha,
1302
- tags=[RpaTagDTO(descricao=RpaTagEnum.Negocio)]
1303
- )
1282
+
1283
+ except:
1284
+ console.print("Dupla confirmação lançamento da nota fiscal")
1285
+ # Verifica se a info 'Nota fiscal incluida' está na tela
1286
+ nf_imported = await check_nota_importada(nota.get("nfe"))
1287
+ if nf_imported.sucesso == True:
1288
+ await worker_sleep(12)
1289
+ console.print("\nVerifica se a nota ja foi lançada...")
1290
+ status_nf_emsys = await get_status_nf_emsys(nf_chave_acesso)
1291
+ if status_nf_emsys.get("status") == "Lançada":
1292
+ console.print("\nNota lançada com sucesso, processo finalizado...", style="bold green")
1293
+ return RpaRetornoProcessoDTO(
1294
+ sucesso=True,
1295
+ retorno="Nota Lançada com sucesso!",
1296
+ status=RpaHistoricoStatusEnum.Sucesso,
1297
+ )
1298
+ else:
1299
+ console.print("Erro ao lançar nota", style="bold red")
1300
+ return RpaRetornoProcessoDTO(
1301
+ sucesso=False,
1302
+ retorno=f"Pop-up nota incluida encontrada, porém nota encontrada como 'já lançada' trazendo as seguintes informações: {nf_imported.retorno} - {error_work}",
1303
+ status=RpaHistoricoStatusEnum.Falha,
1304
+ tags=[RpaTagDTO(descricao=RpaTagEnum.Negocio)]
1305
+ )
1304
1306
  else:
1305
1307
  console.print("Erro ao lançar nota", style="bold red")
1306
1308
  return RpaRetornoProcessoDTO(
1307
- sucesso=False,
1308
- retorno=f"Erro ao lançar nota, erro: {nf_imported.retorno}",
1309
- status=RpaHistoricoStatusEnum.Falha,
1310
- tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)]
1311
- )
1312
-
1309
+ sucesso=False,
1310
+ retorno=f"Erro ao lançar nota, erro: {nf_imported.retorno}",
1311
+ status=RpaHistoricoStatusEnum.Falha,
1312
+ tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)]
1313
+ )
1313
1314
  except Exception as ex:
1314
1315
  observacao = f"Erro Processo Entrada de Notas: {str(ex)}"
1315
1316
  logger.error(observacao)
@@ -167,7 +167,7 @@ async def extracao_saldo_estoque(task: RpaProcessoEntradaDTO):
167
167
  campo_nome = main_window.child_window(
168
168
  class_name="Edit", control_id=1148
169
169
  ).wrapper_object()
170
- caminho_arquivo = f"C:\Users\automatehub\Downloads\saldo_estoque_{periodo_format}_{filial}.xlsx"
170
+ caminho_arquivo = f"C:\\Users\\automatehub\\Downloads\\saldo_estoque_{periodo_format}_{filial}.xlsx"
171
171
  campo_nome.set_focus()
172
172
  campo_nome.set_edit_text(caminho_arquivo)
173
173
 
@@ -3503,20 +3503,23 @@ async def check_nota_importada(xml_nota: str) -> RpaRetornoProcessoDTO:
3503
3503
 
3504
3504
  if btn_ok.exists():
3505
3505
  btn_ok.click()
3506
- status_nf_emsys = await get_status_nf_emsys(int(xml_nota))
3507
- if status_nf_emsys.get("status") == "Lançada":
3508
- return RpaRetornoProcessoDTO(
3509
- sucesso=True,
3510
- retorno=f"Nota incluida com sucesso",
3511
- status=RpaHistoricoStatusEnum.Sucesso,
3512
- )
3513
- else:
3514
- return RpaRetornoProcessoDTO(
3515
- sucesso=False,
3516
- retorno="Erro ao lançar nota",
3517
- status=RpaHistoricoStatusEnum.Falha,
3518
- tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)],
3519
- )
3506
+ try:
3507
+ status_nf_emsys = await get_status_nf_emsys(int(xml_nota))
3508
+ if status_nf_emsys.get("status") == "Lançada":
3509
+ return RpaRetornoProcessoDTO(
3510
+ sucesso=True,
3511
+ retorno=f"Nota incluida com sucesso",
3512
+ status=RpaHistoricoStatusEnum.Sucesso,
3513
+ )
3514
+ else:
3515
+ return RpaRetornoProcessoDTO(
3516
+ sucesso=False,
3517
+ retorno="Erro ao lançar nota",
3518
+ status=RpaHistoricoStatusEnum.Falha,
3519
+ tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)],
3520
+ )
3521
+ except:
3522
+ pass
3520
3523
  else:
3521
3524
  return RpaRetornoProcessoDTO(
3522
3525
  sucesso=True,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: worker-automate-hub
3
- Version: 0.5.745
3
+ Version: 0.5.747
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
@@ -65,12 +65,12 @@ worker_automate_hub/tasks/jobs/entrada_de_notas_500.py,sha256=WBsCRbH7ANiCjEn0aE
65
65
  worker_automate_hub/tasks/jobs/entrada_de_notas_503.py,sha256=bcNKy6X1aaVe6lxW-TMyUKJ_GXzHEK-8V6x9SOzOshw,48365
66
66
  worker_automate_hub/tasks/jobs/entrada_de_notas_505.py,sha256=xXeNipdXTSll8yAtAmN7v0sjN3oMlWU4THu30mKDddc,30339
67
67
  worker_automate_hub/tasks/jobs/entrada_de_notas_7139.py,sha256=7POfKc7nisc8-ysgqazrK8kT7kmFIq8irGwCMixPAE0,37948
68
- worker_automate_hub/tasks/jobs/entrada_de_notas_9.py,sha256=qV-XS8K099BySDBfkCjXoMeyCVdLYvFnpTFF6VXLlXA,64633
68
+ worker_automate_hub/tasks/jobs/entrada_de_notas_9.py,sha256=0wBeK3gpPYhek6D9KayYuis_nuHWCz48wrIi9IEcOpw,64909
69
69
  worker_automate_hub/tasks/jobs/entrada_de_notas_9000.py,sha256=0mOmS28tQKF5m7vMzInblDuWH48_qIgrohOU5UwYZ10,65498
70
70
  worker_automate_hub/tasks/jobs/exemplo_processo.py,sha256=nV0iLoip2FH2-FhLmhX3nPqsfl_MPufZ3E5Q5krJvdc,3544
71
71
  worker_automate_hub/tasks/jobs/extracao_fechamento_contabil.py,sha256=6Kr5DKjKLqtFvGzyiXtt7xrQsuU898l8pQXDq9C6AX8,19567
72
72
  worker_automate_hub/tasks/jobs/extracao_fechamento_emsys.py,sha256=-T2nZUDiFrUGm_KLxJd_4qcrageDxVpWW3KAAniLFC4,21448
73
- worker_automate_hub/tasks/jobs/extracao_saldo_estoque.py,sha256=HEAeI1KA3LTCnbIuegR4TFLibq2v8gIoOi7H2ctX1_c,8240
73
+ worker_automate_hub/tasks/jobs/extracao_saldo_estoque.py,sha256=APjMgFdvSg_HGsEwPDnZ6LNbXq773lwcxPo0J9CmmQY,8244
74
74
  worker_automate_hub/tasks/jobs/fechar_conexao_rdp.py,sha256=UWAKCS2dbfgDlSQOBdjmVJXfD1MMuUrOi3weDgB0CAc,5718
75
75
  worker_automate_hub/tasks/jobs/fidc_exportacao_docs_portal_b2b.py,sha256=tWUmYy3Zhi3JEt8AoqTsWpU-wbf5-OxhCrTOooh1WH4,15616
76
76
  worker_automate_hub/tasks/jobs/fidc_gerar_nosso_numero.py,sha256=FAmcCqKVjedf7wIped8XRLIZ9S3oWc6fakF-r1Zm0kg,12637
@@ -97,10 +97,10 @@ worker_automate_hub/utils/get_creds_gworkspace.py,sha256=ZJ0IIEjM4IXIV9rwfbOZ1V1
97
97
  worker_automate_hub/utils/logger.py,sha256=FYV9fg0_RAYJF_ZOCJEbqQAiCXlXk2gMpvUU1rzT_xs,671
98
98
  worker_automate_hub/utils/toast.py,sha256=xPHc5r5uOxB_cZlCzm13Kt2qSKLLFZALncU6Qg3Ft68,1162
99
99
  worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbVlwDl49Y,7972
100
- worker_automate_hub/utils/util.py,sha256=nV09AF8lu5poiMzWMAAgVS_VWvEuIRfNDmx46V7Nvzk,207279
100
+ worker_automate_hub/utils/util.py,sha256=gFe4yrF2G6sToawOzlgRFWEJKlqtWYp4lXQFKgNQpZg,207420
101
101
  worker_automate_hub/utils/utils_nfe_entrada.py,sha256=TOXKSHOPxy8N3-ROpTGjNIHstX0i2b8qekcj1tRvjG8,38174
102
102
  worker_automate_hub/worker.py,sha256=uhZ3f-iaQ1i8cANbljp50vkYl-Xm0_sHtjwwF_2y72o,7191
103
- worker_automate_hub-0.5.745.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
104
- worker_automate_hub-0.5.745.dist-info/METADATA,sha256=HahQn8Aa8lNqTFaEbZ0GRZA1aJGE3VS36pD_d21PUtk,3049
105
- worker_automate_hub-0.5.745.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
106
- worker_automate_hub-0.5.745.dist-info/RECORD,,
103
+ worker_automate_hub-0.5.747.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
104
+ worker_automate_hub-0.5.747.dist-info/METADATA,sha256=M1ouU11jhvWbjSSTyHYSskbCFu0eldPZQaOoQCT1TWE,3049
105
+ worker_automate_hub-0.5.747.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
106
+ worker_automate_hub-0.5.747.dist-info/RECORD,,