worker-automate-hub 0.5.742__py3-none-any.whl → 0.5.743__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.
@@ -593,7 +593,18 @@ async def entrada_de_notas_15(task: RpaProcessoEntradaDTO) -> RpaRetornoProcesso
593
593
  )
594
594
 
595
595
  await worker_sleep(8)
596
- await emsys.incluir_registro()
596
+ try:
597
+ retorno = await emsys.incluir_registro(chave_nfe=nota.get("nfe"))
598
+ if retorno.sucesso == True:
599
+ return RpaRetornoProcessoDTO(
600
+ sucesso=retorno.sucesso,
601
+ retorno=retorno.retorno,
602
+ status=retorno.status,
603
+ )
604
+ except:
605
+ console.print(
606
+ "A Nota fiscal ainda não foi incluída, continuando o processo..."
607
+ )
597
608
  await worker_sleep(5)
598
609
 
599
610
  # await emsys.verify_warning_and_error("Warning", "No")
@@ -713,7 +713,16 @@ async def entrada_de_notas_39(task: RpaProcessoEntradaDTO) -> RpaRetornoProcesso
713
713
  pyautogui.write(nota["valorNota"])
714
714
  await worker_sleep(3)
715
715
 
716
- await emsys.incluir_registro()
716
+ try:
717
+ retorno = await emsys.incluir_registro()
718
+ if retorno.sucesso == True:
719
+ return RpaRetornoProcessoDTO(
720
+ sucesso=retorno.sucesso,
721
+ retorno=retorno.retorno,
722
+ status=retorno.status,
723
+ )
724
+ except:
725
+ console.print("A Nota fiscal ainda não foi incluída, continuando o processo...")
717
726
  await worker_sleep(25)
718
727
 
719
728
  console.print(
@@ -775,8 +784,16 @@ async def entrada_de_notas_39(task: RpaProcessoEntradaDTO) -> RpaRetornoProcesso
775
784
  status=RpaHistoricoStatusEnum.Falha,
776
785
  tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)]
777
786
  )
778
-
779
- await emsys.incluir_registro()
787
+ try:
788
+ retorno = await emsys.incluir_registro()
789
+ if retorno.sucesso == True:
790
+ return RpaRetornoProcessoDTO(
791
+ sucesso=retorno.sucesso,
792
+ retorno=retorno.retorno,
793
+ status=retorno.status,
794
+ )
795
+ except:
796
+ console.print("A Nota fiscal ainda não foi incluída, continuando o processo...")
780
797
  await worker_sleep(25)
781
798
 
782
799
  console.print("Verificando a existencia de POP-UP de Itens que Ultrapassam a Variação Máxima de Custo ...\n")
@@ -710,7 +710,18 @@ async def entrada_de_notas_503(task: RpaProcessoEntradaDTO) -> RpaRetornoProcess
710
710
  pyautogui.write(nota["valorNota"])
711
711
  await worker_sleep(3)
712
712
 
713
- await emsys.incluir_registro()
713
+ try:
714
+ retorno = await emsys.incluir_registro(chave_nfe=nota.get("nfe"))
715
+ if retorno.sucesso == True:
716
+ return RpaRetornoProcessoDTO(
717
+ sucesso=retorno.sucesso,
718
+ retorno=retorno.retorno,
719
+ status=retorno.status,
720
+ )
721
+ except:
722
+ console.print(
723
+ "A Nota fiscal ainda não foi incluída, continuando o processo..."
724
+ )
714
725
  await worker_sleep(25)
715
726
 
716
727
  console.print(
@@ -773,7 +784,18 @@ async def entrada_de_notas_503(task: RpaProcessoEntradaDTO) -> RpaRetornoProcess
773
784
  tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)]
774
785
  )
775
786
 
776
- await emsys.incluir_registro()
787
+ try:
788
+ retorno = await emsys.incluir_registro(chave_nfe=nota.get("nfe"))
789
+ if retorno.sucesso == True:
790
+ return RpaRetornoProcessoDTO(
791
+ sucesso=retorno.sucesso,
792
+ retorno=retorno.retorno,
793
+ status=retorno.status,
794
+ )
795
+ except:
796
+ console.print(
797
+ "A Nota fiscal ainda não foi incluída, continuando o processo..."
798
+ )
777
799
  await worker_sleep(25)
778
800
 
779
801
  console.print("Verificando a existencia de POP-UP de Itens que Ultrapassam a Variação Máxima de Custo ...\n")
@@ -1172,9 +1172,9 @@ async def entrada_de_notas_9(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoD
1172
1172
  retorno = await emsys.incluir_registro(chave_nfe=nota.get("nfe"))
1173
1173
  if retorno.sucesso == True:
1174
1174
  return RpaRetornoProcessoDTO(
1175
- sucesso=error_work.sucesso,
1176
- retorno=error_work.retorno,
1177
- status=error_work.status,
1175
+ sucesso=retorno.sucesso,
1176
+ retorno=retorno.retorno,
1177
+ status=retorno.status,
1178
1178
  )
1179
1179
  except:
1180
1180
  console.print("A Nota fiscal ainda não foi incluída, continuando o processo...")
@@ -1190,9 +1190,9 @@ async def entrada_de_notas_9000(task: RpaProcessoEntradaDTO) -> RpaRetornoProces
1190
1190
  retorno = await emsys.incluir_registro(chave_nfe=nota.get("nfe"))
1191
1191
  if retorno.sucesso == True:
1192
1192
  return RpaRetornoProcessoDTO(
1193
- sucesso=error_work.sucesso,
1194
- retorno=error_work.retorno,
1195
- status=error_work.status,
1193
+ sucesso=retorno.sucesso,
1194
+ retorno=retorno.retorno,
1195
+ status=retorno.status,
1196
1196
  )
1197
1197
  except:
1198
1198
  console.print("A Nota fiscal ainda não foi incluída, continuando o processo...")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: worker-automate-hub
3
- Version: 0.5.742
3
+ Version: 0.5.743
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
@@ -53,20 +53,20 @@ worker_automate_hub/tasks/jobs/ecac_estadual_sp.py,sha256=AqSsn0SlK_nok4AhMCNUlA
53
53
  worker_automate_hub/tasks/jobs/ecac_federal.py,sha256=VFOrbMuMHL3ac1sJ-z-N1p1WYtP-e-JJHbvUfgmfgNw,55748
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
- worker_automate_hub/tasks/jobs/entrada_de_notas_15.py,sha256=k0sRpKOCtyld1mPEu0n6HUncZYcX8wAsKAIYKGVacSs,30487
56
+ worker_automate_hub/tasks/jobs/entrada_de_notas_15.py,sha256=Lb-19OLyOVM_EV9h4A7ylkHeilnf4G1aBfdbBdNoJXk,30928
57
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
61
61
  worker_automate_hub/tasks/jobs/entrada_de_notas_34.py,sha256=AXUL8DakrDeTxWW8dn36W830XfIuO47MFUusbUkrnUc,33586
62
62
  worker_automate_hub/tasks/jobs/entrada_de_notas_36.py,sha256=z494n0SUyxorjhvpbat2ELnj7lbhtWPb9JOIsattwA8,35216
63
- worker_automate_hub/tasks/jobs/entrada_de_notas_39.py,sha256=0SdsXZzIZoLdEzW9HXyFjo5oYwQioDVYSDeevouEKZQ,47831
63
+ worker_automate_hub/tasks/jobs/entrada_de_notas_39.py,sha256=cuIKcQJctyFhfm9vjxA8kIPAqUxMaitu8Uj9vIvJ46I,48693
64
64
  worker_automate_hub/tasks/jobs/entrada_de_notas_500.py,sha256=WBsCRbH7ANiCjEn0aEDc5AqGf6grEFhxyBoAIh3zJ40,44160
65
- worker_automate_hub/tasks/jobs/entrada_de_notas_503.py,sha256=q4_PeGrMqMs1EzBp7hGtpAuteqmvzDg-Q796pTlF8KI,47395
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=ZYE2YmQJ9954Uuc9fiSykGi0ws_NPXs8ex244y20P44,64642
69
- worker_automate_hub/tasks/jobs/entrada_de_notas_9000.py,sha256=cDMzDGcylhg9pwtCPmZ82YItPS05PWcPtfeeC2WGrpA,65507
68
+ worker_automate_hub/tasks/jobs/entrada_de_notas_9.py,sha256=qV-XS8K099BySDBfkCjXoMeyCVdLYvFnpTFF6VXLlXA,64633
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
@@ -100,7 +100,7 @@ worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbV
100
100
  worker_automate_hub/utils/util.py,sha256=nV09AF8lu5poiMzWMAAgVS_VWvEuIRfNDmx46V7Nvzk,207279
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.742.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
104
- worker_automate_hub-0.5.742.dist-info/METADATA,sha256=ULkTf6SLRSNXS-W1q9H3Xu_byRFzQl_BMATU_TUa77A,3049
105
- worker_automate_hub-0.5.742.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
106
- worker_automate_hub-0.5.742.dist-info/RECORD,,
103
+ worker_automate_hub-0.5.743.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
104
+ worker_automate_hub-0.5.743.dist-info/METADATA,sha256=YyURTHvjrhqWu0Dz5M-vnYuvB1g_xd0wZXtivVAGTGg,3049
105
+ worker_automate_hub-0.5.743.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
106
+ worker_automate_hub-0.5.743.dist-info/RECORD,,