worker-automate-hub 0.5.620__py3-none-any.whl → 0.5.622__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/devolucao_ctf_35.py +4305 -0
- worker_automate_hub/tasks/jobs/entrada_de_notas_16.py +8 -8
- worker_automate_hub/utils/utils_nfe_entrada.py +41 -18
- {worker_automate_hub-0.5.620.dist-info → worker_automate_hub-0.5.622.dist-info}/METADATA +1 -1
- {worker_automate_hub-0.5.620.dist-info → worker_automate_hub-0.5.622.dist-info}/RECORD +7 -6
- {worker_automate_hub-0.5.620.dist-info → worker_automate_hub-0.5.622.dist-info}/WHEEL +0 -0
- {worker_automate_hub-0.5.620.dist-info → worker_automate_hub-0.5.622.dist-info}/entry_points.txt +0 -0
@@ -207,14 +207,14 @@ async def entrada_de_notas_16(task: RpaProcessoEntradaDTO) -> RpaRetornoProcesso
|
|
207
207
|
)
|
208
208
|
combo_box_natureza_operacao.click()
|
209
209
|
await worker_sleep(4)
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
210
|
+
tipos_natureza = ["1403 - COMPRA DE MERCADORIAS- 1.403", "1403-COMPRA DE MERCADORIAS- 1.403"]
|
211
|
+
for tipo in tipos_natureza:
|
212
|
+
try:
|
213
|
+
combo_box_natureza_operacao.select(tipo)
|
214
|
+
send_keys('{ENTER}')
|
215
|
+
except:
|
216
|
+
pass
|
217
|
+
|
218
218
|
await worker_sleep(3)
|
219
219
|
elif nota.get("cfop") == "6910":
|
220
220
|
combo_box_natureza_operacao = main_window.child_window(
|
@@ -196,7 +196,7 @@ class EMSys:
|
|
196
196
|
# Check Alterar Trib. Manual
|
197
197
|
pyautogui.click(1177, 740)
|
198
198
|
# pyautogui.moveTo(1177, 740)
|
199
|
-
|
199
|
+
|
200
200
|
# Click Alterar
|
201
201
|
await worker_sleep(1)
|
202
202
|
pyautogui.click(1180, 776)
|
@@ -219,17 +219,35 @@ class EMSys:
|
|
219
219
|
console.print(
|
220
220
|
"Item não é isqueiro. Continuando para o próximo...\n"
|
221
221
|
)
|
222
|
-
#
|
223
|
-
|
224
|
-
|
225
|
-
)
|
226
|
-
|
222
|
+
# Caminho da imagem
|
223
|
+
caminho_imagem = "assets\\ipi_0.png"
|
224
|
+
# Verifica se o arquivo existe
|
225
|
+
if os.path.exists(caminho_imagem):
|
226
|
+
print("Imagem já existe. Clicando em 'Cancelar'...")
|
227
|
+
|
228
|
+
# Conectando à janela do app
|
229
|
+
app = Application().connect(class_name="TFrmAlteraItemNFE", timeout=60)
|
230
|
+
janela_cancelar = app["TFrmAlteraItemNFE"]
|
231
|
+
|
232
|
+
# Encontra o botão pelo texto
|
233
|
+
try:
|
234
|
+
cancelar_btn = janela_cancelar.child_window(class_name ="TDBIBitBtn", found_index=2)
|
235
|
+
cancelar_btn.click_input()
|
236
|
+
print("Clicou em 'Cancelar'.")
|
237
|
+
except Exception as e:
|
238
|
+
print(f"Erro ao clicar no botão: {e}")
|
239
|
+
else:
|
240
|
+
#Seleciona o IPI 0%
|
241
|
+
ipi_combobox = main_window.child_window(
|
242
|
+
class_name="TDBIComboBox", found_index=4
|
243
|
+
)
|
244
|
+
ipi_combobox.select("IPI 0%")
|
227
245
|
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
246
|
+
# Click Alterar
|
247
|
+
await worker_sleep(1)
|
248
|
+
pyautogui.click(1180, 776)
|
249
|
+
await worker_sleep(1)
|
250
|
+
await self.click_itens_da_nota()
|
233
251
|
|
234
252
|
# Fecha a janela de alteração de item
|
235
253
|
# try:
|
@@ -277,17 +295,22 @@ class EMSys:
|
|
277
295
|
await worker_sleep(2)
|
278
296
|
# pyautogui.click(893, 549)
|
279
297
|
await worker_sleep(5)
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
298
|
+
try:
|
299
|
+
caminho_imagem = "assets\\banco_boleto.png"
|
300
|
+
# Verifica se apareceu a imagem de "sem dados"
|
301
|
+
localizacao = pyautogui.locateOnScreen(caminho_imagem, confidence=0.9)
|
302
|
+
if localizacao:
|
303
|
+
pass
|
304
|
+
|
305
|
+
except:
|
306
|
+
try:
|
284
307
|
# Selecionar natureza da operação 9 - outros
|
285
308
|
select_other = main_window.child_window(
|
286
309
|
class_name="TDBIComboBox", found_index=0
|
287
|
-
)
|
288
|
-
select_other.select(
|
310
|
+
)
|
311
|
+
select_other.select("BOLETO")
|
289
312
|
except Exception as e:
|
290
|
-
print(f"Não foi possível selecionar
|
313
|
+
print(f"Não foi possível selecionar: {e}")
|
291
314
|
# try:
|
292
315
|
# set_combobox("||List", "BANCO DO BRASIL BOLETO")
|
293
316
|
# except:
|
@@ -43,6 +43,7 @@ worker_automate_hub/tasks/jobs/cte_manual.py,sha256=JucHpRMjMiy-QEJ0wtFnytLpN53t
|
|
43
43
|
worker_automate_hub/tasks/jobs/cte_xml.py,sha256=CdDcDRjCJTU2DV0KAglqgCVb13ahMqzYdmaeJRKcR0o,15038
|
44
44
|
worker_automate_hub/tasks/jobs/descartes.py,sha256=E5kKef8j7e0PTm6NBeZAXkljUoAFEMjVWvHaJ8g2fv4,44451
|
45
45
|
worker_automate_hub/tasks/jobs/devolucao_ctf.py,sha256=5vHKXUJjW5p-UgnghjgSTaSRYFbkiImQO7lNxFvAPbo,252967
|
46
|
+
worker_automate_hub/tasks/jobs/devolucao_ctf_35.py,sha256=e9t5k2mtZcUcEGKPWysbWzsH_gqrK-6aBXjWe2jWfTg,253948
|
46
47
|
worker_automate_hub/tasks/jobs/devolucao_prazo_a_faturar.py,sha256=byIk02T4fWCVgKisf50ZAEY26d8FMTlX9S7RnQVtoEE,256763
|
47
48
|
worker_automate_hub/tasks/jobs/ecac_estadual_go.py,sha256=dKkf22nH5gp3RErq5u0UzRsKyJ81fc6ZZ4vLtUuMwHA,21002
|
48
49
|
worker_automate_hub/tasks/jobs/ecac_estadual_main.py,sha256=8WmKe4-MRtzHobXz2S4YBDNN8alfawkC-BBlRY-mn1g,1726
|
@@ -53,7 +54,7 @@ worker_automate_hub/tasks/jobs/ecac_federal.py,sha256=VFOrbMuMHL3ac1sJ-z-N1p1WYt
|
|
53
54
|
worker_automate_hub/tasks/jobs/entrada_cte_1353.py,sha256=knwPbjZZsnvHKurs7O7gv7bFpQIAmv4qPB1rZa3zBsY,12102
|
54
55
|
worker_automate_hub/tasks/jobs/entrada_cte_333.py,sha256=FvpU_bsdPB2ANQ_i63Jlkdo5yZM4zJdr2mm41KTrJtE,13285
|
55
56
|
worker_automate_hub/tasks/jobs/entrada_de_notas_15.py,sha256=BYmdPLJFZEHD_lVSpuaTDLZrx33ox8Re7QDzXjXDiB8,29524
|
56
|
-
worker_automate_hub/tasks/jobs/entrada_de_notas_16.py,sha256=
|
57
|
+
worker_automate_hub/tasks/jobs/entrada_de_notas_16.py,sha256=TcPoOIBd_ZquOi-uCiPnZWNakXMxQRHLYJ_qa7ou3Ig,36003
|
57
58
|
worker_automate_hub/tasks/jobs/entrada_de_notas_207.py,sha256=A5HM2Eh2bGZueVefnQL9KiCWW95j8zX1v2MslgbDcUE,36871
|
58
59
|
worker_automate_hub/tasks/jobs/entrada_de_notas_32.py,sha256=lku233FqwOknXF14HHC6fZ75WubE69Jp32bAUhKPtGQ,34575
|
59
60
|
worker_automate_hub/tasks/jobs/entrada_de_notas_33.py,sha256=MO5hjy2NS__6FXvzd3R24hGEf4u_bOvqD5lJx70Awu0,33590
|
@@ -94,9 +95,9 @@ worker_automate_hub/utils/logger.py,sha256=FYV9fg0_RAYJF_ZOCJEbqQAiCXlXk2gMpvUU1
|
|
94
95
|
worker_automate_hub/utils/toast.py,sha256=xPHc5r5uOxB_cZlCzm13Kt2qSKLLFZALncU6Qg3Ft68,1162
|
95
96
|
worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbVlwDl49Y,7972
|
96
97
|
worker_automate_hub/utils/util.py,sha256=_pgZOFWgXoov6WPbqyRTDVXJCRFfucYB3gb9swzU7bo,198281
|
97
|
-
worker_automate_hub/utils/utils_nfe_entrada.py,sha256=
|
98
|
+
worker_automate_hub/utils/utils_nfe_entrada.py,sha256=T3FiVcjVUNTKSauEAD7PBMAzT5uy96OwvKpb6u8PcjA,36408
|
98
99
|
worker_automate_hub/worker.py,sha256=axdrr1xLTjWEyWfcyH3OCSpPTsyzck_fL_0u1DBLjvw,6525
|
99
|
-
worker_automate_hub-0.5.
|
100
|
-
worker_automate_hub-0.5.
|
101
|
-
worker_automate_hub-0.5.
|
102
|
-
worker_automate_hub-0.5.
|
100
|
+
worker_automate_hub-0.5.622.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
|
101
|
+
worker_automate_hub-0.5.622.dist-info/METADATA,sha256=N4pQZdertaCyBpEuFIpgZ67fF4dXWnFitZ4xvuYre6o,3049
|
102
|
+
worker_automate_hub-0.5.622.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
103
|
+
worker_automate_hub-0.5.622.dist-info/RECORD,,
|
File without changes
|
{worker_automate_hub-0.5.620.dist-info → worker_automate_hub-0.5.622.dist-info}/entry_points.txt
RENAMED
File without changes
|