worker-automate-hub 0.5.620__py3-none-any.whl → 0.5.621__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.
@@ -207,14 +207,14 @@ async def entrada_de_notas_16(task: RpaProcessoEntradaDTO) -> RpaRetornoProcesso
207
207
  )
208
208
  combo_box_natureza_operacao.click()
209
209
  await worker_sleep(4)
210
- try:
211
- set_combobox("||List", "1403 - COMPRA DE MERCADORIAS- 1.403")
212
- except:
213
- select_1403 = main_window.child_window(
214
- class_name="TDBIComboBox", found_index=0
215
- )
216
- select_1403.select("1403-COMPRA DE MERCADORIAS- 1.403")
217
- send_keys('{ENTER}')
210
+ tipos_natureza = ["1403 - COMPRA DE MERCADORIAS- 1.403", "1403-COMPRA DE MERCADORIAS- 1.403"]
211
+ for tipo in tipos_natureza:
212
+ try:
213
+ combo_box_natureza_operacao.select(tipo)
214
+ send_keys('{ENTER}')
215
+ except:
216
+ pass
217
+
218
218
  await worker_sleep(3)
219
219
  elif nota.get("cfop") == "6910":
220
220
  combo_box_natureza_operacao = main_window.child_window(
@@ -277,17 +277,22 @@ class EMSys:
277
277
  await worker_sleep(2)
278
278
  # pyautogui.click(893, 549)
279
279
  await worker_sleep(5)
280
- tipos_cobranca = ["BANCO DO BRASIL BOLETO", "BOLETO"]
281
- for tipo in tipos_cobranca:
282
- try:
283
- await worker_sleep(4)
280
+ try:
281
+ caminho_imagem = "assets\\banco_boleto.png"
282
+ # Verifica se apareceu a imagem de "sem dados"
283
+ localizacao = pyautogui.locateOnScreen(caminho_imagem, confidence=0.9)
284
+ if localizacao:
285
+ pass
286
+
287
+ except:
288
+ try:
284
289
  # Selecionar natureza da operação 9 - outros
285
290
  select_other = main_window.child_window(
286
291
  class_name="TDBIComboBox", found_index=0
287
- ).click()
288
- select_other.select(tipo)
292
+ )
293
+ select_other.select("BOLETO")
289
294
  except Exception as e:
290
- print(f"Não foi possível selecionar '{tipo}': {e}")
295
+ print(f"Não foi possível selecionar: {e}")
291
296
  # try:
292
297
  # set_combobox("||List", "BANCO DO BRASIL BOLETO")
293
298
  # except:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: worker-automate-hub
3
- Version: 0.5.620
3
+ Version: 0.5.621
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/ecac_federal.py,sha256=VFOrbMuMHL3ac1sJ-z-N1p1WYt
53
53
  worker_automate_hub/tasks/jobs/entrada_cte_1353.py,sha256=knwPbjZZsnvHKurs7O7gv7bFpQIAmv4qPB1rZa3zBsY,12102
54
54
  worker_automate_hub/tasks/jobs/entrada_cte_333.py,sha256=FvpU_bsdPB2ANQ_i63Jlkdo5yZM4zJdr2mm41KTrJtE,13285
55
55
  worker_automate_hub/tasks/jobs/entrada_de_notas_15.py,sha256=BYmdPLJFZEHD_lVSpuaTDLZrx33ox8Re7QDzXjXDiB8,29524
56
- worker_automate_hub/tasks/jobs/entrada_de_notas_16.py,sha256=_61V5AtpWQNXfJRTva_9NV8V28f52E2dvzs3hJXhLtE,36014
56
+ worker_automate_hub/tasks/jobs/entrada_de_notas_16.py,sha256=TcPoOIBd_ZquOi-uCiPnZWNakXMxQRHLYJ_qa7ou3Ig,36003
57
57
  worker_automate_hub/tasks/jobs/entrada_de_notas_207.py,sha256=A5HM2Eh2bGZueVefnQL9KiCWW95j8zX1v2MslgbDcUE,36871
58
58
  worker_automate_hub/tasks/jobs/entrada_de_notas_32.py,sha256=lku233FqwOknXF14HHC6fZ75WubE69Jp32bAUhKPtGQ,34575
59
59
  worker_automate_hub/tasks/jobs/entrada_de_notas_33.py,sha256=MO5hjy2NS__6FXvzd3R24hGEf4u_bOvqD5lJx70Awu0,33590
@@ -94,9 +94,9 @@ worker_automate_hub/utils/logger.py,sha256=FYV9fg0_RAYJF_ZOCJEbqQAiCXlXk2gMpvUU1
94
94
  worker_automate_hub/utils/toast.py,sha256=xPHc5r5uOxB_cZlCzm13Kt2qSKLLFZALncU6Qg3Ft68,1162
95
95
  worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbVlwDl49Y,7972
96
96
  worker_automate_hub/utils/util.py,sha256=_pgZOFWgXoov6WPbqyRTDVXJCRFfucYB3gb9swzU7bo,198281
97
- worker_automate_hub/utils/utils_nfe_entrada.py,sha256=bcnsdADBNZn-ltEebKBs7SxstoZOagyaLWftM5-1BCA,35178
97
+ worker_automate_hub/utils/utils_nfe_entrada.py,sha256=oh7sxHcElqK1wUbbmIywAyZuvGK2LW0vfW5nt37Ixyk,35317
98
98
  worker_automate_hub/worker.py,sha256=axdrr1xLTjWEyWfcyH3OCSpPTsyzck_fL_0u1DBLjvw,6525
99
- worker_automate_hub-0.5.620.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
100
- worker_automate_hub-0.5.620.dist-info/METADATA,sha256=7fDImq-v45y66DC9rnqoPXGsuIEFmRtp4JFDbefyeLw,3049
101
- worker_automate_hub-0.5.620.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
102
- worker_automate_hub-0.5.620.dist-info/RECORD,,
99
+ worker_automate_hub-0.5.621.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
100
+ worker_automate_hub-0.5.621.dist-info/METADATA,sha256=qIG0u-sJEJl0e_3w3LKdxzIb2hFNLR8PFPuMEEvZXeA,3049
101
+ worker_automate_hub-0.5.621.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
102
+ worker_automate_hub-0.5.621.dist-info/RECORD,,