public class DisbursementVoucherTravelServiceImpl extends Object implements DisbursementVoucherTravelService
| Constructor and Description | 
|---|
| DisbursementVoucherTravelServiceImpl() | 
| Modifier and Type | Method and Description | 
|---|---|
| org.kuali.rice.core.api.util.type.KualiDecimal | calculateMileageAmount(Integer totalMileage,
                                            Timestamp travelStartDate)This method calculates the mileage amount based on the total mileage traveled and the using the reimbursement rate
 applicable to when the trip started. | 
| org.kuali.rice.core.api.util.type.KualiDecimal | calculatePerDiemAmount(Timestamp startDateTime,
                                            Timestamp endDateTime,
                                            org.kuali.rice.core.api.util.type.KualiDecimal rate)This method calculates the per diem amount for a given period of time at the rate provided. | 
| org.kuali.rice.core.api.datetime.DateTimeService | getDateTimeService()Gets the dateTimeService attribute. | 
| TravelMileageRateDao | getTravelMileageRateDao()Gets the travelMileageRateDao attribute. | 
| void | setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService)Sets the dateTimeService attribute. | 
| void | setTravelMileageRateDao(TravelMileageRateDao travelMileageRateDao)Sets the travelMileageRateDao attribute. | 
| protected boolean | timeInPerDiemPeriod(Calendar cal,
                                      int periodStartHour,
                                      int periodStartMinute,
                                      int periodEndHour,
                                      int periodEndMinute)Checks whether the date is in a per diem period given by the start hour and end hour and minutes. | 
public DisbursementVoucherTravelServiceImpl()
public org.kuali.rice.core.api.util.type.KualiDecimal calculatePerDiemAmount(Timestamp startDateTime, Timestamp endDateTime, org.kuali.rice.core.api.util.type.KualiDecimal rate)
calculatePerDiemAmount in interface DisbursementVoucherTravelServicestateDateTime - The starting date and time of the period the per diem amount is calculated for.endDateTime - The ending date and time of the period the per diema mount is calculated for.rate - The per diem rate used to calculate the per diem amount.org.kuali.ole.fp.document.service.DisbursementVoucherTravelService#calculatePerDiemAmount(org.kuali.ole.fp.businessobject.DisbursementVoucherNonEmployeeTravel)protected boolean timeInPerDiemPeriod(Calendar cal, int periodStartHour, int periodStartMinute, int periodEndHour, int periodEndMinute)
cal - The date being checked to see if it occurred within the defined travel per diem period.periodStartHour - The starting hour of the per diem period.periodStartMinute - The starting minute of the per diem period.periodEndHour - The ending hour of the per diem period.periodEndMinute - The ending minute of the per diem period.public org.kuali.rice.core.api.util.type.KualiDecimal calculateMileageAmount(Integer totalMileage, Timestamp travelStartDate)
calculateMileageAmount in interface DisbursementVoucherTravelServicetotalMileage - The total mileage traveled that will be reimbursed for.travelStartDate - The start date of the travel, which will be used to retrieve the mileage reimbursement rate.org.kuali.ole.fp.document.service.DisbursementVoucherTravelService#calculateMileageAmount(org.kuali.ole.fp.businessobject.DisbursementVoucherNonEmployeeTravel)public TravelMileageRateDao getTravelMileageRateDao()
public void setTravelMileageRateDao(TravelMileageRateDao travelMileageRateDao)
travelMileageRateDao - The travelMileageRateDao to set.public org.kuali.rice.core.api.datetime.DateTimeService getDateTimeService()
public void setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService)
dateTimeService - The dateTimeService to set.Copyright © 2004–2015 The Kuali Foundation. All rights reserved.