Class EvaluateWageScaleServiceImpl

java.lang.Object
ch.tocco.nice2.optional.salary.impl.service.EvaluateWageScaleServiceImpl
All Implemented Interfaces:
EvaluateWageScaleService

@Component public class EvaluateWageScaleServiceImpl extends Object implements EvaluateWageScaleService
  • Constructor Details

  • Method Details

    • getIncomePerHour

      public Optional<BigDecimal> getIncomePerHour(Entity reservationLecturerBooking)
      Description copied from interface: EvaluateWageScaleService
      Evaluates the salary for one lesson for a given Reservation_lecturer_booking Finds for a given Reservation_lecturer_booking the Wage_scale with the highest value in field scale_priority, that fulfills following criteria, that all related Wage_scale_conditions match for the Reservation_lecturer_booking. Then returns the value in field wage_rate of the found Wage_scale.
      Specified by:
      getIncomePerHour in interface EvaluateWageScaleService
      Parameters:
      reservationLecturerBooking - a Reservation_lecturer_booking entity
      Returns:
      the value in field wage_rate of the Wage_scale that matches best for param reservationLecturerBooking