All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tech.deepdreams.worker.benefit.HourlySalaryServicev2020Impl Maven / Gradle / Ivy

There is a newer version: 0.1.1-RELEASE
Show newest version
package tech.deepdreams.worker.benefit;
import java.util.Map;
import tech.deepdreams.worker.api.services.HourlySalaryService;
import tech.deepdreams.worker.constants.ElementCode;
import tech.deepdreams.worker.constants.LocalConstantCode;
import tech.deepdreams.worker.api.enums.CountryCode;

public class HourlySalaryServicev2020Impl implements HourlySalaryService{
	

	public Double calculate(Map params) {
		Double requiredWorkingHours = (Double) params.get(LocalConstantCode.CODE_REQUIRED_WORKING_HOURS) ;
		Double baseSalary = (Double) params.get(ElementCode.CODE_BASE_SALARY) ;
		return baseSalary*1.0/requiredWorkingHours ;
	}
	
	
	public CountryCode country() {
		return CountryCode.CIV ;
	}

	
	public int version() {
		return 2020 ;
	}

	
	public String code() {
		return LocalConstantCode.CODE_HOURLY_SALARY ;
	}
	
	// prime d'expatriation, prime d'ancienneté, prime de transport, prime de fin d'année
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy