worker-automate-hub 0.5.61__py3-none-any.whl → 0.5.63__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -302,15 +302,16 @@ async def devolucao_prazo_a_faturar(task: RpaProcessoEntradaDTO) -> RpaRetornoPr
302
302
 
303
303
  #INSERINDO A ENTRADA E EMISSÃO
304
304
  console.print("INSERINDO A ENTRADA E EMISSÃO ...\n")
305
- field_entrada = panel_TTabSheet.child_window(class_name="TDBIEditDate", found_index=1)
306
- field_emissao = panel_TTabSheet.child_window(class_name="TDBIEditDate", found_index=0)
305
+ field_entrada = main_window.child_window(class_name="TDBIEditDate", found_index=1)
306
+ field_emissao = main_window.child_window(class_name="TDBIEditDate", found_index=2)
307
307
  field_entrada.set_edit_text(data_hoje)
308
+ await worker_sleep(1)
308
309
  field_emissao.set_edit_text(data_hoje)
309
310
  await worker_sleep(1)
310
311
 
311
312
  #INSERINDO CODIGO DO FORNECEDOR
312
313
  console.print("INSERINDO CODIGO DO FORNECEDOR ...\n")
313
- field_fornecedor = panel_TTabSheet.child_window(class_name="TDBIEditCode", found_index=0)
314
+ field_fornecedor = main_window.child_window(class_name="TDBIEditCode", found_index=0)
314
315
  field_fornecedor.set_edit_text(cod_cliente_incorreto)
315
316
  pyautogui.press("tab")
316
317
 
@@ -319,7 +320,7 @@ async def devolucao_prazo_a_faturar(task: RpaProcessoEntradaDTO) -> RpaRetornoPr
319
320
  select_box_nop_select = main_window.child_window(class_name="TDBIComboBox", found_index=0)
320
321
  select_box_nop_select.click()
321
322
  set_combobox("||List", "1662 - DEVOLUÇÃO DE VENDA MERC. ADQ. TERCEIROS- 1.662 DEV COMB C/FI")
322
- await worker_sleep(2)
323
+ await worker_sleep(4)
323
324
 
324
325
  try:
325
326
  pesquisar_icon = pyautogui.locateOnScreen(ASSETS_PATH + "\\emsys\\selecionar_venda.png", confidence=0.8)
@@ -2418,6 +2418,13 @@ async def error_after_xml_imported() -> RpaRetornoProcessoDTO:
2418
2418
  status=RpaHistoricoStatusEnum.Falha,
2419
2419
  tags=[RpaTagDTO(descricao=RpaTagEnum.Negocio)]
2420
2420
  )
2421
+ elif "de despesa" in control_text:
2422
+ return RpaRetornoProcessoDTO(
2423
+ sucesso=False,
2424
+ retorno=f"Tipo de despesa não informada: {control_text}",
2425
+ status=RpaHistoricoStatusEnum.Falha,
2426
+ tags=[RpaTagDTO(descricao=RpaTagEnum.Negocio)]
2427
+ )
2421
2428
  else:
2422
2429
  return RpaRetornoProcessoDTO(
2423
2430
  sucesso=False,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: worker-automate-hub
3
- Version: 0.5.61
3
+ Version: 0.5.63
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
@@ -37,7 +37,7 @@ worker_automate_hub/tasks/jobs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5
37
37
  worker_automate_hub/tasks/jobs/coleta_dje_process.py,sha256=UkLWTC5Ub2qBb0yY-8IZ0DLLOVJOfNTq_z9krx_t25Q,29476
38
38
  worker_automate_hub/tasks/jobs/conexao_rdp.py,sha256=lNjD-JxpPTXdvFEJAkajC_Ltyw81rIEJeu7FUfRf2qI,9586
39
39
  worker_automate_hub/tasks/jobs/descartes.py,sha256=0bMCJ0xIcK8TLSgjF6taAbGFLMU-sGDVFIhUYSRtrbg,41092
40
- worker_automate_hub/tasks/jobs/devolucao_prazo_a_faturar.py,sha256=S1Dx99vD0x1HYACpE_Ro7xJOjawdZ7uuf7i9XQmjffs,79780
40
+ worker_automate_hub/tasks/jobs/devolucao_prazo_a_faturar.py,sha256=Jra4A7Ey37maN60OX1Rdh7xg9yhAG7CNKxu0-GZKEOs,79799
41
41
  worker_automate_hub/tasks/jobs/ecac_estadual_go.py,sha256=dKkf22nH5gp3RErq5u0UzRsKyJ81fc6ZZ4vLtUuMwHA,21002
42
42
  worker_automate_hub/tasks/jobs/ecac_estadual_main.py,sha256=8WmKe4-MRtzHobXz2S4YBDNN8alfawkC-BBlRY-mn1g,1726
43
43
  worker_automate_hub/tasks/jobs/ecac_estadual_mt.py,sha256=C26zmpGQGUq6sP9lU9nanM3Fje-rkyx5tjwmRy4lyL8,25300
@@ -73,10 +73,10 @@ worker_automate_hub/utils/get_creds_gworkspace.py,sha256=ZJ0IIEjM4IXIV9rwfbOZ1V1
73
73
  worker_automate_hub/utils/logger.py,sha256=FYV9fg0_RAYJF_ZOCJEbqQAiCXlXk2gMpvUU1rzT_xs,671
74
74
  worker_automate_hub/utils/toast.py,sha256=xPHc5r5uOxB_cZlCzm13Kt2qSKLLFZALncU6Qg3Ft68,1162
75
75
  worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbVlwDl49Y,7972
76
- worker_automate_hub/utils/util.py,sha256=btrUSWjTXYC7LJWD1GDcpKdaqUqU6npy2ScZuFkJgPU,161074
76
+ worker_automate_hub/utils/util.py,sha256=_uPyZOzb8puEKXUmcFkaf7HesJBs8yITRQkOqViyugU,161430
77
77
  worker_automate_hub/utils/utils_nfe_entrada.py,sha256=iYpOs7fb7C3bY61QHySr00xlDNzrrCP0zaexOpBPuaQ,31930
78
78
  worker_automate_hub/worker.py,sha256=CT-poyP1ZYvubArYsnnNd9oJ53SPaDwgr6p6keS3nI4,6248
79
- worker_automate_hub-0.5.61.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
80
- worker_automate_hub-0.5.61.dist-info/METADATA,sha256=FeGZD1UIWWnknL7-FoF1qbEhJUWfmfKg1bmwsmpfjxM,2894
81
- worker_automate_hub-0.5.61.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
82
- worker_automate_hub-0.5.61.dist-info/RECORD,,
79
+ worker_automate_hub-0.5.63.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
80
+ worker_automate_hub-0.5.63.dist-info/METADATA,sha256=0_gQksc2BzIoP-RcU5-m4-ZnsNJLxUP7P8_CriyTsGc,2894
81
+ worker_automate_hub-0.5.63.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
82
+ worker_automate_hub-0.5.63.dist-info/RECORD,,