From bc991acd6a3e191fb654b2b36ad10aba08189644 Mon Sep 17 00:00:00 2001 From: hreyes Date: Mon, 25 May 2026 10:27:49 -0600 Subject: [PATCH] feature/cambio-de-regimen --- .../api/v1/modules/a76/invoices/common/common_validators.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/api/v1/modules/a76/invoices/common/common_validators.py b/backend/api/v1/modules/a76/invoices/common/common_validators.py index fb5d0813..fd1559f0 100644 --- a/backend/api/v1/modules/a76/invoices/common/common_validators.py +++ b/backend/api/v1/modules/a76/invoices/common/common_validators.py @@ -379,11 +379,11 @@ def validate_common( value=invoice.document_type, ) - if pedimento.pedimento_code not in ["A1", "A3"]: + if pedimento.pedimento_code not in ["A1", "A3", "F5"]: errors.add_error( field="compliance_mx.pedimento_id", - message=f"El Pedimento seleccionado no es de tipo A1 o A3 requerido para Cambio de Régimen.", - solution=["Selecciona un Pedimento de tipo A1 o A3"], + message=f"El Pedimento seleccionado no es de tipo A1, A3 o F5 requerido para Cambio de Régimen.", + solution=["Selecciona un Pedimento de tipo A1, A3 o F5"], code="INVALID_PEDEMENTO_CODE", value=pedimento.pedimento_code, )