[CONCEPTOS] 393,'PAG10S01','Prima Por Antigüedad G10-S1','Prima Por Antigüedad','S',True,4,1,2,31,0,True,True,False,2,False,'1','[PAR( Suel_Min_Cat=[SQL(Select Min(laudo) from cargos where laudo <> 0)]; Antiguedad_Real=ENTERO(FI(ANTI)); Tope_Años=10; Porcentaje_Común=SI(Antiguedad_Real<3; 0; SI(Antiguedad_Real>=10; Tope_Años ; Antiguedad_Real))/100; Cargo_Real=[SQL(SELECT LAUDO FROM CARGOS WHERE ID_CARGO=[C(2)])]; Sueldo=FI(SB); Calculo_De_Prima_Ficticia=Porcentaje_Común*Suel_Min_Cat; Diferencia_Entre_Sueldo_y_CARGOPRIMA=Sueldo-(Calculo_De_Prima_Ficticia+Cargo_Real); Condicion_Especial=SI(Diferencia_Entre_Sueldo_y_CARGOPRIMA>0;0;SI(Diferencia_Entre_Sueldo_y_CARGOPRIMA*-1>=Calculo_De_Prima_Ficticia;Calculo_De_Prima_Ficticia;Diferencia_Entre_Sueldo_y_CARGOPRIMA*-1)); Condicion_Final=SI(Cargo_Real=0;0;SI(Diferencia_Entre_Sueldo_y_CARGOPRIMA>=0;0;Condicion_Especial)) )] Condicion_Final',Null,Null,1,True,1,0,False [/CONCEPTOS]