worker-automate-hub 0.5.699__py3-none-any.whl → 0.5.701__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.
@@ -65,7 +65,7 @@ async def descartes(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
65
65
 
66
66
  # Fecha a instancia do emsys - caso esteja aberta
67
67
  await kill_all_emsys()
68
- app = Application(backend="win32").start("C:\\Rezende\\EMSys3\\EMSys3.exe")
68
+ app = Application(backend="win32").start("C:\\Rezende\\EMSys3\\EMSys3_38.exe")
69
69
  warnings.filterwarnings(
70
70
  "ignore",
71
71
  category=UserWarning,
@@ -77,7 +77,7 @@ async def descartes(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
77
77
  if return_login.sucesso == True:
78
78
  console.print("Pesquisando por: Cadastro Pré Venda")
79
79
  type_text_into_field(
80
- "Cadastro Pré Venda", app["TFrmMenuPrincipal"]["Edit"], True, "50"
80
+ "Cadastro Pre-Venda", app["TFrmMenuPrincipal"]["Edit"], True, "50"
81
81
  )
82
82
  pyautogui.press("enter")
83
83
  await worker_sleep(1)
@@ -138,20 +138,21 @@ class EMSys:
138
138
 
139
139
  try:
140
140
  while index_item_atual < index_ultimo_item:
141
+
141
142
  send_keys("^({HOME})")
142
143
  await worker_sleep(1)
143
144
 
144
145
  if index_item_atual > 0:
145
146
  send_keys("{DOWN " + str(index_item_atual) + "}")
146
-
147
147
  await worker_sleep(2)
148
148
  send_keys("+{F10}")
149
149
  await worker_sleep(1)
150
150
  send_keys("{DOWN 2}")
151
151
  await worker_sleep(1)
152
152
  send_keys("{ENTER}")
153
-
153
+
154
154
  await worker_sleep(2)
155
+
155
156
  app = Application().connect(title="Alteração de Item")
156
157
  main_window = app["Alteração de Item"]
157
158
 
@@ -160,7 +161,25 @@ class EMSys:
160
161
  edit = main_window.child_window(
161
162
  class_name="TDBIEditCode", found_index=0
162
163
  )
163
-
164
+ # Caminho da imagem
165
+ caminho_imagem = r"C:\Users\automatehub\Documents\GitHub\worker-automate-hub\assets\entrada_de_notas_16\ipi_0.png"
166
+ # Verifica se o arquivo existe
167
+ if os.path.exists(caminho_imagem):
168
+ print("Imagem já existe. Clicando em 'Cancelar'...")
169
+
170
+ # Conectando à janela do app
171
+ app = Application().connect(class_name="TFrmAlteraItemNFE", timeout=60)
172
+ janela_cancelar = app["TFrmAlteraItemNFE"]
173
+
174
+ # Encontra o botão pelo texto
175
+ try:
176
+ cancelar_btn = janela_cancelar.child_window(class_name ="TDBIBitBtn", found_index=2)
177
+ cancelar_btn.click_input()
178
+ print("Clicou em 'Cancelar'.")
179
+ index_item_atual += 1
180
+ continue
181
+ except:
182
+ pass
164
183
  #seta IPI 0%
165
184
  ipi_combobox = main_window.child_window(
166
185
  class_name="TDBIComboBox", found_index=4
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: worker-automate-hub
3
- Version: 0.5.699
3
+ Version: 0.5.701
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
@@ -41,7 +41,7 @@ worker_automate_hub/tasks/jobs/coleta_dje_process.py,sha256=UkLWTC5Ub2qBb0yY-8IZ
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
43
  worker_automate_hub/tasks/jobs/cte_xml.py,sha256=m4BkJDgp95Vr3oqEh6wXeeb31qzZhRF2Sw0h_wsoL_k,15565
44
- worker_automate_hub/tasks/jobs/descartes.py,sha256=E5kKef8j7e0PTm6NBeZAXkljUoAFEMjVWvHaJ8g2fv4,44451
44
+ worker_automate_hub/tasks/jobs/descartes.py,sha256=PAgsBA8A7cDDBp-WxsXt1l3hMfIgMHE0GZlES2xt79I,44453
45
45
  worker_automate_hub/tasks/jobs/devolucao_ctf.py,sha256=zQcRXZ9TxJhyL4jHjBTS-iW5BcmRoSPv9FsBLy0-eWQ,250793
46
46
  worker_automate_hub/tasks/jobs/devolucao_ctf_35.py,sha256=e9t5k2mtZcUcEGKPWysbWzsH_gqrK-6aBXjWe2jWfTg,253948
47
47
  worker_automate_hub/tasks/jobs/devolucao_prazo_a_faturar.py,sha256=Bxo5E5fwIMAE1Um0ZbwsYUmX6Z7YSJhsQ3_cqlPnvJU,272110
@@ -96,9 +96,9 @@ worker_automate_hub/utils/logger.py,sha256=FYV9fg0_RAYJF_ZOCJEbqQAiCXlXk2gMpvUU1
96
96
  worker_automate_hub/utils/toast.py,sha256=xPHc5r5uOxB_cZlCzm13Kt2qSKLLFZALncU6Qg3Ft68,1162
97
97
  worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbVlwDl49Y,7972
98
98
  worker_automate_hub/utils/util.py,sha256=xA13nQqZglwkvfAKH18Unv4UoZUyvL58CacSrzUpYTw,206352
99
- worker_automate_hub/utils/utils_nfe_entrada.py,sha256=L_z1Aps6BFWl-6_Ibm45vDid1S4kFDz5O78N2uO1Rq0,36458
99
+ worker_automate_hub/utils/utils_nfe_entrada.py,sha256=Yy4vDY5Wiw0uopy43IRm9jUgF5g1aFXMGVtG-GtH2g4,37524
100
100
  worker_automate_hub/worker.py,sha256=axdrr1xLTjWEyWfcyH3OCSpPTsyzck_fL_0u1DBLjvw,6525
101
- worker_automate_hub-0.5.699.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
102
- worker_automate_hub-0.5.699.dist-info/METADATA,sha256=lgG6Dhlt503c6ksOzwl-n_aapuFOdPwqm4u8ItShqls,3049
103
- worker_automate_hub-0.5.699.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
104
- worker_automate_hub-0.5.699.dist-info/RECORD,,
101
+ worker_automate_hub-0.5.701.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
102
+ worker_automate_hub-0.5.701.dist-info/METADATA,sha256=W0SJg9cXbbQTVGpvoxZZVXmMjJxQqADjD145e5yhSDY,3049
103
+ worker_automate_hub-0.5.701.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
104
+ worker_automate_hub-0.5.701.dist-info/RECORD,,