worker-automate-hub 0.5.765__tar.gz → 0.5.766__tar.gz
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.
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/PKG-INFO +1 -1
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/pyproject.toml +1 -1
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/descartes.py +81 -67
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/README.md +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/__init__.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/api/__init__.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/api/ahead_service.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/api/client.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/api/datalake_service.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/api/helpers/__init__.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/api/helpers/api_helpers.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/api/rdp_service.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/api/rpa_fila_service.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/api/rpa_historico_service.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/api/webhook_service.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/cli.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/config/__init__.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/config/settings.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/config.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/core/so_manipulation.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/decorators/__init__.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/decorators/deprecation.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/decorators/rate_limit.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/decorators/repeat.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/decorators/retry.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/decorators/singleton.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/decorators/timeit.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/models/__init__.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/models/dao/__init__.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/models/dao/rpa_configuracao.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/models/dao/rpa_fila.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/models/dao/rpa_historico.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/models/dao/rpa_processo.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/models/dao/rpa_robo.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/models/dto/__init__.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/models/dto/rpa_historico_request_dto.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/models/dto/rpa_processo_entrada_dto.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/models/dto/rpa_processo_rdp_dto.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/models/dto/rpa_sap_dto.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/models/dto/rpa_sistema_dto.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/__init__.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/__init__.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/abertura_livros_fiscais.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/coleta_dje_process.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/conexao_rdp.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/cte_manual.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/cte_xml.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/devolucao_ctf.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/devolucao_ctf_35.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/devolucao_prazo_a_faturar.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/ecac_estadual_go.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/ecac_estadual_main.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/ecac_estadual_mt.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/ecac_estadual_sc.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/ecac_estadual_sp.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/ecac_federal.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/entrada_cte_1353.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/entrada_cte_333.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/entrada_de_notas_15.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/entrada_de_notas_16.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/entrada_de_notas_207.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/entrada_de_notas_32.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/entrada_de_notas_33.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/entrada_de_notas_34.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/entrada_de_notas_36.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/entrada_de_notas_39.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/entrada_de_notas_500.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/entrada_de_notas_503.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/entrada_de_notas_505.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/entrada_de_notas_7139.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/entrada_de_notas_9.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/entrada_de_notas_9000.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/exemplo_processo.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/extracao_fechamento_contabil.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/extracao_fechamento_emsys.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/extracao_saldo_estoque.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/extracao_saldo_estoque_fiscal.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/fechar_conexao_rdp.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/fidc_exportacao_docs_portal_b2b.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/fidc_gerar_nosso_numero.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/fidc_remessa_cobranca_cnab240.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/fidc_retorno_cobranca.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/geracao_aprovacao_pedidos.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/geracao_aprovacao_pedidos_novo.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/integracao_contabil.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/integracao_contabil_generica.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/lancamento_pis_cofins.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/lancamento_rateio.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/login_emsys.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/login_emsys_versao_especifica.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/notas_faturamento_sap.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/opex_capex.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/playground.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/sped_fiscal.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/jobs/transferencias.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/task_definitions.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/task_executor.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/utils/__init__.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/utils/env.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/utils/get_creds_gworkspace.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/utils/logger.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/utils/toast.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/utils/updater.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/utils/util.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/utils/utils_nfe_entrada.py +0 -0
- {worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/worker.py +0 -0
@@ -18,6 +18,7 @@ from worker_automate_hub.models.dto.rpa_processo_entrada_dto import (
|
|
18
18
|
RpaProcessoEntradaDTO,
|
19
19
|
)
|
20
20
|
from worker_automate_hub.utils.logger import logger
|
21
|
+
from pywinauto.keyboard import send_keys
|
21
22
|
from worker_automate_hub.utils.toast import show_toast
|
22
23
|
from worker_automate_hub.utils.util import (
|
23
24
|
send_to_webhook,
|
@@ -151,18 +152,23 @@ async def descartes(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
|
|
151
152
|
# await worker_sleep(1)
|
152
153
|
|
153
154
|
# Preenche o campo do cliente com o número da filial
|
154
|
-
console.print("Preenchendo o campo do cliente com o número da filial...\n")
|
155
|
-
|
156
|
-
|
157
|
-
)
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
155
|
+
console.print("Preenchendo o campo do cliente com o número da filial...\n")
|
156
|
+
campo = pre_venda.child_window(class_name="TDBIEditNumber", found_index=2)
|
157
|
+
campo.set_focus()
|
158
|
+
send_keys(task.configEntrada["filialEmpresaOrigem"])
|
159
|
+
send_keys("{TAB}")
|
160
|
+
|
161
|
+
# cliente_field_position = await find_element_center(
|
162
|
+
# ASSETS_BASE_PATH + "field_cliente.png", (795, 354, 128, 50), 10
|
163
|
+
# )
|
164
|
+
# if cliente_field_position == None:
|
165
|
+
# cliente_field_position = (884, 384)
|
166
|
+
|
167
|
+
# pyautogui.click(cliente_field_position)
|
168
|
+
# pyautogui.hotkey("ctrl", "a")
|
169
|
+
# pyautogui.hotkey("del")
|
170
|
+
# pyautogui.write(task.configEntrada["filialEmpresaOrigem"])
|
171
|
+
# pyautogui.hotkey("tab")
|
166
172
|
await worker_sleep(10)
|
167
173
|
|
168
174
|
try:
|
@@ -273,34 +279,38 @@ async def descartes(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
|
|
273
279
|
|
274
280
|
# Define representante para "1"
|
275
281
|
console.print("Definindo representante para '1'\n")
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
)
|
282
|
+
campo_representate = pre_venda.child_window(class_name="TDBIEditCode", found_index=3)
|
283
|
+
campo_representate.set_focus()
|
284
|
+
send_keys("1")
|
285
|
+
send_keys("{TAB}")
|
286
|
+
# screenshot_path = take_screenshot()
|
287
|
+
# field_representante_position = find_target_position(
|
288
|
+
# screenshot_path, "Representante", 0, 50, attempts=15
|
289
|
+
# )
|
280
290
|
|
281
|
-
if field_representante_position == None:
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
if field_representante_position is not None:
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
else:
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
291
|
+
# if field_representante_position == None:
|
292
|
+
# field_representante_position = await find_element_center(
|
293
|
+
# ASSETS_BASE_PATH + "field_representante.png", (679, 416, 214, 72), 15
|
294
|
+
# )
|
295
|
+
# if field_representante_position is not None:
|
296
|
+
# lista = list(field_representante_position)
|
297
|
+
# lista[0] += 50
|
298
|
+
# lista[1] += 1
|
299
|
+
# field_representante_position = tuple(lista)
|
300
|
+
|
301
|
+
# if field_representante_position is not None:
|
302
|
+
# pyautogui.doubleClick(field_representante_position)
|
303
|
+
# pyautogui.hotkey("ctrl", "a")
|
304
|
+
# pyautogui.hotkey("del")
|
305
|
+
# pyautogui.write("1")
|
306
|
+
# pyautogui.hotkey("tab")
|
307
|
+
# else:
|
308
|
+
# pyautogui.doubleClick(800, 457)
|
309
|
+
# pyautogui.hotkey("ctrl", "a")
|
310
|
+
# pyautogui.hotkey("del")
|
311
|
+
# pyautogui.write("1")
|
312
|
+
# pyautogui.hotkey("tab")
|
313
|
+
# # pyautogui.move(789, 523)
|
304
314
|
await worker_sleep(5)
|
305
315
|
|
306
316
|
# Seleciona modelo de capa
|
@@ -322,29 +332,36 @@ async def descartes(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
|
|
322
332
|
# model_descarte_position = tuple(lista)
|
323
333
|
|
324
334
|
# if model_descarte_position == None:
|
325
|
-
model_descarte_position = (848, 527)
|
326
|
-
|
327
|
-
if model_descarte_position is not None:
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
else:
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
335
|
+
# model_descarte_position = (848, 527)
|
336
|
+
|
337
|
+
# if model_descarte_position is not None:
|
338
|
+
# # pyautogui.click(848, 527)
|
339
|
+
# pyautogui.click(model_descarte_position)
|
340
|
+
# pyautogui.click(1500, 800)
|
341
|
+
# pyautogui.write("B")
|
342
|
+
# pyautogui.hotkey("tab")
|
343
|
+
# else:
|
344
|
+
# log_msg = f"Campo Modelo na capa da nota não encontrado | Número da nota: {nota_fiscal} | Valor: {valor_nota}"
|
345
|
+
# await send_to_webhook(
|
346
|
+
# task.configEntrada["urlRetorno"],
|
347
|
+
# "ERRO",
|
348
|
+
# log_msg,
|
349
|
+
# task.configEntrada["uuidSimplifica"],
|
350
|
+
# nota_fiscal,
|
351
|
+
# valor_nota,
|
352
|
+
# True
|
353
|
+
# )
|
354
|
+
# return RpaRetornoProcessoDTO(
|
355
|
+
# sucesso=False, retorno=log_msg, status=RpaHistoricoStatusEnum.Falha, tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)]
|
356
|
+
# )
|
357
|
+
try:
|
358
|
+
modelo = pre_venda.child_window(class_name="TDBIComboBox", found_index=0)
|
359
|
+
modelo.set_focus()
|
360
|
+
modelo.select("BAIXA DE EST. DECORRENTE DE PERDA, ROUBO OU DETERIORACAO")
|
361
|
+
except:
|
344
362
|
return RpaRetornoProcessoDTO(
|
345
|
-
sucesso=False, retorno=
|
363
|
+
sucesso=False, retorno="Modelo de capa não existe", status=RpaHistoricoStatusEnum.Falha, tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)]
|
346
364
|
)
|
347
|
-
|
348
365
|
# Abre Menu itens
|
349
366
|
console.print("Abrindo Menu Itens...\n")
|
350
367
|
menu_itens = await find_element_center(
|
@@ -352,7 +369,7 @@ async def descartes(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
|
|
352
369
|
)
|
353
370
|
|
354
371
|
if menu_itens == None:
|
355
|
-
menu_itens = (570,
|
372
|
+
menu_itens = (570, 296)
|
356
373
|
|
357
374
|
if menu_itens is not None:
|
358
375
|
pyautogui.click(menu_itens)
|
@@ -380,10 +397,7 @@ async def descartes(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
|
|
380
397
|
screenshot_path = take_screenshot()
|
381
398
|
# Clica no botão inclui para abrir a tela de item
|
382
399
|
console.print("Clicando em Incluir...\n")
|
383
|
-
button_incluir = (
|
384
|
-
905,
|
385
|
-
573,
|
386
|
-
) # find_target_position(screenshot_path, "Incluir", 0, 0, attempts=15)
|
400
|
+
button_incluir = (905,546,)
|
387
401
|
if button_incluir is not None:
|
388
402
|
pyautogui.click(button_incluir)
|
389
403
|
console.print("\nClicou em 'Incluir'", style="bold green")
|
@@ -401,6 +415,7 @@ async def descartes(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
|
|
401
415
|
return RpaRetornoProcessoDTO(
|
402
416
|
sucesso=False, retorno=log_msg, status=RpaHistoricoStatusEnum.Falha, tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)]
|
403
417
|
)
|
418
|
+
|
404
419
|
await worker_sleep(3)
|
405
420
|
|
406
421
|
# Digita Almoxarifado
|
@@ -441,7 +456,7 @@ async def descartes(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
|
|
441
456
|
console.print("Preenchendo o campo do item...\n")
|
442
457
|
field_item = (
|
443
458
|
841,
|
444
|
-
|
459
|
+
337,
|
445
460
|
) # find_target_position(screenshot_path, "Item", 0, 130, 15)
|
446
461
|
pyautogui.doubleClick(field_item)
|
447
462
|
pyautogui.hotkey("del")
|
@@ -932,7 +947,6 @@ async def descartes(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
|
|
932
947
|
pyautogui.click(875, 596)
|
933
948
|
else:
|
934
949
|
pyautogui.click(581, 747)
|
935
|
-
|
936
950
|
logger.info("\nNota Transmitida")
|
937
951
|
console.print("\nNota Transmitida", style="bold green")
|
938
952
|
|
File without changes
|
File without changes
|
{worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/api/__init__.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/api/ahead_service.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/api/client.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/api/rdp_service.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/config/__init__.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/config/settings.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/decorators/repeat.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/decorators/retry.py
RENAMED
File without changes
|
File without changes
|
{worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/decorators/timeit.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/models/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/tasks/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/utils/__init__.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/utils/env.py
RENAMED
File without changes
|
File without changes
|
{worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/utils/logger.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/utils/toast.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/utils/updater.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.765 → worker_automate_hub-0.5.766}/worker_automate_hub/utils/util.py
RENAMED
File without changes
|
File without changes
|
File without changes
|