worker-automate-hub 0.5.602__py3-none-any.whl → 0.5.603__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_503.py +31 -1
- {worker_automate_hub-0.5.602.dist-info → worker_automate_hub-0.5.603.dist-info}/METADATA +1 -1
- {worker_automate_hub-0.5.602.dist-info → worker_automate_hub-0.5.603.dist-info}/RECORD +5 -5
- {worker_automate_hub-0.5.602.dist-info → worker_automate_hub-0.5.603.dist-info}/WHEEL +0 -0
- {worker_automate_hub-0.5.602.dist-info → worker_automate_hub-0.5.603.dist-info}/entry_points.txt +0 -0
@@ -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
|
+
|
@@ -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.603.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
|
99
|
+
worker_automate_hub-0.5.603.dist-info/METADATA,sha256=BcWgxlT1euxbVBolwutNiudyVAtKMM7EnYK3a-KKIoM,3049
|
100
|
+
worker_automate_hub-0.5.603.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
101
|
+
worker_automate_hub-0.5.603.dist-info/RECORD,,
|
File without changes
|
{worker_automate_hub-0.5.602.dist-info → worker_automate_hub-0.5.603.dist-info}/entry_points.txt
RENAMED
File without changes
|