worker-automate-hub 0.4.432__py3-none-any.whl → 0.4.434__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- worker_automate_hub/tasks/jobs/conexao_rdp.py +5 -5
- worker_automate_hub/tasks/jobs/entrada_de_notas_16.py +11 -29
- worker_automate_hub/tasks/jobs/entrada_de_notas_9.py +33 -4
- {worker_automate_hub-0.4.432.dist-info → worker_automate_hub-0.4.434.dist-info}/METADATA +1 -1
- {worker_automate_hub-0.4.432.dist-info → worker_automate_hub-0.4.434.dist-info}/RECORD +7 -7
- {worker_automate_hub-0.4.432.dist-info → worker_automate_hub-0.4.434.dist-info}/WHEEL +0 -0
- {worker_automate_hub-0.4.432.dist-info → worker_automate_hub-0.4.434.dist-info}/entry_points.txt +0 -0
@@ -62,9 +62,9 @@ class RDPConnection:
|
|
62
62
|
janelas_rdp = [
|
63
63
|
win
|
64
64
|
for win in gw.getAllTitles()
|
65
|
-
if "
|
65
|
+
if "Ligação ao ambiente de trabalho remoto" in win
|
66
66
|
or "Remote Desktop Connection" in win
|
67
|
-
or "
|
67
|
+
or "Conexão de Área de Trabalho Remota" in win
|
68
68
|
]
|
69
69
|
|
70
70
|
for titulo in janelas_rdp:
|
@@ -103,11 +103,11 @@ class RDPConnection:
|
|
103
103
|
subprocess.Popen(["mstsc", f"/v:{self.ip}"], close_fds=True, start_new_session=True)
|
104
104
|
await worker_sleep(10) # Tempo aumentado para garantir abertura
|
105
105
|
|
106
|
-
console.print("Procurando janela '
|
106
|
+
console.print("Procurando janela 'Ligação ao ambiente de trabalho remoto'")
|
107
107
|
try:
|
108
|
-
windows = gw.getWindowsWithTitle("Conexão de Área de Trabalho Remota")
|
109
|
-
except:
|
110
108
|
windows = gw.getWindowsWithTitle("Ligação ao ambiente de trabalho remoto")
|
109
|
+
except:
|
110
|
+
windows = gw.getWindowsWithTitle("Conexão de Área de Trabalho Remota")
|
111
111
|
|
112
112
|
if not windows:
|
113
113
|
logger.warning("Tentando encontrar janela com título em inglês 'Remote Desktop Connection'")
|
@@ -40,6 +40,7 @@ from worker_automate_hub.utils.util import (
|
|
40
40
|
verify_nf_incuded,
|
41
41
|
warnings_after_xml_imported,
|
42
42
|
worker_sleep,
|
43
|
+
select_documento_type
|
43
44
|
)
|
44
45
|
from worker_automate_hub.utils.utils_nfe_entrada import EMSys
|
45
46
|
|
@@ -98,36 +99,17 @@ async def entrada_de_notas_16(task: RpaProcessoEntradaDTO) -> RpaRetornoProcesso
|
|
98
99
|
|
99
100
|
# Procura campo documento
|
100
101
|
console.print("Navegando pela Janela de Nota Fiscal de Entrada...\n")
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
console.print(
|
105
|
-
"Controles encontrados na janela 'Nota Fiscal de Entrada, navegando entre eles...\n"
|
106
|
-
)
|
107
|
-
panel_TNotebook = main_window.child_window(
|
108
|
-
class_name="TNotebook", found_index=0
|
109
|
-
)
|
110
|
-
panel_TPage = panel_TNotebook.child_window(class_name="TPage", found_index=0)
|
111
|
-
panel_TPageControl = panel_TPage.child_window(
|
112
|
-
class_name="TPageControl", found_index=0
|
113
|
-
)
|
114
|
-
panel_TTabSheet = panel_TPageControl.child_window(
|
115
|
-
class_name="TTabSheet", found_index=0
|
116
|
-
)
|
117
|
-
combo_box_tipo_documento = panel_TTabSheet.child_window(
|
118
|
-
class_name="TDBIComboBox", found_index=1
|
119
|
-
)
|
120
|
-
combo_box_tipo_documento.click()
|
121
|
-
console.print(
|
122
|
-
"Clique select box, Tipo de documento realizado com sucesso, selecionando o tipo de documento...\n"
|
123
|
-
)
|
124
|
-
|
125
|
-
await worker_sleep(4)
|
126
|
-
|
127
|
-
set_combobox("||List", "NOTA FISCAL DE ENTRADA ELETRONICA - DANFE")
|
128
|
-
console.print(
|
129
|
-
"Tipo de documento 'NOTA FISCAL DE ENTRADA ELETRONICA - DANFE', selecionado com sucesso...\n"
|
102
|
+
document_type = await select_documento_type(
|
103
|
+
"NOTA FISCAL DE ENTRADA ELETRONICA - DANFE"
|
130
104
|
)
|
105
|
+
if document_type.sucesso == True:
|
106
|
+
console.log(document_type.retorno, style="bold green")
|
107
|
+
else:
|
108
|
+
return RpaRetornoProcessoDTO(
|
109
|
+
sucesso=False,
|
110
|
+
retorno=document_type.retorno,
|
111
|
+
status=RpaHistoricoStatusEnum.Falha,
|
112
|
+
)
|
131
113
|
|
132
114
|
await worker_sleep(4)
|
133
115
|
|
@@ -169,8 +169,17 @@ async def entrada_de_notas_9(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoD
|
|
169
169
|
combo_box_natureza_operacao.click()
|
170
170
|
|
171
171
|
await worker_sleep(3)
|
172
|
-
|
173
|
-
|
172
|
+
try:
|
173
|
+
set_combobox("||List", "1652-COMPRA DE MERCADORIAS- 1.652")
|
174
|
+
except:
|
175
|
+
console.log("Não foi possivel selecionar o tipo de documento via set combobox, realizando a alteração utilizando pyautogui write")
|
176
|
+
pyautogui.write("1102")
|
177
|
+
await worker_sleep(2)
|
178
|
+
pyautogui.hotkey("enter")
|
179
|
+
await worker_sleep(2)
|
180
|
+
pyautogui.write("1652-COMPRA DE MERCADORIAS- 1.652")
|
181
|
+
await worker_sleep(2)
|
182
|
+
|
174
183
|
elif cfop == 6655:
|
175
184
|
combo_box_natureza_operacao = main_window.child_window(
|
176
185
|
class_name="TDBIComboBox", found_index=0
|
@@ -178,8 +187,16 @@ async def entrada_de_notas_9(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoD
|
|
178
187
|
combo_box_natureza_operacao.click()
|
179
188
|
|
180
189
|
await worker_sleep(3)
|
181
|
-
|
182
|
-
|
190
|
+
try:
|
191
|
+
set_combobox("||List", "2652-COMPRA DE MERCADORIAS- 2.652")
|
192
|
+
except:
|
193
|
+
console.log("Não foi possivel selecionar o tipo de documento via set combobox, realizando a alteração utilizando pyautogui write")
|
194
|
+
pyautogui.write("1102")
|
195
|
+
await worker_sleep(2)
|
196
|
+
pyautogui.hotkey("enter")
|
197
|
+
await worker_sleep(2)
|
198
|
+
pyautogui.write("2652-COMPRA DE MERCADORIAS- 2.652")
|
199
|
+
await worker_sleep(2)
|
183
200
|
else:
|
184
201
|
console.print(
|
185
202
|
"Erro mapeado, CFOP diferente de 5655 ou 6655, necessario ação manual ou ajuste no robo...\n"
|
@@ -189,6 +206,18 @@ async def entrada_de_notas_9(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoD
|
|
189
206
|
retorno="Erro mapeado, CFOP diferente de 5655 ou 6655, necessario ação manual ou ajuste no robo",
|
190
207
|
status=RpaHistoricoStatusEnum.Falha,
|
191
208
|
)
|
209
|
+
|
210
|
+
|
211
|
+
combo_box_natureza_operacao = main_window.child_window(class_name="TDBIComboBox", found_index=0)
|
212
|
+
if "2652-COMPRA DE MERCADORIAS- 2.652" in combo_box_natureza_operacao.window_text() or "1652-COMPRA DE MERCADORIAS- 1.652" in combo_box_natureza_operacao.window_text():
|
213
|
+
console.log("CFOP informado com sucesso")
|
214
|
+
else:
|
215
|
+
return RpaRetornoProcessoDTO(
|
216
|
+
sucesso=False,
|
217
|
+
retorno="Não foi possivel selecionar o CFOP",
|
218
|
+
status=RpaHistoricoStatusEnum.Falha,
|
219
|
+
)
|
220
|
+
|
192
221
|
|
193
222
|
# INTERAGINDO COM O CAMPO ALMOXARIFADO
|
194
223
|
filialEmpresaOrigem = nota.get("filialEmpresaOrigem")
|
@@ -30,7 +30,7 @@ worker_automate_hub/models/dto/rpa_sistema_dto.py,sha256=sLkmJei8x6sl-1-IXUKDmYQ
|
|
30
30
|
worker_automate_hub/tasks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
31
31
|
worker_automate_hub/tasks/jobs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
32
32
|
worker_automate_hub/tasks/jobs/coleta_dje_process.py,sha256=rf4fW-FaHUl1MS7b03z4cwI3zHfNw8FWxvjvNY3Xn20,28773
|
33
|
-
worker_automate_hub/tasks/jobs/conexao_rdp.py,sha256=
|
33
|
+
worker_automate_hub/tasks/jobs/conexao_rdp.py,sha256=yohYaJDPOhX_xLwd5UKVFzYqWVYPvN4FN0fsz-VcjLM,9270
|
34
34
|
worker_automate_hub/tasks/jobs/descartes.py,sha256=RIjrZIzkW77NiKeXbxFN9k872cz3fl9cG1m5TJpjmmY,40134
|
35
35
|
worker_automate_hub/tasks/jobs/ecac_estadual_go.py,sha256=aPckQRlRozFS_OK3C9wNdMCmqO6AM4djwqY2uSSaPmo,20687
|
36
36
|
worker_automate_hub/tasks/jobs/ecac_estadual_main.py,sha256=FFpAdtZLO4uelWZooCVpm4JePv_iDt5nwVKrk1ipZJQ,1599
|
@@ -39,7 +39,7 @@ worker_automate_hub/tasks/jobs/ecac_estadual_sc.py,sha256=ZTjc4rS8J7VfWHPFLkJBcS
|
|
39
39
|
worker_automate_hub/tasks/jobs/ecac_estadual_sp.py,sha256=iS6za_nGCzBRVCXYYuUTIyMWJznHp8l6BPahqwzc_5c,29102
|
40
40
|
worker_automate_hub/tasks/jobs/ecac_federal.py,sha256=ORQbA4DCfyHJqjfvOCenc97QHvBCBlA3oMSzl59K6vg,55316
|
41
41
|
worker_automate_hub/tasks/jobs/entrada_de_notas_15.py,sha256=5Rqz_kf-399nEA3s1_69MGOAn6Mk0GbdAP_0EFzAcYw,16570
|
42
|
-
worker_automate_hub/tasks/jobs/entrada_de_notas_16.py,sha256=
|
42
|
+
worker_automate_hub/tasks/jobs/entrada_de_notas_16.py,sha256=qP60VQmRB-2NkMwsHMQz8K9X75w0nr084pRJcaWkpqo,19654
|
43
43
|
worker_automate_hub/tasks/jobs/entrada_de_notas_207.py,sha256=TfvGmH1__OGRx5oYordEJt-gpcETKA9OFhwHQD3yqs4,24928
|
44
44
|
worker_automate_hub/tasks/jobs/entrada_de_notas_32.py,sha256=0cneKY6bQU5neo3TKlGynney_CoOB_J_dctFMYf26WM,32388
|
45
45
|
worker_automate_hub/tasks/jobs/entrada_de_notas_33.py,sha256=ktXc_kdMhlz9cbb7XjfMJhME29mgMFd_FnatxSZZU_s,31457
|
@@ -49,7 +49,7 @@ worker_automate_hub/tasks/jobs/entrada_de_notas_39.py,sha256=Kv1Ttgq477Xtp17QDym
|
|
49
49
|
worker_automate_hub/tasks/jobs/entrada_de_notas_500.py,sha256=MYPaYAP2iwdBYDZUf39f7yGibTME9uObEash_QTCmFA,32231
|
50
50
|
worker_automate_hub/tasks/jobs/entrada_de_notas_505.py,sha256=jIml8gjXPdI6_x7S9VVV8IrKZRF7_PTNOMnhNmYMDTU,14490
|
51
51
|
worker_automate_hub/tasks/jobs/entrada_de_notas_7139.py,sha256=8XP9G3n0PUeshbRWkWKOMnyUGRWspIolPZVqQTR3SMI,14184
|
52
|
-
worker_automate_hub/tasks/jobs/entrada_de_notas_9.py,sha256=
|
52
|
+
worker_automate_hub/tasks/jobs/entrada_de_notas_9.py,sha256=Urt_7dZNuyUkSyG9fYb2ArBXzEONXlrqWIesoXeL1EI,50984
|
53
53
|
worker_automate_hub/tasks/jobs/exemplo_processo.py,sha256=3-zxbb-9YHPmSA_K1Qgxp_FwSqg2QDjGBRCLxDZ8QoQ,3451
|
54
54
|
worker_automate_hub/tasks/jobs/fidc_gerar_nosso_numero.py,sha256=mZ6mCaz1lYmyFxwC8MVLXPsgynE1VkNKlEzYGsciDiY,10179
|
55
55
|
worker_automate_hub/tasks/jobs/fidc_remessa_cobranca_cnab240.py,sha256=QBGm6eS5JghgNWNqZlk1g2a2iV8LnBLiOTBBL3Giet0,4181
|
@@ -68,7 +68,7 @@ worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbV
|
|
68
68
|
worker_automate_hub/utils/util.py,sha256=nR3tADb5Rpfn8L1kScLhszEPGKjW3dQMdvIvriIA3tY,121109
|
69
69
|
worker_automate_hub/utils/utils_nfe_entrada.py,sha256=7ju688sD52y30taGSm5rPMGdQyByUUwveLeKV4ImEiE,28401
|
70
70
|
worker_automate_hub/worker.py,sha256=KDBU3L2kVobndrnN5coRZFTwVmBLKmPJjRv20sCo5Hc,4697
|
71
|
-
worker_automate_hub-0.4.
|
72
|
-
worker_automate_hub-0.4.
|
73
|
-
worker_automate_hub-0.4.
|
74
|
-
worker_automate_hub-0.4.
|
71
|
+
worker_automate_hub-0.4.434.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
|
72
|
+
worker_automate_hub-0.4.434.dist-info/METADATA,sha256=mUXh2x3nL5yO7F_LaCqAByMSDGtiWd7LGiDkr1ZnzME,2895
|
73
|
+
worker_automate_hub-0.4.434.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
74
|
+
worker_automate_hub-0.4.434.dist-info/RECORD,,
|
File without changes
|
{worker_automate_hub-0.4.432.dist-info → worker_automate_hub-0.4.434.dist-info}/entry_points.txt
RENAMED
File without changes
|