worker-automate-hub 0.5.602__py3-none-any.whl → 0.5.604__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.py +4 -0
- worker_automate_hub/tasks/jobs/entrada_de_notas_503.py +31 -1
- {worker_automate_hub-0.5.602.dist-info → worker_automate_hub-0.5.604.dist-info}/METADATA +1 -1
- {worker_automate_hub-0.5.602.dist-info → worker_automate_hub-0.5.604.dist-info}/RECORD +6 -6
- {worker_automate_hub-0.5.602.dist-info → worker_automate_hub-0.5.604.dist-info}/WHEEL +0 -0
- {worker_automate_hub-0.5.602.dist-info → worker_automate_hub-0.5.604.dist-info}/entry_points.txt +0 -0
@@ -4221,7 +4221,11 @@ async def devolucao_ctf(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
|
|
4221
4221
|
status=RpaHistoricoStatusEnum.Falha,
|
4222
4222
|
tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)]
|
4223
4223
|
)
|
4224
|
+
|
4224
4225
|
|
4226
|
+
with open(f"{path_to_txt}.pdf", 'rb') as file:
|
4227
|
+
file_bytes = io.BytesIO(file.read())
|
4228
|
+
|
4225
4229
|
|
4226
4230
|
desArquivo = f"CAIXA 13 DEVOLUCAO {numero_cupom_fiscal}.pdf"
|
4227
4231
|
try:
|
@@ -76,6 +76,7 @@ async def entrada_de_notas_503(task: RpaProcessoEntradaDTO) -> RpaRetornoProcess
|
|
76
76
|
|
77
77
|
# Seta config entrada na var nota para melhor entendimento
|
78
78
|
nota = task.configEntrada
|
79
|
+
cfop = nota["cfop"]
|
79
80
|
multiplicador_timeout = int(float(task.sistemas[0].timeout))
|
80
81
|
set_variable("timeout_multiplicador", multiplicador_timeout)
|
81
82
|
|
@@ -364,8 +365,36 @@ async def entrada_de_notas_503(task: RpaProcessoEntradaDTO) -> RpaRetornoProcess
|
|
364
365
|
class_name="TDBIComboBox", found_index=0
|
365
366
|
)
|
366
367
|
combo_box_natureza_operacao.click()
|
368
|
+
|
367
369
|
await worker_sleep(4)
|
368
|
-
|
370
|
+
|
371
|
+
# Verifica tipo de CFOP
|
372
|
+
if cfop == "6557":
|
373
|
+
try:
|
374
|
+
set_combobox("||List", "2557-ENTRADAS P/ TRANSFERENCIA DE CONSUMO - FILIAL")
|
375
|
+
except:
|
376
|
+
return RpaRetornoProcessoDTO(
|
377
|
+
sucesso=False,
|
378
|
+
retorno=f"Erro ao selecionar 2557-ENTRADAS P/ TRANSFERÊNCIA DE CONSUMO FILIAL.",
|
379
|
+
status=RpaHistoricoStatusEnum.Falha,
|
380
|
+
)
|
381
|
+
elif cfop == "5557":
|
382
|
+
try:
|
383
|
+
set_combobox("||List", "1557-ENTRADAS P/TRANSFERENCIA DE CONSUMO FILIAL")
|
384
|
+
except:
|
385
|
+
return RpaRetornoProcessoDTO(
|
386
|
+
sucesso=False,
|
387
|
+
retorno=f"Erro ao selecionar 1557-ENTRADAS P/TRANSFERENCIA DE CONSUMO FILIAL.",
|
388
|
+
status=RpaHistoricoStatusEnum.Falha,
|
389
|
+
)
|
390
|
+
else:
|
391
|
+
return RpaRetornoProcessoDTO(
|
392
|
+
sucesso=False,
|
393
|
+
retorno=f"CFOP diferente de 5557 e 6557. Verifique manualmente.",
|
394
|
+
status=RpaHistoricoStatusEnum.Falha,
|
395
|
+
tags=[RpaTagDTO(descricao=RpaTagEnum.Negocio)]
|
396
|
+
)
|
397
|
+
|
369
398
|
await worker_sleep(3)
|
370
399
|
|
371
400
|
pyautogui.hotkey("tab")
|
@@ -995,3 +1024,4 @@ async def entrada_de_notas_503(task: RpaProcessoEntradaDTO) -> RpaRetornoProcess
|
|
995
1024
|
logger.error(observacao)
|
996
1025
|
console.print(observacao, style="bold red")
|
997
1026
|
return {"sucesso": False, "retorno": observacao}
|
1027
|
+
|
@@ -42,7 +42,7 @@ worker_automate_hub/tasks/jobs/conexao_rdp.py,sha256=S6QC4xhuo0pB5FjaUJZNMm1LIgE
|
|
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=Ix24vLDjDbLxAgmAdljSltAAIiRGOt3DACKdsJDxX68,15072
|
44
44
|
worker_automate_hub/tasks/jobs/descartes.py,sha256=E5kKef8j7e0PTm6NBeZAXkljUoAFEMjVWvHaJ8g2fv4,44451
|
45
|
-
worker_automate_hub/tasks/jobs/devolucao_ctf.py,sha256=
|
45
|
+
worker_automate_hub/tasks/jobs/devolucao_ctf.py,sha256=s7-K3byu-G5smd0aU8_9dqImZKAf4X0PcpsQNLTf9AI,251928
|
46
46
|
worker_automate_hub/tasks/jobs/devolucao_prazo_a_faturar.py,sha256=byIk02T4fWCVgKisf50ZAEY26d8FMTlX9S7RnQVtoEE,256763
|
47
47
|
worker_automate_hub/tasks/jobs/ecac_estadual_go.py,sha256=dKkf22nH5gp3RErq5u0UzRsKyJ81fc6ZZ4vLtUuMwHA,21002
|
48
48
|
worker_automate_hub/tasks/jobs/ecac_estadual_main.py,sha256=8WmKe4-MRtzHobXz2S4YBDNN8alfawkC-BBlRY-mn1g,1726
|
@@ -61,7 +61,7 @@ worker_automate_hub/tasks/jobs/entrada_de_notas_34.py,sha256=AXUL8DakrDeTxWW8dn3
|
|
61
61
|
worker_automate_hub/tasks/jobs/entrada_de_notas_36.py,sha256=LW44NTCZJ_N5FCF5i4DRzG4GPdGEA3q_VJ1qJbH5omQ,34635
|
62
62
|
worker_automate_hub/tasks/jobs/entrada_de_notas_39.py,sha256=89WgjhzhQXKoMmbRPiliV8BvA1Ni3IN8tnRkt86RGNA,46806
|
63
63
|
worker_automate_hub/tasks/jobs/entrada_de_notas_500.py,sha256=WBsCRbH7ANiCjEn0aEDc5AqGf6grEFhxyBoAIh3zJ40,44160
|
64
|
-
worker_automate_hub/tasks/jobs/entrada_de_notas_503.py,sha256=
|
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
66
|
worker_automate_hub/tasks/jobs/entrada_de_notas_7139.py,sha256=aSgHterguK9XGtq0Bf__YlXo5pewb9P-BRZTLnrH1D8,29020
|
67
67
|
worker_automate_hub/tasks/jobs/entrada_de_notas_9.py,sha256=VJ-2g7tuqbAICOarJpAhljjJJ5wbb5hphTboBWoxj7M,64639
|
@@ -95,7 +95,7 @@ worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbV
|
|
95
95
|
worker_automate_hub/utils/util.py,sha256=_pgZOFWgXoov6WPbqyRTDVXJCRFfucYB3gb9swzU7bo,198281
|
96
96
|
worker_automate_hub/utils/utils_nfe_entrada.py,sha256=wmnpuOesmPSryZszmapa37b9YNC0E2MkeDYnbwr-0rU,33315
|
97
97
|
worker_automate_hub/worker.py,sha256=axdrr1xLTjWEyWfcyH3OCSpPTsyzck_fL_0u1DBLjvw,6525
|
98
|
-
worker_automate_hub-0.5.
|
99
|
-
worker_automate_hub-0.5.
|
100
|
-
worker_automate_hub-0.5.
|
101
|
-
worker_automate_hub-0.5.
|
98
|
+
worker_automate_hub-0.5.604.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
|
99
|
+
worker_automate_hub-0.5.604.dist-info/METADATA,sha256=rMzilT1VdwCLs_hVYajcLwB1OvA1ye883MfkjFbXdVo,3049
|
100
|
+
worker_automate_hub-0.5.604.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
101
|
+
worker_automate_hub-0.5.604.dist-info/RECORD,,
|
File without changes
|
{worker_automate_hub-0.5.602.dist-info → worker_automate_hub-0.5.604.dist-info}/entry_points.txt
RENAMED
File without changes
|