Ver Mensaje Individual
  #2  
Antiguo 16-01-2009
Avatar de duilioisola
[duilioisola] duilioisola is offline
Miembro Premium
 
Registrado: ago 2007
Ubicación: Barcelona, España
Posts: 1.738
Reputación: 20
duilioisola Es un diamante en brutoduilioisola Es un diamante en brutoduilioisola Es un diamante en bruto
Cita:
determinar que el sueldo es mayor o igual de 330301.00 y menor o igual que 495450.00
Código Delphi [-]
procedure TFrm_Reporte_de_Nomina.ppVariable7Print(Sender: TObject);
begin
           ppVariable6.Value := ppVariable6.Value * 12;
       if (ppVariable6.Value >= 330301.00) AND (ppVariable6.Value <= 495450.00) then begin
           ppVariable8.Value := 495450.00 - 330301.00;
           ppVariable8.Value := ppVariable8.Value - (ppVariable1.Value - ppVariable2.Value);
           ppVariable7.Value := ppVariable8.Value * 15/100;
           ppVariable7.Value := ppVariable7.Value / 12;
           ppVariable6.Value := ppVariable6.Value / 12;
          end
       else
       if (ppVariable6.Value >= 495450.01) AND (ppVariable6.Value <= 688125.00) then begin
           ppVariable8.Value := 688125.00 - 495450.01;
        //   ppVariable8.Value := ppVariable8.Value - (ppVariable1.Value - ppVariable2.Value);
           ppVariable7.Value := ppVariable8.Value * 20/100;
           ppVariable7.Value := ppVariable7.Value / 12;
           ppVariable6.Value := ppVariable6.Value / 12;
           end
       else
       if (ppVariable6.Value > 688125.00)  then begin
       //    ppVariable8.Value := ppVariable8.Value - (ppVariable1.Value - ppVariable2.Value);
           ppVariable7.Value := ppVariable8.Value * 25/100;
           ppVariable7.Value := ppVariable7.Value / 12;
           ppVariable6.Value := ppVariable6.Value / 12;
           end;
end;
end.
Responder Con Cita