worker-automate-hub 0.5.770__py3-none-any.whl → 0.5.771__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.
- worker_automate_hub/tasks/jobs/descartes.py +1 -1
- worker_automate_hub/tasks/jobs/transferencias.py +51 -40
- {worker_automate_hub-0.5.770.dist-info → worker_automate_hub-0.5.771.dist-info}/METADATA +1 -1
- {worker_automate_hub-0.5.770.dist-info → worker_automate_hub-0.5.771.dist-info}/RECORD +6 -6
- {worker_automate_hub-0.5.770.dist-info → worker_automate_hub-0.5.771.dist-info}/WHEEL +0 -0
- {worker_automate_hub-0.5.770.dist-info → worker_automate_hub-0.5.771.dist-info}/entry_points.txt +0 -0
@@ -397,7 +397,7 @@ async def descartes(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
|
|
397
397
|
screenshot_path = take_screenshot()
|
398
398
|
# Clica no botão inclui para abrir a tela de item
|
399
399
|
console.print("Clicando em Incluir...\n")
|
400
|
-
button_incluir = (905,546
|
400
|
+
button_incluir = (905,546)
|
401
401
|
if button_incluir is not None:
|
402
402
|
pyautogui.click(button_incluir)
|
403
403
|
console.print("\nClicou em 'Incluir'", style="bold green")
|
@@ -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,
|
@@ -122,17 +123,22 @@ async def transferencias(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
|
|
122
123
|
|
123
124
|
|
124
125
|
# Preenche o campo do cliente com o número da filial
|
125
|
-
|
126
|
-
|
127
|
-
)
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
126
|
+
console.print("Preenchendo o campo do cliente com o número da filial...\n")
|
127
|
+
campo = pre_venda.child_window(class_name="TDBIEditNumber", found_index=2)
|
128
|
+
campo.set_focus()
|
129
|
+
send_keys(task.configEntrada["filialEmpresaOrigem"])
|
130
|
+
send_keys("{TAB}")
|
131
|
+
# cliente_field_position = await find_element_center(
|
132
|
+
# ASSETS_BASE_PATH + "field_cliente.png", (795, 354, 128, 50), 10
|
133
|
+
# )
|
134
|
+
# if cliente_field_position == None:
|
135
|
+
# cliente_field_position = (884, 384)
|
136
|
+
|
137
|
+
# pyautogui.click(cliente_field_position)
|
138
|
+
# pyautogui.hotkey("ctrl", "a")
|
139
|
+
# pyautogui.hotkey("del")
|
140
|
+
# pyautogui.write(task.configEntrada.get("filialEmpresaDestino"))
|
141
|
+
# pyautogui.hotkey("tab")
|
136
142
|
await worker_sleep(10)
|
137
143
|
|
138
144
|
try:
|
@@ -223,33 +229,38 @@ async def transferencias(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
|
|
223
229
|
console.print(log_msg, style="bold yellow")
|
224
230
|
|
225
231
|
# Define representante para "1"
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
)
|
232
|
+
console.print("Definindo representante para '1'\n")
|
233
|
+
campo_representate = pre_venda.child_window(class_name="TDBIEditCode", found_index=3)
|
234
|
+
campo_representate.set_focus()
|
235
|
+
send_keys("1")
|
236
|
+
send_keys("{TAB}")
|
237
|
+
# screenshot_path = take_screenshot()
|
238
|
+
# field_representante_position = find_target_position(
|
239
|
+
# screenshot_path, "Representante", 0, 50, attempts=15
|
240
|
+
# )
|
230
241
|
|
231
|
-
if field_representante_position == None:
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
if field_representante_position is not None:
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
else:
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
242
|
+
# if field_representante_position == None:
|
243
|
+
# field_representante_position = await find_element_center(
|
244
|
+
# ASSETS_BASE_PATH + "field_representante.png", (679, 416, 214, 72), 15
|
245
|
+
# )
|
246
|
+
# if field_representante_position is not None:
|
247
|
+
# lista = list(field_representante_position)
|
248
|
+
# lista[0] += 50
|
249
|
+
# lista[1] += 1
|
250
|
+
# field_representante_position = tuple(lista)
|
251
|
+
|
252
|
+
# if field_representante_position is not None:
|
253
|
+
# pyautogui.doubleClick(field_representante_position)
|
254
|
+
# pyautogui.hotkey("ctrl", "a")
|
255
|
+
# pyautogui.hotkey("del")
|
256
|
+
# pyautogui.write("1")
|
257
|
+
# pyautogui.hotkey("tab")
|
258
|
+
# else:
|
259
|
+
# pyautogui.doubleClick(800, 457)
|
260
|
+
# pyautogui.hotkey("ctrl", "a")
|
261
|
+
# pyautogui.hotkey("del")
|
262
|
+
# pyautogui.write("1")
|
263
|
+
# pyautogui.hotkey("tab")
|
253
264
|
|
254
265
|
await worker_sleep(5)
|
255
266
|
|
@@ -259,7 +270,7 @@ async def transferencias(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
|
|
259
270
|
)
|
260
271
|
|
261
272
|
if menu_itens == None:
|
262
|
-
menu_itens = (570,
|
273
|
+
menu_itens = (570, 296)
|
263
274
|
|
264
275
|
if menu_itens is not None:
|
265
276
|
pyautogui.click(menu_itens)
|
@@ -288,7 +299,7 @@ async def transferencias(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
|
|
288
299
|
console.print("Clicando em Incluir...\n")
|
289
300
|
button_incluir = (
|
290
301
|
905,
|
291
|
-
|
302
|
+
546,
|
292
303
|
) # find_target_position(screenshot_path, "Incluir", 0, 0, attempts=15)
|
293
304
|
if button_incluir is not None:
|
294
305
|
pyautogui.click(button_incluir)
|
@@ -432,7 +443,7 @@ async def transferencias(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
|
|
432
443
|
task.configEntrada["urlRetorno"],
|
433
444
|
"ERRO",
|
434
445
|
error,
|
435
|
-
|
446
|
+
task.configEntrada.get("uuidSimplifica") if transferencia else task.configEntrada.get("identificador"),
|
436
447
|
nota_fiscal,
|
437
448
|
valor_nota,
|
438
449
|
transferencia
|
@@ -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=
|
44
|
+
worker_automate_hub/tasks/jobs/descartes.py,sha256=vPcjgYjZ8FN30M39H2gv9wFvqujIQzaGoYyTjMHkmXI,45464
|
45
45
|
worker_automate_hub/tasks/jobs/devolucao_ctf.py,sha256=7tdUihaDqjIf7POjM79EqKG0w-qqXbhC6jq6hteavkw,250822
|
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=kzPJazDRbz2CLn8tKja2Lg1N4UzTRF1V4Nc1elIqTGY,272145
|
@@ -89,7 +89,7 @@ worker_automate_hub/tasks/jobs/notas_faturamento_sap.py,sha256=p6tVE027FHHXBxt2s
|
|
89
89
|
worker_automate_hub/tasks/jobs/opex_capex.py,sha256=8iOhWY0BUXugitJa-a0jtsPh656LFuptwfiZV9yU8G0,33246
|
90
90
|
worker_automate_hub/tasks/jobs/playground.py,sha256=7vWDg9DwToHwGJ6_XOa8TQ6LmfRV5Qz2TaOV3q3P9sA,1918
|
91
91
|
worker_automate_hub/tasks/jobs/sped_fiscal.py,sha256=Zsq-IwKxA0b2tikO6Rri4WXVj10jK-Jd0-gxk8yVBH0,31064
|
92
|
-
worker_automate_hub/tasks/jobs/transferencias.py,sha256=
|
92
|
+
worker_automate_hub/tasks/jobs/transferencias.py,sha256=scVcWLPgdaChdircizRV5hU3ltjvPx6UAJNWYMleQDU,46190
|
93
93
|
worker_automate_hub/tasks/task_definitions.py,sha256=wn8gqEjmTLkm4m5Cw8NOhgcw8h9uROev95iPglBx5FM,12295
|
94
94
|
worker_automate_hub/tasks/task_executor.py,sha256=9dmLUlMpJOI7FhbaFE593TcWnDxBvuXbGVecs1aaJxE,5728
|
95
95
|
worker_automate_hub/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -101,7 +101,7 @@ worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbV
|
|
101
101
|
worker_automate_hub/utils/util.py,sha256=V2WtWoETdTrAtGA8UgeqAAVphUj9KkGSZFzYsHJFATA,210055
|
102
102
|
worker_automate_hub/utils/utils_nfe_entrada.py,sha256=TOXKSHOPxy8N3-ROpTGjNIHstX0i2b8qekcj1tRvjG8,38174
|
103
103
|
worker_automate_hub/worker.py,sha256=uhZ3f-iaQ1i8cANbljp50vkYl-Xm0_sHtjwwF_2y72o,7191
|
104
|
-
worker_automate_hub-0.5.
|
105
|
-
worker_automate_hub-0.5.
|
106
|
-
worker_automate_hub-0.5.
|
107
|
-
worker_automate_hub-0.5.
|
104
|
+
worker_automate_hub-0.5.771.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
|
105
|
+
worker_automate_hub-0.5.771.dist-info/METADATA,sha256=KSHyAIoNalJRu0cDwHYLKBmOHmSErqc0h3wuQtMUxG8,3049
|
106
|
+
worker_automate_hub-0.5.771.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
107
|
+
worker_automate_hub-0.5.771.dist-info/RECORD,,
|
File without changes
|
{worker_automate_hub-0.5.770.dist-info → worker_automate_hub-0.5.771.dist-info}/entry_points.txt
RENAMED
File without changes
|