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

tech.deepdreams.worker.services.deduction.AccTravServicev2020Impl Maven / Gradle / Ivy

There is a newer version: 0.0.4-RELEASE
Show newest version
package tech.deepdreams.worker.services.deduction;
import java.util.Map;
import tech.deepdreams.worker.api.services.DeductionService;
import tech.deepdreams.worker.constants.CIVElementCode;
import tech.deepdreams.worker.constants.LocalConstantCode;
import tech.deepdreams.worker.api.enums.CountryCode;

public class AccTravServicev2020Impl implements DeductionService{
	
	@Override
	public Double calculateEmployee(Map params) {
		return 0.0 ;
	}

	@Override
	public Double calculateEmployer(Map params) {
		Double value = (Double) params.get(LocalConstantCode.CODE_GROSS_TAXABLE_SALARY) ;
		Double rate = (Double) params.get(LocalConstantCode.CODE_RISK_RATE) ;
		return value * rate * 0.01 ;
	}
	
	
	public CountryCode country() {
		return CountryCode.CIV ;
	}
	
	public String code() {
		return CIVElementCode.CODE_ACC_TRAV ;
	}
	
	public int version() {
		return 2020 ;
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy