worker-automate-hub 0.5.318__py3-none-any.whl → 0.5.320__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.
@@ -2204,39 +2204,43 @@ async def devolucao_prazo_a_faturar(task: RpaProcessoEntradaDTO) -> RpaRetornoPr
2204
2204
  else:
2205
2205
  console.print("Não possui warning para alterar tributação... \n")
2206
2206
 
2207
- try:
2208
- #Clcica no OK para seguir a transmissão da pré-venda
2209
- app = Application().connect(class_name="TFrmDadosFaturamentoPreVenda", timeout=60)
2210
- main_window = app["TFrmDadosFaturamentoPreVenda"]
2211
- main_window.set_focus()
2212
- btn_ok = main_window.child_window(class_name="TBitBtn", found_index=1)
2213
- btn_ok.click()
2214
- except:
2215
- btn_ok = main_window.child_window(title="&Ok")
2216
- btn_ok.click()
2217
- await worker_sleep(5)
2207
+ # try:
2208
+ # #Clcica no OK para seguir a transmissão da pré-venda
2209
+ # app = Application().connect(class_name="TFrmDadosFaturamentoPreVenda", timeout=60)
2210
+ # main_window = app["TFrmDadosFaturamentoPreVenda"]
2211
+ # main_window.set_focus()
2212
+ # btn_ok = main_window.child_window(class_name="TBitBtn", found_index=1)
2213
+ # btn_ok.click()
2214
+ # except:
2215
+ # btn_ok = main_window.child_window(title="&Ok")
2216
+ # btn_ok.click()
2217
+ # await worker_sleep(5)
2218
+
2218
2219
  #Lucas Fim
2219
2220
  #ADICIONANDO MENSAGEM
2220
2221
  await worker_sleep(5)
2221
2222
  try:
2223
+ console.print("Identificando - TFrmDadosFaturamentoPreVenda 1")
2222
2224
  app = Application().connect(class_name="TFrmDadosFaturamentoPreVenda", timeout=10)
2223
2225
  main_window = app["Confirm"]
2224
2226
  main_window.set_focus()
2225
2227
  except:
2226
- console.print('Except')
2227
- app = Application().connect(class_name="TMessageForm", timeout=10)
2228
+ console.print("Identificando - TMessageForm 1")
2229
+ app = Application().connect(class_name="TMessageForm", timeout=10, title='Confirm')
2228
2230
  main_window = app["TMessageForm"]
2229
2231
  main_window.set_focus()
2230
2232
 
2231
- btn_yes = main_window.child_window(class_name="TButton", found_index=1)
2233
+ btn_yes = main_window.child_window(class_name="TButton", title="&Yes")
2232
2234
  btn_yes.click()
2235
+
2233
2236
  await worker_sleep(5)
2234
2237
 
2235
2238
  try:
2239
+ console.print('Identificando - TFrmDadosFaturamentoPreVenda 2')
2236
2240
  app = Application().connect(class_name="TFrmDadosFaturamentoPreVenda", timeout=10)
2237
2241
  main_window = app["TMessageForm"]
2238
2242
  except Exception as ex:
2239
- console.print(f'{ex}')
2243
+ console.print(f'{ex} - TMessageForm 2')
2240
2244
  app = Application().connect(class_name="TMessageForm", timeout=10)
2241
2245
  main_window = app["TMessageForm"]
2242
2246
 
@@ -3524,6 +3528,16 @@ async def devolucao_prazo_a_faturar(task: RpaProcessoEntradaDTO) -> RpaRetornoPr
3524
3528
  btn_ok.click()
3525
3529
 
3526
3530
  await worker_sleep(5)
3531
+
3532
+ try:
3533
+ console.print("Clicando em sim para faturar pre-venda... \n")
3534
+ app = Application().connect(class_name="TMessageForm", timeout=10, title="Confirm")
3535
+ main_window = app["TMessageForm"]
3536
+ main_window.set_focus()
3537
+ main_window.chiwld_window(title="&Yes").click()
3538
+ except:
3539
+ ...
3540
+
3527
3541
  #Lucas Fim
3528
3542
  #ADICIONANDO MENSAGEM
3529
3543
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: worker-automate-hub
3
- Version: 0.5.318
3
+ Version: 0.5.320
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
@@ -42,7 +42,7 @@ worker_automate_hub/tasks/jobs/cte_manual.py,sha256=JucHpRMjMiy-QEJ0wtFnytLpN53t
42
42
  worker_automate_hub/tasks/jobs/descartes.py,sha256=2zODOekSJSr7nuO9sUzT_F3YeG7N5EHuxnp05RguirE,41361
43
43
  worker_automate_hub/tasks/jobs/despesas_cte.py,sha256=TWbjBMZjYDugiqYUa_1DtCAUWOyVetoZI2SPs7AdDNc,13264
44
44
  worker_automate_hub/tasks/jobs/devolucao_ctf.py,sha256=A41O9a6kVUweUBy7Lc2dpJoeAi8QYxu-pMc8u-g0yTg,110241
45
- worker_automate_hub/tasks/jobs/devolucao_prazo_a_faturar.py,sha256=B8fphQlDuv3tHD4kR-iUzjfxLhDY5I9E6GTt4Qp-93Q,233013
45
+ worker_automate_hub/tasks/jobs/devolucao_prazo_a_faturar.py,sha256=T69CG_gwnzq_JGLTh5lHYmuEi-Lp0HGaCz1l220sAj0,233859
46
46
  worker_automate_hub/tasks/jobs/ecac_estadual_go.py,sha256=dKkf22nH5gp3RErq5u0UzRsKyJ81fc6ZZ4vLtUuMwHA,21002
47
47
  worker_automate_hub/tasks/jobs/ecac_estadual_main.py,sha256=8WmKe4-MRtzHobXz2S4YBDNN8alfawkC-BBlRY-mn1g,1726
48
48
  worker_automate_hub/tasks/jobs/ecac_estadual_mt.py,sha256=C26zmpGQGUq6sP9lU9nanM3Fje-rkyx5tjwmRy4lyL8,25300
@@ -85,7 +85,7 @@ worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbV
85
85
  worker_automate_hub/utils/util.py,sha256=WZK1VjdoOCHWWXzLt9gh2uUi_6p3OfvI6DvAYIGi998,185072
86
86
  worker_automate_hub/utils/utils_nfe_entrada.py,sha256=wmnpuOesmPSryZszmapa37b9YNC0E2MkeDYnbwr-0rU,33315
87
87
  worker_automate_hub/worker.py,sha256=axdrr1xLTjWEyWfcyH3OCSpPTsyzck_fL_0u1DBLjvw,6525
88
- worker_automate_hub-0.5.318.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
89
- worker_automate_hub-0.5.318.dist-info/METADATA,sha256=tIqfAhGfXhbbWlNdM3FUJscvuP0PZlDqiwymh_WpWU4,3041
90
- worker_automate_hub-0.5.318.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
91
- worker_automate_hub-0.5.318.dist-info/RECORD,,
88
+ worker_automate_hub-0.5.320.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
89
+ worker_automate_hub-0.5.320.dist-info/METADATA,sha256=02v42EhlEyuBLEvWvs7CYfP7-aB8ocIpSbNBeU-PGD8,3041
90
+ worker_automate_hub-0.5.320.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
91
+ worker_automate_hub-0.5.320.dist-info/RECORD,,