worker-automate-hub 0.5.621__py3-none-any.whl → 0.5.622__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.
@@ -196,7 +196,7 @@ class EMSys:
196
196
  # Check Alterar Trib. Manual
197
197
  pyautogui.click(1177, 740)
198
198
  # pyautogui.moveTo(1177, 740)
199
-
199
+
200
200
  # Click Alterar
201
201
  await worker_sleep(1)
202
202
  pyautogui.click(1180, 776)
@@ -219,17 +219,35 @@ class EMSys:
219
219
  console.print(
220
220
  "Item não é isqueiro. Continuando para o próximo...\n"
221
221
  )
222
- #Seleciona o IPI 0%
223
- ipi_combobox = main_window.child_window(
224
- class_name="TDBIComboBox", found_index=4
225
- )
226
- ipi_combobox.select("IPI 0%")
222
+ # Caminho da imagem
223
+ caminho_imagem = "assets\\ipi_0.png"
224
+ # Verifica se o arquivo existe
225
+ if os.path.exists(caminho_imagem):
226
+ print("Imagem já existe. Clicando em 'Cancelar'...")
227
+
228
+ # Conectando à janela do app
229
+ app = Application().connect(class_name="TFrmAlteraItemNFE", timeout=60)
230
+ janela_cancelar = app["TFrmAlteraItemNFE"]
231
+
232
+ # Encontra o botão pelo texto
233
+ try:
234
+ cancelar_btn = janela_cancelar.child_window(class_name ="TDBIBitBtn", found_index=2)
235
+ cancelar_btn.click_input()
236
+ print("Clicou em 'Cancelar'.")
237
+ except Exception as e:
238
+ print(f"Erro ao clicar no botão: {e}")
239
+ else:
240
+ #Seleciona o IPI 0%
241
+ ipi_combobox = main_window.child_window(
242
+ class_name="TDBIComboBox", found_index=4
243
+ )
244
+ ipi_combobox.select("IPI 0%")
227
245
 
228
- # Click Alterar
229
- await worker_sleep(1)
230
- pyautogui.click(1180, 776)
231
- await worker_sleep(1)
232
- await self.click_itens_da_nota()
246
+ # Click Alterar
247
+ await worker_sleep(1)
248
+ pyautogui.click(1180, 776)
249
+ await worker_sleep(1)
250
+ await self.click_itens_da_nota()
233
251
 
234
252
  # Fecha a janela de alteração de item
235
253
  # try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: worker-automate-hub
3
- Version: 0.5.621
3
+ Version: 0.5.622
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
@@ -43,6 +43,7 @@ worker_automate_hub/tasks/jobs/cte_manual.py,sha256=JucHpRMjMiy-QEJ0wtFnytLpN53t
43
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
45
  worker_automate_hub/tasks/jobs/devolucao_ctf.py,sha256=5vHKXUJjW5p-UgnghjgSTaSRYFbkiImQO7lNxFvAPbo,252967
46
+ worker_automate_hub/tasks/jobs/devolucao_ctf_35.py,sha256=e9t5k2mtZcUcEGKPWysbWzsH_gqrK-6aBXjWe2jWfTg,253948
46
47
  worker_automate_hub/tasks/jobs/devolucao_prazo_a_faturar.py,sha256=byIk02T4fWCVgKisf50ZAEY26d8FMTlX9S7RnQVtoEE,256763
47
48
  worker_automate_hub/tasks/jobs/ecac_estadual_go.py,sha256=dKkf22nH5gp3RErq5u0UzRsKyJ81fc6ZZ4vLtUuMwHA,21002
48
49
  worker_automate_hub/tasks/jobs/ecac_estadual_main.py,sha256=8WmKe4-MRtzHobXz2S4YBDNN8alfawkC-BBlRY-mn1g,1726
@@ -94,9 +95,9 @@ worker_automate_hub/utils/logger.py,sha256=FYV9fg0_RAYJF_ZOCJEbqQAiCXlXk2gMpvUU1
94
95
  worker_automate_hub/utils/toast.py,sha256=xPHc5r5uOxB_cZlCzm13Kt2qSKLLFZALncU6Qg3Ft68,1162
95
96
  worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbVlwDl49Y,7972
96
97
  worker_automate_hub/utils/util.py,sha256=_pgZOFWgXoov6WPbqyRTDVXJCRFfucYB3gb9swzU7bo,198281
97
- worker_automate_hub/utils/utils_nfe_entrada.py,sha256=oh7sxHcElqK1wUbbmIywAyZuvGK2LW0vfW5nt37Ixyk,35317
98
+ worker_automate_hub/utils/utils_nfe_entrada.py,sha256=T3FiVcjVUNTKSauEAD7PBMAzT5uy96OwvKpb6u8PcjA,36408
98
99
  worker_automate_hub/worker.py,sha256=axdrr1xLTjWEyWfcyH3OCSpPTsyzck_fL_0u1DBLjvw,6525
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,,
100
+ worker_automate_hub-0.5.622.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
101
+ worker_automate_hub-0.5.622.dist-info/METADATA,sha256=N4pQZdertaCyBpEuFIpgZ67fF4dXWnFitZ4xvuYre6o,3049
102
+ worker_automate_hub-0.5.622.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
103
+ worker_automate_hub-0.5.622.dist-info/RECORD,,