Ver Mensaje Individual
  #10  
Antiguo 17-11-2025
Avatar de ramherfer
ramherfer ramherfer is offline
Miembro
 
Registrado: may 2013
Ubicación: Valencia
Posts: 162
Reputación: 14
ramherfer Va por buen camino
He visto este fragmento de codigo en uVerifactuFuncs:

Código Delphi [-]
           if afactura.exenta[j].baseImp<>0 then
           begin
                if not ExisteTipoExenta( afactura.exenta[j].tipoExenta ) then exit;

                if afactura.exenta[j].calificacionOperacion<>'' then
                    if not ExisteCalificacion( afactura.exenta[j].calificacionOperacion) then exit;

                if not ExisteTranscendencia( afactura.exenta[j].claveRegimen ) then exit;
           end;

y creo que modificandolo de la siguiente manera quizás resolvería el problema, dado que repito tipo exenta y calificacion de la operación son excluyentes una y la otra:

Código Delphi [-]
           if afactura.exenta[j].baseImp<>0 then
           begin
                if afactura.exenta[j].tipoExenta<>'' then 
                    if not ExisteTipoExenta( afactura.exenta[j].tipoExenta ) then exit;

                if afactura.exenta[j].calificacionOperacion<>'' then
                    if not ExisteCalificacion( afactura.exenta[j].calificacionOperacion) then exit;

                if not ExisteTranscendencia( afactura.exenta[j].claveRegimen ) then exit;
           end;

No se si debería recompilar la dll, lo he intentado con 10.2 y me da errores por todos los lados.
Un saludo,
Ramiro
__________________
Se humilde para admitir tus errores, inteligente para aprender de ellos y maduro para corregirlos.

Última edición por ramherfer fecha: 17-11-2025 a las 21:41:49.
Responder Con Cita