worker-automate-hub 0.5.608__py3-none-any.whl → 0.5.610__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.
@@ -282,9 +282,7 @@ async def janela_conhecimento_frete(cte):
282
282
 
283
283
  try:
284
284
  # Clicar no botão - para apagar registro se existir
285
- main_window.child_window(
286
- class_name="TDBIBitBtn", found_index=4
287
- ).click()
285
+ main_window.child_window(class_name="TDBIBitBtn", found_index=4).click()
288
286
 
289
287
  await worker_sleep(2)
290
288
 
@@ -387,7 +385,6 @@ async def importar_cte_xml(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO
387
385
  )
388
386
 
389
387
  await kill_all_emsys()
390
-
391
388
 
392
389
  app = Application(backend="win32").start("C:\\Rezende\\EMSys3\\EMSys3_35.exe")
393
390
  warnings.filterwarnings(
@@ -424,7 +421,7 @@ async def importar_cte_xml(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO
424
421
  await importar_xml_conhecimento()
425
422
  await selecionar_xml(cte)
426
423
  await janela_conhecimento_frete(cte)
427
- await worker_sleep(3)
424
+ await worker_sleep(8)
428
425
  try:
429
426
  await janela_information()
430
427
  except:
@@ -316,6 +316,10 @@ async def devolucao_ctf(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
316
316
  pyautogui.press("tab")
317
317
  await worker_sleep(2)
318
318
 
319
+
320
+ itens = nota.get('itens', [])
321
+ itens_arla = [item for item in itens if item['descricao'].lower() == 'arla']
322
+
319
323
  #SELECIONAO A NOP
320
324
  console.print("SELECIONAO A NOP...\n")
321
325
  select_box_nop_select = main_window.child_window(class_name="TDBIComboBox", found_index=0)
@@ -324,10 +328,16 @@ async def devolucao_ctf(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
324
328
  itens_to_select = select_box_nop_select.texts()
325
329
  nop_to_be_select = ''
326
330
 
327
- for item in itens_to_select:
328
- if '1662' in item and (('c/fi' in item.lower() or 'c /fi' in item.lower())):
329
- nop_to_be_select = item
330
- break
331
+ if len(itens_arla) == len(itens):
332
+ for item in itens_to_select:
333
+ if '1202' in item and (('c/est' in item.lower() or 's /fi' in item.lower())):
334
+ nop_to_be_select = item
335
+ break
336
+ else:
337
+ for item in itens_to_select:
338
+ if '1662' in item and (('c/fi' in item.lower() or 'c /fi' in item.lower())):
339
+ nop_to_be_select = item
340
+ break
331
341
 
332
342
  if nop_to_be_select != '':
333
343
  set_combobox("||List", nop_to_be_select)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: worker-automate-hub
3
- Version: 0.5.608
3
+ Version: 0.5.610
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
@@ -40,9 +40,9 @@ worker_automate_hub/tasks/jobs/abertura_livros_fiscais.py,sha256=mX5GeaqwTa-bu61
40
40
  worker_automate_hub/tasks/jobs/coleta_dje_process.py,sha256=UkLWTC5Ub2qBb0yY-8IZ0DLLOVJOfNTq_z9krx_t25Q,29476
41
41
  worker_automate_hub/tasks/jobs/conexao_rdp.py,sha256=S6QC4xhuo0pB5FjaUJZNMm1LIgEjpjifReCTBDqxH-U,11719
42
42
  worker_automate_hub/tasks/jobs/cte_manual.py,sha256=JucHpRMjMiy-QEJ0wtFnytLpN53tKXgCDI05nGLGclU,603
43
- worker_automate_hub/tasks/jobs/cte_xml.py,sha256=Ix24vLDjDbLxAgmAdljSltAAIiRGOt3DACKdsJDxX68,15072
43
+ worker_automate_hub/tasks/jobs/cte_xml.py,sha256=CdDcDRjCJTU2DV0KAglqgCVb13ahMqzYdmaeJRKcR0o,15038
44
44
  worker_automate_hub/tasks/jobs/descartes.py,sha256=E5kKef8j7e0PTm6NBeZAXkljUoAFEMjVWvHaJ8g2fv4,44451
45
- worker_automate_hub/tasks/jobs/devolucao_ctf.py,sha256=s7-K3byu-G5smd0aU8_9dqImZKAf4X0PcpsQNLTf9AI,251928
45
+ worker_automate_hub/tasks/jobs/devolucao_ctf.py,sha256=t_fWAXIEKPSL_kfhORU5cWARwpHAt2HcuAKusAbVO8E,252356
46
46
  worker_automate_hub/tasks/jobs/devolucao_prazo_a_faturar.py,sha256=byIk02T4fWCVgKisf50ZAEY26d8FMTlX9S7RnQVtoEE,256763
47
47
  worker_automate_hub/tasks/jobs/ecac_estadual_go.py,sha256=dKkf22nH5gp3RErq5u0UzRsKyJ81fc6ZZ4vLtUuMwHA,21002
48
48
  worker_automate_hub/tasks/jobs/ecac_estadual_main.py,sha256=8WmKe4-MRtzHobXz2S4YBDNN8alfawkC-BBlRY-mn1g,1726
@@ -96,7 +96,7 @@ worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbV
96
96
  worker_automate_hub/utils/util.py,sha256=_pgZOFWgXoov6WPbqyRTDVXJCRFfucYB3gb9swzU7bo,198281
97
97
  worker_automate_hub/utils/utils_nfe_entrada.py,sha256=wmnpuOesmPSryZszmapa37b9YNC0E2MkeDYnbwr-0rU,33315
98
98
  worker_automate_hub/worker.py,sha256=axdrr1xLTjWEyWfcyH3OCSpPTsyzck_fL_0u1DBLjvw,6525
99
- worker_automate_hub-0.5.608.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
100
- worker_automate_hub-0.5.608.dist-info/METADATA,sha256=5RMFSiilRkGiPm4bquFsvcFIoScZiCgHQOGcvpVuCqU,3049
101
- worker_automate_hub-0.5.608.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
102
- worker_automate_hub-0.5.608.dist-info/RECORD,,
99
+ worker_automate_hub-0.5.610.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
100
+ worker_automate_hub-0.5.610.dist-info/METADATA,sha256=FeQk6w3qumgWqZ44Llm4XJGeeGQorGqz46nvdEmF6FM,3049
101
+ worker_automate_hub-0.5.610.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
102
+ worker_automate_hub-0.5.610.dist-info/RECORD,,