worker-automate-hub 0.5.86__py3-none-any.whl → 0.5.87__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.
@@ -324,6 +324,44 @@ async def entrada_de_notas_505(task: RpaProcessoEntradaDTO) -> RpaRetornoProcess
324
324
  tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)]
325
325
  )
326
326
 
327
+ await worker_sleep(2)
328
+ console.print("Navegando pela Janela de Nota Fiscal de Entrada...\n")
329
+ app = Application().connect(class_name="TFrmNotaFiscalEntrada")
330
+ main_window = app["TFrmNotaFiscalEntrada"]
331
+
332
+ main_window.set_focus()
333
+ console.print("Acessando a aba de Pagamentos... \n")
334
+ panel_TPage = main_window.child_window(class_name="TPage", title="Formulario")
335
+ panel_TTabSheet = panel_TPage.child_window(class_name="TcxCustomInnerTreeView")
336
+ panel_TTabSheet.wait("visible")
337
+ panel_TTabSheet.click()
338
+ send_keys("{DOWN " + ("7") + "}")
339
+
340
+ panel_TPage = main_window.child_window(class_name="TPage", title="Formulario")
341
+ panel_TTabSheet = panel_TPage.child_window(class_name="TPageControl")
342
+
343
+ panel_TabPagamento = panel_TTabSheet.child_window(class_name="TTabSheet")
344
+
345
+ panel_TabParcelamento = panel_TTabSheet.child_window(title="Parcelamento")
346
+
347
+ tipo_cobranca = panel_TabParcelamento.child_window(
348
+ class_name="TDBIComboBox", found_index=0
349
+ )
350
+
351
+ console.print("Verificando o tipo de cobrança selecionado... \n")
352
+ tipo_selecionado = tipo_cobranca.window_text()
353
+ if "boleto" in tipo_selecionado.lower() or 'carteira' in tipo_selecionado.lower():
354
+ console.print(f"Tipo de cobrança corretamente selecionado {tipo_selecionado}... \n")
355
+ else:
356
+ console.print(f"Tipo de cobrança não foi selecionado corretamente, interagindo com o campo para selecionar o campo corretamente... \n")
357
+ tipo_cobranca.click()
358
+ try:
359
+ set_combobox("||List", "BANCO DO BRASIL BOLETO")
360
+ except:
361
+ set_combobox("||List", "CARTEIRA")
362
+
363
+ await worker_sleep(2)
364
+
327
365
  # Inclui registro
328
366
  console.print(f"Incluindo registro...\n")
329
367
  await worker_sleep(6)
@@ -391,4 +429,4 @@ async def entrada_de_notas_505(task: RpaProcessoEntradaDTO) -> RpaRetornoProcess
391
429
 
392
430
  finally:
393
431
  # Deleta o xml
394
- await delete_xml(nota.get("nfe"))
432
+ await delete_xml(nota.get("nfe"))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: worker-automate-hub
3
- Version: 0.5.86
3
+ Version: 0.5.87
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,7 +53,7 @@ worker_automate_hub/tasks/jobs/entrada_de_notas_34.py,sha256=MZNrG5KArW43lM_aPHy
53
53
  worker_automate_hub/tasks/jobs/entrada_de_notas_36.py,sha256=sFe3aYh6MrpK18aJdddsOG8QmJthbra9EhwLA_jvyWg,23194
54
54
  worker_automate_hub/tasks/jobs/entrada_de_notas_39.py,sha256=KDCOYx--J-6CFN3Af6sQbMLRGGjsuGHn_yB1ydEfDRE,35945
55
55
  worker_automate_hub/tasks/jobs/entrada_de_notas_500.py,sha256=JRHdejuNpQxaDCHcJ0eo_Sf2gngYdzannDpmPyj7zdc,34006
56
- worker_automate_hub/tasks/jobs/entrada_de_notas_505.py,sha256=7VR9udGS7NCBE9WEJA9_vpL5sTM7TFEMcCjEumBdokQ,15681
56
+ worker_automate_hub/tasks/jobs/entrada_de_notas_505.py,sha256=daN2YyJUgLwCxvTuelL9JUzWzuq0aG8IWUhvatFrCWI,17503
57
57
  worker_automate_hub/tasks/jobs/entrada_de_notas_7139.py,sha256=ZUaowPxGxydx_US5VBcrGV7oMr7Br4Vil9EwovsRitU,17855
58
58
  worker_automate_hub/tasks/jobs/entrada_de_notas_9.py,sha256=vUj25yHxkCNhpyOU5Vk81gsYcTTH1TJ3yn-b8N00JfQ,52857
59
59
  worker_automate_hub/tasks/jobs/exemplo_processo.py,sha256=nV0iLoip2FH2-FhLmhX3nPqsfl_MPufZ3E5Q5krJvdc,3544
@@ -76,7 +76,7 @@ worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbV
76
76
  worker_automate_hub/utils/util.py,sha256=ZMbWjvZ6vbDgkosFAt2xUJGoAJOIZhxNfJyYplvyN3Q,162310
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.86.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
80
- worker_automate_hub-0.5.86.dist-info/METADATA,sha256=ff80QPuHY_Z6CKunpDdTO0xwhZpbDm0wZu_vOTS50VI,2894
81
- worker_automate_hub-0.5.86.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
82
- worker_automate_hub-0.5.86.dist-info/RECORD,,
79
+ worker_automate_hub-0.5.87.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
80
+ worker_automate_hub-0.5.87.dist-info/METADATA,sha256=Zr2zxQd6u1VHpUZNWhXz_w7LQnm8HzWvHrB6cV0krvA,2894
81
+ worker_automate_hub-0.5.87.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
82
+ worker_automate_hub-0.5.87.dist-info/RECORD,,