worker-automate-hub 0.5.337__py3-none-any.whl → 0.5.339__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_prazo_a_faturar.py +15 -2
- worker_automate_hub/utils/util.py +1 -3
- {worker_automate_hub-0.5.337.dist-info → worker_automate_hub-0.5.339.dist-info}/METADATA +1 -1
- {worker_automate_hub-0.5.337.dist-info → worker_automate_hub-0.5.339.dist-info}/RECORD +6 -6
- {worker_automate_hub-0.5.337.dist-info → worker_automate_hub-0.5.339.dist-info}/WHEEL +0 -0
- {worker_automate_hub-0.5.337.dist-info → worker_automate_hub-0.5.339.dist-info}/entry_points.txt +0 -0
@@ -1268,7 +1268,10 @@ async def devolucao_prazo_a_faturar(task: RpaProcessoEntradaDTO) -> RpaRetornoPr
|
|
1268
1268
|
await worker_sleep(2)
|
1269
1269
|
cadastro_pre_venda = await is_window_open_by_class("TFrmPreVenda", "TFrmPreVenda")
|
1270
1270
|
if cadastro_pre_venda["IsOpened"] == True:
|
1271
|
-
|
1271
|
+
if not item_arla:
|
1272
|
+
preenchimento_header_pre_venda = await cadastro_pre_venda_header("5667 - VENDA DE COMB OU LUBRI - SEM ESTOQ E COM FINANC", cod_cliente_correto, "21 DIAS")
|
1273
|
+
else:
|
1274
|
+
preenchimento_header_pre_venda = await cadastro_pre_venda_header("1202 - DEVOLUÇÃO DE VENDA MERC. - 1.202 C/ESTOQUE E S/FINANCEIRO", cod_cliente_correto, "21 DIAS")
|
1272
1275
|
if preenchimento_header_pre_venda.sucesso:
|
1273
1276
|
try:
|
1274
1277
|
cidade_cliente = preenchimento_header_pre_venda.retorno
|
@@ -4103,7 +4106,17 @@ async def devolucao_prazo_a_faturar(task: RpaProcessoEntradaDTO) -> RpaRetornoPr
|
|
4103
4106
|
tags=[RpaTagDTO(descricao=RpaTagEnum.Negocio)]
|
4104
4107
|
)
|
4105
4108
|
else:
|
4106
|
-
console.print("Cliente FIDC não é necessario gerar relatorio final,
|
4109
|
+
console.print("Cliente FIDC não é necessario gerar relatorio final, enviando as informações para o parceiro.")
|
4110
|
+
try:
|
4111
|
+
url_retorno = nota.get("urlRetorno")
|
4112
|
+
identificador = nota.get("identificador")
|
4113
|
+
|
4114
|
+
if url_retorno and identificador:
|
4115
|
+
await post_partner(url_retorno, identificador, numero_nota_fiscal, valor_nota_fiscal)
|
4116
|
+
else:
|
4117
|
+
console.print("Não foi possivel obter o valor de urlRetorno/identificador")
|
4118
|
+
except:
|
4119
|
+
console.print(f"Erro ao obter os dados ou enviar a requisição: {e}")
|
4107
4120
|
retorno = f"Processo de devolução executado com sucesso \nEtapas Executadas:\n{steps}"
|
4108
4121
|
return RpaRetornoProcessoDTO(
|
4109
4122
|
sucesso=True,
|
@@ -2558,8 +2558,6 @@ async def itens_not_found_supplier(xml: str) -> RpaRetornoProcessoDTO:
|
|
2558
2558
|
console.print("Iteragindo com a tela de itens não localizados // NCM ...\n")
|
2559
2559
|
|
2560
2560
|
app = Application().connect(class_name="TFrmAguarde", timeout=60)
|
2561
|
-
aguarde_window = app.window(class_name="TFrmAguarde")
|
2562
|
-
aguarde_window.wait_not("exists visible")
|
2563
2561
|
|
2564
2562
|
max_attempts = 60
|
2565
2563
|
i = 0
|
@@ -4732,4 +4730,4 @@ async def wait_nf_ready():
|
|
4732
4730
|
continue
|
4733
4731
|
|
4734
4732
|
return {"sucesso": False, "retorno": f"Número máximo de tentativas excedido ao tentar transmitir a nota"}
|
4735
|
-
|
4733
|
+
|
@@ -42,7 +42,7 @@ worker_automate_hub/tasks/jobs/cte_manual.py,sha256=JucHpRMjMiy-QEJ0wtFnytLpN53t
|
|
42
42
|
worker_automate_hub/tasks/jobs/descartes.py,sha256=2zODOekSJSr7nuO9sUzT_F3YeG7N5EHuxnp05RguirE,41361
|
43
43
|
worker_automate_hub/tasks/jobs/despesas_cte.py,sha256=TWbjBMZjYDugiqYUa_1DtCAUWOyVetoZI2SPs7AdDNc,13264
|
44
44
|
worker_automate_hub/tasks/jobs/devolucao_ctf.py,sha256=A41O9a6kVUweUBy7Lc2dpJoeAi8QYxu-pMc8u-g0yTg,110241
|
45
|
-
worker_automate_hub/tasks/jobs/devolucao_prazo_a_faturar.py,sha256=
|
45
|
+
worker_automate_hub/tasks/jobs/devolucao_prazo_a_faturar.py,sha256=vHg57ib-QSzDeAkQAnIMA1YNVYMQyFtfVdBX2KKEyt4,245796
|
46
46
|
worker_automate_hub/tasks/jobs/ecac_estadual_go.py,sha256=dKkf22nH5gp3RErq5u0UzRsKyJ81fc6ZZ4vLtUuMwHA,21002
|
47
47
|
worker_automate_hub/tasks/jobs/ecac_estadual_main.py,sha256=8WmKe4-MRtzHobXz2S4YBDNN8alfawkC-BBlRY-mn1g,1726
|
48
48
|
worker_automate_hub/tasks/jobs/ecac_estadual_mt.py,sha256=C26zmpGQGUq6sP9lU9nanM3Fje-rkyx5tjwmRy4lyL8,25300
|
@@ -82,10 +82,10 @@ worker_automate_hub/utils/get_creds_gworkspace.py,sha256=ZJ0IIEjM4IXIV9rwfbOZ1V1
|
|
82
82
|
worker_automate_hub/utils/logger.py,sha256=FYV9fg0_RAYJF_ZOCJEbqQAiCXlXk2gMpvUU1rzT_xs,671
|
83
83
|
worker_automate_hub/utils/toast.py,sha256=xPHc5r5uOxB_cZlCzm13Kt2qSKLLFZALncU6Qg3Ft68,1162
|
84
84
|
worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbVlwDl49Y,7972
|
85
|
-
worker_automate_hub/utils/util.py,sha256=
|
85
|
+
worker_automate_hub/utils/util.py,sha256=WZK1VjdoOCHWWXzLt9gh2uUi_6p3OfvI6DvAYIGi998,185072
|
86
86
|
worker_automate_hub/utils/utils_nfe_entrada.py,sha256=wmnpuOesmPSryZszmapa37b9YNC0E2MkeDYnbwr-0rU,33315
|
87
87
|
worker_automate_hub/worker.py,sha256=axdrr1xLTjWEyWfcyH3OCSpPTsyzck_fL_0u1DBLjvw,6525
|
88
|
-
worker_automate_hub-0.5.
|
89
|
-
worker_automate_hub-0.5.
|
90
|
-
worker_automate_hub-0.5.
|
91
|
-
worker_automate_hub-0.5.
|
88
|
+
worker_automate_hub-0.5.339.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
|
89
|
+
worker_automate_hub-0.5.339.dist-info/METADATA,sha256=I7oL4YaX2x01nHPZDAPxU_gB0FuECcboD5HH8SsEnwI,3041
|
90
|
+
worker_automate_hub-0.5.339.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
|
91
|
+
worker_automate_hub-0.5.339.dist-info/RECORD,,
|
File without changes
|
{worker_automate_hub-0.5.337.dist-info → worker_automate_hub-0.5.339.dist-info}/entry_points.txt
RENAMED
File without changes
|