worker-automate-hub 0.5.56__tar.gz → 0.5.58__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/PKG-INFO +1 -1
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/pyproject.toml +1 -1
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/tasks/jobs/devolucao_prazo_a_faturar.py +105 -102
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/tasks/jobs/entrada_de_notas_39.py +5 -5
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/tasks/jobs/entrada_de_notas_500.py +5 -4
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/utils/util.py +12 -6
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/README.md +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/__init__.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/api/__init__.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/api/ahead_service.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/api/client.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/api/helpers/__init__.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/api/helpers/api_helpers.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/api/rdp_service.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/api/rpa_fila_service.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/api/rpa_historico_service.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/api/webhook_service.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/cli.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/config/__init__.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/config/settings.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/config.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/core/so_manipulation.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/decorators/__init__.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/decorators/deprecation.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/decorators/rate_limit.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/decorators/repeat.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/decorators/retry.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/decorators/singleton.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/decorators/timeit.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/models/__init__.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/models/dao/__init__.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/models/dao/rpa_configuracao.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/models/dao/rpa_fila.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/models/dao/rpa_historico.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/models/dao/rpa_processo.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/models/dao/rpa_robo.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/models/dto/__init__.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/models/dto/rpa_historico_request_dto.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/models/dto/rpa_processo_entrada_dto.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/models/dto/rpa_processo_rdp_dto.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/models/dto/rpa_sistema_dto.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/tasks/__init__.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/tasks/jobs/__init__.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/tasks/jobs/coleta_dje_process.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/tasks/jobs/conexao_rdp.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/tasks/jobs/descartes.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/tasks/jobs/ecac_estadual_go.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/tasks/jobs/ecac_estadual_main.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/tasks/jobs/ecac_estadual_mt.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/tasks/jobs/ecac_estadual_sc.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/tasks/jobs/ecac_estadual_sp.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/tasks/jobs/ecac_federal.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/tasks/jobs/entrada_de_notas_15.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/tasks/jobs/entrada_de_notas_16.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/tasks/jobs/entrada_de_notas_207.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/tasks/jobs/entrada_de_notas_32.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/tasks/jobs/entrada_de_notas_33.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/tasks/jobs/entrada_de_notas_34.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/tasks/jobs/entrada_de_notas_36.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/tasks/jobs/entrada_de_notas_505.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/tasks/jobs/entrada_de_notas_7139.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/tasks/jobs/entrada_de_notas_9.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/tasks/jobs/exemplo_processo.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/tasks/jobs/fechar_conexao_rdp.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/tasks/jobs/fidc_gerar_nosso_numero.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/tasks/jobs/fidc_remessa_cobranca_cnab240.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/tasks/jobs/login_emsys.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/tasks/jobs/login_emsys_versao_especifica.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/tasks/jobs/playground.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/tasks/jobs/sped_fiscal.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/tasks/jobs/transferencias.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/tasks/task_definitions.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/tasks/task_executor.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/utils/__init__.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/utils/env.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/utils/get_creds_gworkspace.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/utils/logger.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/utils/toast.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/utils/updater.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/utils/utils_nfe_entrada.py +0 -0
- {worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/worker.py +0 -0
@@ -133,124 +133,127 @@ async def devolucao_prazo_a_faturar(task: RpaProcessoEntradaDTO) -> RpaRetornoPr
|
|
133
133
|
console.print(f"\nError Message: {return_login.retorno}", style="bold red")
|
134
134
|
return return_login
|
135
135
|
|
136
|
-
#VALIDAR SE CLIENTE É FIDIC
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
console.print("
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
status=RpaHistoricoStatusEnum.Falha,
|
157
|
-
tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)]
|
158
|
-
)
|
159
|
-
|
160
|
-
#REALIZAR PROCESSO DE NOTA FISCAL DE SAIDA
|
161
|
-
type_text_into_field("Nota Fiscal de Saida", app["TFrmMenuPrincipal"]["Edit"], True, "50")
|
162
|
-
pyautogui.press("enter")
|
163
|
-
await worker_sleep(2)
|
164
|
-
pyautogui.press('down')
|
165
|
-
pyautogui.press("enter")
|
166
|
-
console.print(f"\nPesquisa: 'Nota Fiscal de Saída' realizada com sucesso",style="bold green")
|
167
|
-
await worker_sleep(6)
|
168
|
-
|
169
|
-
busca_nf_saida = await nf_busca_nf_saida(numero_cupom_fiscal)
|
170
|
-
if busca_nf_saida.sucesso == True:
|
171
|
-
console.log(busca_nf_saida.retorno, style="bold green")
|
172
|
-
else:
|
173
|
-
retorno = f"{busca_nf_saida.retorno} \nEtapas Executadas:\n{steps}"
|
174
|
-
return RpaRetornoProcessoDTO(
|
175
|
-
sucesso=False,
|
176
|
-
retorno=retorno,
|
177
|
-
status=RpaHistoricoStatusEnum.Falha,
|
178
|
-
tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)]
|
179
|
-
)
|
180
|
-
|
181
|
-
|
182
|
-
#VERIFICANDO A EXISTENCIA DE WARNINGS
|
183
|
-
console.print("Verificando a existência de Warning... \n")
|
184
|
-
warning_pop_up = await is_window_open("Warning")
|
185
|
-
if warning_pop_up["IsOpened"] == True:
|
186
|
-
console.print("possui Pop-up de Warning, analisando... \n")
|
187
|
-
ocr_pop_warning = await ocr_warnings(numero_cupom_fiscal)
|
188
|
-
if ocr_pop_warning.sucesso == True:
|
189
|
-
retorno = f"POP UP Warning não mapeado para seguimento do processo, mensagem: {ocr_pop_warning.retorno} \nEtapas Executadas:\n{steps}"
|
136
|
+
#VALIDAR SE CLIENTE É FIDIC
|
137
|
+
#REGRA PARA INICIAR ONDE PAROU, TEMPORARIO
|
138
|
+
init = 1
|
139
|
+
if init == 1:
|
140
|
+
console.print("Validando se o Cliente é FIDC...\n")
|
141
|
+
if nota.get("clienteFIDC").lower() == 'não':
|
142
|
+
#HABILITAR CLIENTE E FORNECEDOR PARA COD INCORRETO
|
143
|
+
console.print("Seguindo com o processo de habilitar Cliente e Fornecedor para andamento do processo.. \n")
|
144
|
+
type_text_into_field("Pessoas", app["TFrmMenuPrincipal"]["Edit"], True, "50")
|
145
|
+
pyautogui.press("enter")
|
146
|
+
send_keys("{DOWN " + ("2") + "}")
|
147
|
+
pyautogui.press("enter")
|
148
|
+
|
149
|
+
await worker_sleep(2)
|
150
|
+
console.print("Verificando se o cliente esta ativo como Cliente e como Fornecedor... \n")
|
151
|
+
ativar_cliente_fornecedor = await pessoas_ativa_cliente_fornecedor(cod_cliente_incorreto, True, True)
|
152
|
+
if ativar_cliente_fornecedor.sucesso == True:
|
153
|
+
steps += 'ETAPA 00 - CLIENTE E FORNECEDOR - ATIVADOS COM SUCESSO'
|
154
|
+
console.log(ativar_cliente_fornecedor.retorno, style="bold green")
|
155
|
+
else:
|
190
156
|
return RpaRetornoProcessoDTO(
|
191
157
|
sucesso=False,
|
192
|
-
retorno=retorno,
|
193
|
-
status=RpaHistoricoStatusEnum.Falha,
|
194
|
-
tags=[RpaTagDTO(descricao=RpaTagEnum.
|
158
|
+
retorno=ativar_cliente_fornecedor.retorno,
|
159
|
+
status=RpaHistoricoStatusEnum.Falha,
|
160
|
+
tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)]
|
195
161
|
)
|
162
|
+
|
163
|
+
#REALIZAR PROCESSO DE NOTA FISCAL DE SAIDA
|
164
|
+
type_text_into_field("Nota Fiscal de Saida", app["TFrmMenuPrincipal"]["Edit"], True, "50")
|
165
|
+
pyautogui.press("enter")
|
166
|
+
await worker_sleep(2)
|
167
|
+
pyautogui.press('down')
|
168
|
+
pyautogui.press("enter")
|
169
|
+
console.print(f"\nPesquisa: 'Nota Fiscal de Saída' realizada com sucesso",style="bold green")
|
170
|
+
await worker_sleep(6)
|
171
|
+
|
172
|
+
busca_nf_saida = await nf_busca_nf_saida(numero_cupom_fiscal)
|
173
|
+
if busca_nf_saida.sucesso == True:
|
174
|
+
console.log(busca_nf_saida.retorno, style="bold green")
|
196
175
|
else:
|
197
|
-
retorno = f"{
|
176
|
+
retorno = f"{busca_nf_saida.retorno} \nEtapas Executadas:\n{steps}"
|
198
177
|
return RpaRetornoProcessoDTO(
|
199
178
|
sucesso=False,
|
200
179
|
retorno=retorno,
|
201
|
-
status=RpaHistoricoStatusEnum.Falha,
|
180
|
+
status=RpaHistoricoStatusEnum.Falha,
|
202
181
|
tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)]
|
203
182
|
)
|
204
|
-
else:
|
205
|
-
console.print("Não possui pop de Warning...\n")
|
206
|
-
|
207
183
|
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
if
|
213
|
-
console.print("
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
184
|
+
|
185
|
+
#VERIFICANDO A EXISTENCIA DE WARNINGS
|
186
|
+
console.print("Verificando a existência de Warning... \n")
|
187
|
+
warning_pop_up = await is_window_open("Warning")
|
188
|
+
if warning_pop_up["IsOpened"] == True:
|
189
|
+
console.print("possui Pop-up de Warning, analisando... \n")
|
190
|
+
ocr_pop_warning = await ocr_warnings(numero_cupom_fiscal)
|
191
|
+
if ocr_pop_warning.sucesso == True:
|
192
|
+
retorno = f"POP UP Warning não mapeado para seguimento do processo, mensagem: {ocr_pop_warning.retorno} \nEtapas Executadas:\n{steps}"
|
193
|
+
return RpaRetornoProcessoDTO(
|
194
|
+
sucesso=False,
|
195
|
+
retorno=retorno,
|
196
|
+
status=RpaHistoricoStatusEnum.Falha,
|
197
|
+
tags=[RpaTagDTO(descricao=RpaTagEnum.Negocio)]
|
198
|
+
)
|
199
|
+
else:
|
200
|
+
retorno = f"{ocr_pop_warning.retorno} \nEtapas Executadas:\n{steps}"
|
201
|
+
return RpaRetornoProcessoDTO(
|
202
|
+
sucesso=False,
|
203
|
+
retorno=retorno,
|
204
|
+
status=RpaHistoricoStatusEnum.Falha,
|
205
|
+
tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)]
|
206
|
+
)
|
218
207
|
else:
|
219
|
-
|
208
|
+
console.print("Não possui pop de Warning...\n")
|
209
|
+
|
210
|
+
|
211
|
+
#VERIFICANDO SE O BOTÃO IR PARA A NOTA FATURA
|
212
|
+
console.print("Verificando o status do Botão [Ir para Nota Fatura]...\n")
|
213
|
+
try:
|
214
|
+
btn_ir_para_nota = pyautogui.locateOnScreen(ASSETS_PATH + "\\notas_saida\\ir_para_nota_a_fatura_esmaecido.png", confidence=0.8)
|
215
|
+
if btn_ir_para_nota:
|
216
|
+
console.print("Botão 'Ir para nota de faturar' inativo, seguindo com o processo...\n")
|
217
|
+
app = Application().connect(class_name="TFrmNotaFiscalSaida", timeout=60)
|
218
|
+
main_window = app["TFrmNotaFiscalSaida"]
|
219
|
+
main_window.set_focus()
|
220
|
+
main_window.close()
|
221
|
+
else:
|
222
|
+
retorno = f"Botão [Ir para nota de faturar] está ativo, impossibilitando realizar a devolução \nEtapas Executadas:\n{steps}"
|
223
|
+
return RpaRetornoProcessoDTO(
|
224
|
+
sucesso=False,
|
225
|
+
retorno=retorno,
|
226
|
+
status=RpaHistoricoStatusEnum.Falha,
|
227
|
+
tags=[RpaTagDTO(descricao=RpaTagEnum.Negocio)]
|
228
|
+
)
|
229
|
+
except Exception as e:
|
220
230
|
return RpaRetornoProcessoDTO(
|
221
231
|
sucesso=False,
|
222
|
-
retorno=
|
232
|
+
retorno=f"Não foi possivel verificar o botão [Ir para nota de faturar], erro: {e}",
|
223
233
|
status=RpaHistoricoStatusEnum.Falha,
|
224
|
-
tags=[RpaTagDTO(descricao=RpaTagEnum.
|
225
|
-
)
|
226
|
-
except Exception as e:
|
227
|
-
return RpaRetornoProcessoDTO(
|
228
|
-
sucesso=False,
|
229
|
-
retorno=f"Não foi possivel verificar o botão [Ir para nota de faturar], erro: {e}",
|
230
|
-
status=RpaHistoricoStatusEnum.Falha,
|
231
|
-
tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)]
|
232
|
-
)
|
234
|
+
tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)]
|
235
|
+
)
|
233
236
|
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
237
|
+
#Para liquidar o cupom
|
238
|
+
type_text_into_field("Titulos a receber", app["TFrmMenuPrincipal"]["Edit"], True, "50")
|
239
|
+
pyautogui.press("enter")
|
240
|
+
await worker_sleep(2)
|
241
|
+
pyautogui.press("enter")
|
239
242
|
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
243
|
+
|
244
|
+
liquidar_cupom = await nf_devolucao_liquidar_cupom(numero_cupom_fiscal, data_hoje)
|
245
|
+
if liquidar_cupom.sucesso == True:
|
246
|
+
console.log(liquidar_cupom.retorno, style="bold green")
|
247
|
+
steps += 'ETAPA 01 - Processo de liquidar cupom finalizado com sucesso'
|
248
|
+
else:
|
249
|
+
descricao_tag = liquidar_cupom.tags[0]
|
250
|
+
retorno = f"{liquidar_cupom.retorno} \nEtapas Executadas:\n{steps}"
|
251
|
+
return RpaRetornoProcessoDTO(
|
252
|
+
sucesso=False,
|
253
|
+
retorno=retorno,
|
254
|
+
status=RpaHistoricoStatusEnum.Falha,
|
255
|
+
tags=[RpaTagDTO(descricao=descricao_tag.descricao)]
|
256
|
+
)
|
254
257
|
|
255
258
|
|
256
259
|
#ETAPA 14 A 18
|
@@ -360,14 +360,14 @@ async def entrada_de_notas_39(task: RpaProcessoEntradaDTO) -> RpaRetornoProcesso
|
|
360
360
|
i += 1
|
361
361
|
|
362
362
|
if i >= max_attempts:
|
363
|
+
error_work = await error_after_xml_imported()
|
363
364
|
return RpaRetornoProcessoDTO(
|
364
|
-
sucesso=
|
365
|
-
retorno=
|
366
|
-
status=
|
367
|
-
tags=
|
365
|
+
sucesso=error_work.sucesso,
|
366
|
+
retorno=error_work.retorno,
|
367
|
+
status=error_work.status,
|
368
|
+
tags=error_work.tags
|
368
369
|
)
|
369
370
|
|
370
|
-
|
371
371
|
console.print(
|
372
372
|
f"Marcando Manter calculo PIS/COFINS...\n"
|
373
373
|
)
|
@@ -326,11 +326,12 @@ async def entrada_de_notas_500(task: RpaProcessoEntradaDTO) -> RpaRetornoProcess
|
|
326
326
|
i += 1
|
327
327
|
|
328
328
|
if i >= max_attempts:
|
329
|
+
error_work = await error_after_xml_imported()
|
329
330
|
return RpaRetornoProcessoDTO(
|
330
|
-
sucesso=
|
331
|
-
retorno=
|
332
|
-
status=
|
333
|
-
tags=
|
331
|
+
sucesso=error_work.sucesso,
|
332
|
+
retorno=error_work.retorno,
|
333
|
+
status=error_work.status,
|
334
|
+
tags=error_work.tags
|
334
335
|
)
|
335
336
|
|
336
337
|
console.print(
|
@@ -2426,14 +2426,14 @@ async def error_after_xml_imported() -> RpaRetornoProcessoDTO:
|
|
2426
2426
|
tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)]
|
2427
2427
|
)
|
2428
2428
|
|
2429
|
-
elif "
|
2429
|
+
elif "xml" in control_text.lower():
|
2430
2430
|
return RpaRetornoProcessoDTO(
|
2431
2431
|
sucesso=False,
|
2432
2432
|
retorno=f"Nota descartada: {control_text}... \n",
|
2433
2433
|
status=RpaHistoricoStatusEnum.Descartado,
|
2434
2434
|
)
|
2435
2435
|
|
2436
|
-
elif "
|
2436
|
+
elif "XML já foi importado anteriormente" in control_text:
|
2437
2437
|
return RpaRetornoProcessoDTO(
|
2438
2438
|
sucesso=False,
|
2439
2439
|
retorno=f"Nota descartada: {control_text}... \n",
|
@@ -3670,7 +3670,7 @@ async def nf_devolucao_liquidar_cupom(num_nota_fiscal: str, data_atual: str) ->
|
|
3670
3670
|
status=RpaHistoricoStatusEnum.Falha,
|
3671
3671
|
tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)]
|
3672
3672
|
)
|
3673
|
-
elif "
|
3673
|
+
elif "bloqueado" in msg_result.lower():
|
3674
3674
|
app_confirm = Application().connect(class_name="TMessageForm")
|
3675
3675
|
main_window_confirm = app_confirm["TMessageForm"]
|
3676
3676
|
|
@@ -3694,11 +3694,17 @@ async def nf_devolucao_liquidar_cupom(num_nota_fiscal: str, data_atual: str) ->
|
|
3694
3694
|
status=RpaHistoricoStatusEnum.Falha,
|
3695
3695
|
tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)]
|
3696
3696
|
)
|
3697
|
-
|
3697
|
+
else:
|
3698
|
+
return RpaRetornoProcessoDTO(
|
3699
|
+
sucesso=False,
|
3700
|
+
retorno=f"POP de confirmação de liquidar titulo não encontrado",
|
3701
|
+
status=RpaHistoricoStatusEnum.Falha,
|
3702
|
+
tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)]
|
3703
|
+
)
|
3698
3704
|
console.print('Aguardando a confirmação de Liquidação realizado com sucesso')
|
3699
3705
|
try:
|
3700
|
-
app = Application().connect(
|
3701
|
-
main_window = app["
|
3706
|
+
app = Application().connect(class_name="TMessageForm", timeout=60)
|
3707
|
+
main_window = app["TMessageForm"]
|
3702
3708
|
main_window.set_focus()
|
3703
3709
|
msg_pop_up = await ocr_by_class(num_nota_fiscal,"TMessageForm","TMessageForm")
|
3704
3710
|
if msg_pop_up.sucesso == True:
|
File without changes
|
File without changes
|
{worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/api/__init__.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/api/ahead_service.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/api/rdp_service.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/api/webhook_service.py
RENAMED
File without changes
|
File without changes
|
{worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/config/__init__.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/config/settings.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/decorators/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/decorators/repeat.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/decorators/retry.py
RENAMED
File without changes
|
File without changes
|
{worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/decorators/timeit.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/models/__init__.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/models/dao/__init__.py
RENAMED
File without changes
|
File without changes
|
{worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/models/dao/rpa_fila.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/models/dao/rpa_robo.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/models/dto/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/tasks/__init__.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/tasks/jobs/__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
|
{worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/tasks/task_executor.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/utils/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/utils/logger.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/utils/toast.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.56 → worker_automate_hub-0.5.58}/worker_automate_hub/utils/updater.py
RENAMED
File without changes
|
File without changes
|
File without changes
|