worker-automate-hub 0.5.653__py3-none-any.whl → 0.5.655__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 +50 -1
- {worker_automate_hub-0.5.653.dist-info → worker_automate_hub-0.5.655.dist-info}/METADATA +1 -1
- {worker_automate_hub-0.5.653.dist-info → worker_automate_hub-0.5.655.dist-info}/RECORD +5 -5
- {worker_automate_hub-0.5.653.dist-info → worker_automate_hub-0.5.655.dist-info}/WHEEL +0 -0
- {worker_automate_hub-0.5.653.dist-info → worker_automate_hub-0.5.655.dist-info}/entry_points.txt +0 -0
|
@@ -218,7 +218,55 @@ 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
|
+
)
|
|
248
|
+
|
|
249
|
+
# Verificar se já existe registro no mês apurado
|
|
250
|
+
try:
|
|
251
|
+
selecionar_todos_itens = (
|
|
252
|
+
ASSETS_PATH + "\\lancamento_pis_cofins\\ja_existe_periodo.png"
|
|
253
|
+
)
|
|
254
|
+
# Tenta localizar a imagem na tela
|
|
255
|
+
localizacao = pyautogui.locateOnScreen(
|
|
256
|
+
selecionar_todos_itens, confidence=0.9
|
|
257
|
+
)
|
|
258
|
+
await worker_sleep(3)
|
|
259
|
+
if localizacao:
|
|
260
|
+
app = Application().connect(title="Informação", timeout=60)
|
|
261
|
+
main_window = app["Informação"]
|
|
262
|
+
main_window.set_focus()
|
|
263
|
+
informacao = main_window.child_window(title="OK")
|
|
264
|
+
informacao.click()
|
|
265
|
+
console.print("Clique realizado com sucesso!")
|
|
266
|
+
else:
|
|
267
|
+
console.print("Imagem não encontrada na tela.")
|
|
268
|
+
except:
|
|
269
|
+
pass
|
|
222
270
|
await worker_sleep(5)
|
|
223
271
|
console.print("Verificando se possui tela de Informação... \n")
|
|
224
272
|
information_pop_up = await is_window_open("Information")
|
|
@@ -291,6 +339,7 @@ async def lancamento_pis_cofins(task: RpaProcessoEntradaDTO) -> RpaRetornoProces
|
|
|
291
339
|
)
|
|
292
340
|
main_window = app["TFrmMovtoApuraPisCofins"]
|
|
293
341
|
main_window.close()
|
|
342
|
+
await worker_sleep(2)
|
|
294
343
|
console.print("Tela de Movimento Apuração, fechada com sucesso... \n")
|
|
295
344
|
else:
|
|
296
345
|
return RpaRetornoProcessoDTO(
|
|
@@ -311,7 +360,7 @@ async def lancamento_pis_cofins(task: RpaProcessoEntradaDTO) -> RpaRetornoProces
|
|
|
311
360
|
pyautogui.press("enter")
|
|
312
361
|
await worker_sleep(2)
|
|
313
362
|
pyautogui.press("enter")
|
|
314
|
-
await worker_sleep(
|
|
363
|
+
await worker_sleep(5)
|
|
315
364
|
console.print(
|
|
316
365
|
f"\nPesquisa: 'Otimizador Cálculo PIS/COFINS' realizada com sucesso",
|
|
317
366
|
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=BP6AUsE2JHQJdxZK_6mo9xdr2AEv8E6D68DxkVSpMzs,37920
|
|
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.655.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
|
|
102
|
+
worker_automate_hub-0.5.655.dist-info/METADATA,sha256=w-acd2_p6bVVpVPH-vuQ8TdQXsfbzKli091_DOkBOJc,3049
|
|
103
|
+
worker_automate_hub-0.5.655.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
104
|
+
worker_automate_hub-0.5.655.dist-info/RECORD,,
|
|
File without changes
|
{worker_automate_hub-0.5.653.dist-info → worker_automate_hub-0.5.655.dist-info}/entry_points.txt
RENAMED
|
File without changes
|