worker-automate-hub 0.5.653__py3-none-any.whl → 0.5.654__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.
Potentially problematic release.
This version of worker-automate-hub might be problematic. Click here for more details.
- worker_automate_hub/tasks/jobs/lancamento_pis_cofins.py +27 -1
- {worker_automate_hub-0.5.653.dist-info → worker_automate_hub-0.5.654.dist-info}/METADATA +1 -1
- {worker_automate_hub-0.5.653.dist-info → worker_automate_hub-0.5.654.dist-info}/RECORD +5 -5
- {worker_automate_hub-0.5.653.dist-info → worker_automate_hub-0.5.654.dist-info}/WHEEL +0 -0
- {worker_automate_hub-0.5.653.dist-info → worker_automate_hub-0.5.654.dist-info}/entry_points.txt +0 -0
|
@@ -218,7 +218,33 @@ async def lancamento_pis_cofins(task: RpaProcessoEntradaDTO) -> RpaRetornoProces
|
|
|
218
218
|
except:
|
|
219
219
|
btn_ok = main_window.child_window(title="&OK")
|
|
220
220
|
btn_ok.click()
|
|
221
|
+
|
|
222
|
+
await worker_sleep(3)
|
|
221
223
|
|
|
224
|
+
try:
|
|
225
|
+
selecionar_todos_itens = (
|
|
226
|
+
ASSETS_PATH + "\\lancamento_pis_cofins\\botao_incluir.png"
|
|
227
|
+
)
|
|
228
|
+
# Tenta localizar a imagem na tela
|
|
229
|
+
localizacao = pyautogui.locateOnScreen(
|
|
230
|
+
selecionar_todos_itens, confidence=0.9
|
|
231
|
+
)
|
|
232
|
+
await worker_sleep(3)
|
|
233
|
+
if localizacao:
|
|
234
|
+
centro = pyautogui.center(localizacao)
|
|
235
|
+
pyautogui.moveTo(centro)
|
|
236
|
+
pyautogui.click()
|
|
237
|
+
console.print("Clique realizado com sucesso!")
|
|
238
|
+
else:
|
|
239
|
+
console.print("Imagem não encontrada na tela.")
|
|
240
|
+
except Exception as e:
|
|
241
|
+
retorno = f"Não foi possivel clicar em selecionar todos os itens na Seleção de Empresas, erro: {e} "
|
|
242
|
+
return RpaRetornoProcessoDTO(
|
|
243
|
+
sucesso=False,
|
|
244
|
+
retorno=retorno,
|
|
245
|
+
status=RpaHistoricoStatusEnum.Falha,
|
|
246
|
+
tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)],
|
|
247
|
+
)
|
|
222
248
|
await worker_sleep(5)
|
|
223
249
|
console.print("Verificando se possui tela de Informação... \n")
|
|
224
250
|
information_pop_up = await is_window_open("Information")
|
|
@@ -311,7 +337,7 @@ async def lancamento_pis_cofins(task: RpaProcessoEntradaDTO) -> RpaRetornoProces
|
|
|
311
337
|
pyautogui.press("enter")
|
|
312
338
|
await worker_sleep(2)
|
|
313
339
|
pyautogui.press("enter")
|
|
314
|
-
await worker_sleep(
|
|
340
|
+
await worker_sleep(5)
|
|
315
341
|
console.print(
|
|
316
342
|
f"\nPesquisa: 'Otimizador Cálculo PIS/COFINS' realizada com sucesso",
|
|
317
343
|
style="bold green",
|
|
@@ -79,7 +79,7 @@ worker_automate_hub/tasks/jobs/geracao_aprovacao_pedidos.py,sha256=QzK2aG5d9pmFb
|
|
|
79
79
|
worker_automate_hub/tasks/jobs/geracao_aprovacao_pedidos_novo.py,sha256=5-wn583Cm0_NJ3TcVpYcurBTRxgwW6MU8WqaYawLS2k,21345
|
|
80
80
|
worker_automate_hub/tasks/jobs/integracao_contabil.py,sha256=psoIU0tjtTJq2W8aGXjXrfkAOYlIpUtHZyNolI7dp-0,16263
|
|
81
81
|
worker_automate_hub/tasks/jobs/integracao_contabil_generica.py,sha256=qIuWvouE88GooP57tRHmwfFV-2PcboJaErQo1VLolf8,21520
|
|
82
|
-
worker_automate_hub/tasks/jobs/lancamento_pis_cofins.py,sha256=
|
|
82
|
+
worker_automate_hub/tasks/jobs/lancamento_pis_cofins.py,sha256=8khwL7pAu5e6G-4iR2mBuhTFgAc17xVlyNQiikUtbBE,36879
|
|
83
83
|
worker_automate_hub/tasks/jobs/lancamento_rateio.py,sha256=0cvbpuJiHl5mca5gpZudX7uQY5Rqe5xzwt6juQcMhjo,15875
|
|
84
84
|
worker_automate_hub/tasks/jobs/login_emsys.py,sha256=dO9S027qRTtjOfytF6IWO-m6hDld8kZqOVAsn91l1YA,5684
|
|
85
85
|
worker_automate_hub/tasks/jobs/login_emsys_versao_especifica.py,sha256=_6CFh79eaW9KdPGR6FMV01ASPjJzNzzBK1MvC_uiSOo,5625
|
|
@@ -98,7 +98,7 @@ worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbV
|
|
|
98
98
|
worker_automate_hub/utils/util.py,sha256=GJvJdRil1DLVgZFgGg2n_WI3UKoy-xVmXF3IIefW59I,206009
|
|
99
99
|
worker_automate_hub/utils/utils_nfe_entrada.py,sha256=L_z1Aps6BFWl-6_Ibm45vDid1S4kFDz5O78N2uO1Rq0,36458
|
|
100
100
|
worker_automate_hub/worker.py,sha256=axdrr1xLTjWEyWfcyH3OCSpPTsyzck_fL_0u1DBLjvw,6525
|
|
101
|
-
worker_automate_hub-0.5.
|
|
102
|
-
worker_automate_hub-0.5.
|
|
103
|
-
worker_automate_hub-0.5.
|
|
104
|
-
worker_automate_hub-0.5.
|
|
101
|
+
worker_automate_hub-0.5.654.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
|
|
102
|
+
worker_automate_hub-0.5.654.dist-info/METADATA,sha256=tgZDmgukXNO9kGWIPiIXFbKa_SkSRJUUSHuYdq1r5BQ,3049
|
|
103
|
+
worker_automate_hub-0.5.654.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
104
|
+
worker_automate_hub-0.5.654.dist-info/RECORD,,
|
|
File without changes
|
{worker_automate_hub-0.5.653.dist-info → worker_automate_hub-0.5.654.dist-info}/entry_points.txt
RENAMED
|
File without changes
|