worker-automate-hub 0.5.619__py3-none-any.whl → 0.5.621__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/entrada_de_notas_16.py +8 -8
- worker_automate_hub/tasks/jobs/entrada_de_notas_7139.py +4 -1
- worker_automate_hub/tasks/jobs/entrada_de_notas_9.py +2 -2
- worker_automate_hub/tasks/jobs/entrada_de_notas_9000.py +2 -2
- worker_automate_hub/utils/utils_nfe_entrada.py +12 -7
- {worker_automate_hub-0.5.619.dist-info → worker_automate_hub-0.5.621.dist-info}/METADATA +1 -1
- {worker_automate_hub-0.5.619.dist-info → worker_automate_hub-0.5.621.dist-info}/RECORD +9 -9
- {worker_automate_hub-0.5.619.dist-info → worker_automate_hub-0.5.621.dist-info}/WHEEL +0 -0
- {worker_automate_hub-0.5.619.dist-info → worker_automate_hub-0.5.621.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(
|
@@ -6,10 +6,11 @@ import time
|
|
6
6
|
import uuid
|
7
7
|
import win32clipboard
|
8
8
|
import difflib
|
9
|
-
|
9
|
+
import re
|
10
10
|
import pyautogui
|
11
11
|
import pytesseract
|
12
12
|
from PIL import Image, ImageEnhance
|
13
|
+
from datetime import datetime
|
13
14
|
from pywinauto.application import Application
|
14
15
|
from pywinauto_recorder.player import set_combobox
|
15
16
|
from pywinauto.keyboard import send_keys
|
@@ -434,6 +435,8 @@ async def entrada_de_notas_7139(task: RpaProcessoEntradaDTO) -> RpaRetornoProces
|
|
434
435
|
status=RpaHistoricoStatusEnum.Falha,
|
435
436
|
tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)]
|
436
437
|
)
|
438
|
+
|
439
|
+
window.child_window(title="Manter Natureza de Operação selecionada", control_type="CheckBox").click()
|
437
440
|
|
438
441
|
await worker_sleep(2)
|
439
442
|
console.print("Clicando em OK... \n")
|
@@ -631,9 +631,9 @@ async def entrada_de_notas_9(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoD
|
|
631
631
|
if i >= max_attempts:
|
632
632
|
return RpaRetornoProcessoDTO(
|
633
633
|
sucesso=False,
|
634
|
-
retorno=f"Erro ao trabalhar nas alterações dos item de tanque, tela de
|
634
|
+
retorno=f"Erro ao trabalhar nas alterações dos item de tanque, tela, de distribuir item tanque, não foi encontrada",
|
635
635
|
status=RpaHistoricoStatusEnum.Falha,
|
636
|
-
tags=[RpaTagDTO(descricao=RpaTagEnum.
|
636
|
+
tags=[RpaTagDTO(descricao=RpaTagEnum.Negocio)]
|
637
637
|
)
|
638
638
|
|
639
639
|
try:
|
@@ -649,9 +649,9 @@ async def entrada_de_notas_9000(task: RpaProcessoEntradaDTO) -> RpaRetornoProces
|
|
649
649
|
if i >= max_attempts:
|
650
650
|
return RpaRetornoProcessoDTO(
|
651
651
|
sucesso=False,
|
652
|
-
retorno=f"Erro ao trabalhar nas alterações dos item de tanque, tela de
|
652
|
+
retorno=f"Erro ao trabalhar nas alterações dos item de tanque, tela, de distribuir item tanque, não foi encontrada",
|
653
653
|
status=RpaHistoricoStatusEnum.Falha,
|
654
|
-
tags=[RpaTagDTO(descricao=RpaTagEnum.
|
654
|
+
tags=[RpaTagDTO(descricao=RpaTagEnum.Negocio)]
|
655
655
|
)
|
656
656
|
|
657
657
|
try:
|
@@ -277,17 +277,22 @@ class EMSys:
|
|
277
277
|
await worker_sleep(2)
|
278
278
|
# pyautogui.click(893, 549)
|
279
279
|
await worker_sleep(5)
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
280
|
+
try:
|
281
|
+
caminho_imagem = "assets\\banco_boleto.png"
|
282
|
+
# Verifica se apareceu a imagem de "sem dados"
|
283
|
+
localizacao = pyautogui.locateOnScreen(caminho_imagem, confidence=0.9)
|
284
|
+
if localizacao:
|
285
|
+
pass
|
286
|
+
|
287
|
+
except:
|
288
|
+
try:
|
284
289
|
# Selecionar natureza da operação 9 - outros
|
285
290
|
select_other = main_window.child_window(
|
286
291
|
class_name="TDBIComboBox", found_index=0
|
287
|
-
)
|
288
|
-
select_other.select(
|
292
|
+
)
|
293
|
+
select_other.select("BOLETO")
|
289
294
|
except Exception as e:
|
290
|
-
print(f"Não foi possível selecionar
|
295
|
+
print(f"Não foi possível selecionar: {e}")
|
291
296
|
# try:
|
292
297
|
# set_combobox("||List", "BANCO DO BRASIL BOLETO")
|
293
298
|
# except:
|
@@ -53,7 +53,7 @@ worker_automate_hub/tasks/jobs/ecac_federal.py,sha256=VFOrbMuMHL3ac1sJ-z-N1p1WYt
|
|
53
53
|
worker_automate_hub/tasks/jobs/entrada_cte_1353.py,sha256=knwPbjZZsnvHKurs7O7gv7bFpQIAmv4qPB1rZa3zBsY,12102
|
54
54
|
worker_automate_hub/tasks/jobs/entrada_cte_333.py,sha256=FvpU_bsdPB2ANQ_i63Jlkdo5yZM4zJdr2mm41KTrJtE,13285
|
55
55
|
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=
|
56
|
+
worker_automate_hub/tasks/jobs/entrada_de_notas_16.py,sha256=TcPoOIBd_ZquOi-uCiPnZWNakXMxQRHLYJ_qa7ou3Ig,36003
|
57
57
|
worker_automate_hub/tasks/jobs/entrada_de_notas_207.py,sha256=A5HM2Eh2bGZueVefnQL9KiCWW95j8zX1v2MslgbDcUE,36871
|
58
58
|
worker_automate_hub/tasks/jobs/entrada_de_notas_32.py,sha256=lku233FqwOknXF14HHC6fZ75WubE69Jp32bAUhKPtGQ,34575
|
59
59
|
worker_automate_hub/tasks/jobs/entrada_de_notas_33.py,sha256=MO5hjy2NS__6FXvzd3R24hGEf4u_bOvqD5lJx70Awu0,33590
|
@@ -63,9 +63,9 @@ worker_automate_hub/tasks/jobs/entrada_de_notas_39.py,sha256=89WgjhzhQXKoMmbRPil
|
|
63
63
|
worker_automate_hub/tasks/jobs/entrada_de_notas_500.py,sha256=WBsCRbH7ANiCjEn0aEDc5AqGf6grEFhxyBoAIh3zJ40,44160
|
64
64
|
worker_automate_hub/tasks/jobs/entrada_de_notas_503.py,sha256=FIF8HCyEAdecDw6dB9WC3hcLoLAC3FMQyTujPgfQFaI,46560
|
65
65
|
worker_automate_hub/tasks/jobs/entrada_de_notas_505.py,sha256=xXeNipdXTSll8yAtAmN7v0sjN3oMlWU4THu30mKDddc,30339
|
66
|
-
worker_automate_hub/tasks/jobs/entrada_de_notas_7139.py,sha256=
|
67
|
-
worker_automate_hub/tasks/jobs/entrada_de_notas_9.py,sha256=
|
68
|
-
worker_automate_hub/tasks/jobs/entrada_de_notas_9000.py,sha256=
|
66
|
+
worker_automate_hub/tasks/jobs/entrada_de_notas_7139.py,sha256=zpGcsMpmtfVK6TUE8JVBaAcdgAXialbqunWxeymsYh0,29183
|
67
|
+
worker_automate_hub/tasks/jobs/entrada_de_notas_9.py,sha256=ZYE2YmQJ9954Uuc9fiSykGi0ws_NPXs8ex244y20P44,64642
|
68
|
+
worker_automate_hub/tasks/jobs/entrada_de_notas_9000.py,sha256=cDMzDGcylhg9pwtCPmZ82YItPS05PWcPtfeeC2WGrpA,65507
|
69
69
|
worker_automate_hub/tasks/jobs/exemplo_processo.py,sha256=nV0iLoip2FH2-FhLmhX3nPqsfl_MPufZ3E5Q5krJvdc,3544
|
70
70
|
worker_automate_hub/tasks/jobs/extracao_fechamento_contabil.py,sha256=jSoDGT6SU_5PKItpLQJyJIGrFAwYFNawO9vVNhjovIw,19557
|
71
71
|
worker_automate_hub/tasks/jobs/extracao_fechamento_emsys.py,sha256=ueYevtUf0Tdr60VdXQiBmqbrQRmixQ3ze0GVYJmzFEg,21418
|
@@ -94,9 +94,9 @@ worker_automate_hub/utils/logger.py,sha256=FYV9fg0_RAYJF_ZOCJEbqQAiCXlXk2gMpvUU1
|
|
94
94
|
worker_automate_hub/utils/toast.py,sha256=xPHc5r5uOxB_cZlCzm13Kt2qSKLLFZALncU6Qg3Ft68,1162
|
95
95
|
worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbVlwDl49Y,7972
|
96
96
|
worker_automate_hub/utils/util.py,sha256=_pgZOFWgXoov6WPbqyRTDVXJCRFfucYB3gb9swzU7bo,198281
|
97
|
-
worker_automate_hub/utils/utils_nfe_entrada.py,sha256=
|
97
|
+
worker_automate_hub/utils/utils_nfe_entrada.py,sha256=oh7sxHcElqK1wUbbmIywAyZuvGK2LW0vfW5nt37Ixyk,35317
|
98
98
|
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.
|
99
|
+
worker_automate_hub-0.5.621.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
|
100
|
+
worker_automate_hub-0.5.621.dist-info/METADATA,sha256=qIG0u-sJEJl0e_3w3LKdxzIb2hFNLR8PFPuMEEvZXeA,3049
|
101
|
+
worker_automate_hub-0.5.621.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
102
|
+
worker_automate_hub-0.5.621.dist-info/RECORD,,
|
File without changes
|
{worker_automate_hub-0.5.619.dist-info → worker_automate_hub-0.5.621.dist-info}/entry_points.txt
RENAMED
File without changes
|