| java.lang.Object org.kuali.module.financial.service.impl.DisbursementVoucherTravelServiceImpl
DisbursementVoucherTravelServiceImpl | public class DisbursementVoucherTravelServiceImpl implements DisbursementVoucherTravelService(Code) | | This is the default implementation of the DisbursementVoucherTravelService interface.
Performs calculations of travel per diem and mileage amounts.
|
calculatePerDiemAmount | public KualiDecimal calculatePerDiemAmount(Timestamp startDateTime, Timestamp endDateTime, KualiDecimal rate)(Code) | | This method calculates the per diem amount for a given period of time at the rate provided. The per diem amount is
calculated as described below.
For same day trips:
- Per diem is equal to 1/2 of the per diem rate provided if the difference in time between the start and end time is
greater than 12 hours. An additional 1/4 of a day is added back to the amount if the trip lasted past 7:00pm.
- If the same day trip is less than 12 hours, the per diem amount will be zero.
For multiple day trips:
- Per diem amount is equal to the full rate times the number of full days of travel. A full day is equal to any day
during the trip that is not the first day or last day of the trip.
- For the first day of the trip,
if the travel starts before noon, you receive a full day per diem,
if the travel starts between noon and 5:59pm, you get a half day per diem,
if the travel starts after 6:00pm, you only receive a quarter day per diem
- For the last day of the trip,
if the travel ends before 6:00am, you only receive a quarter day per diem,
if the travel ends between 6:00am and noon, you receive a half day per diem,
if the travel ends after noon, you receive a full day per diem
Parameters: stateDateTime - The starting date and time of the period the per diem amount is calculated for. Parameters: endDateTime - The ending date and time of the period the per diema mount is calculated for. Parameters: rate - The per diem rate used to calculate the per diem amount. The per diem amount for the period specified, at the rate given. See Also: org.kuali.module.financial.service.DisbursementVoucherTravelService.calculatePerDiemAmount(org.kuali.module.financial.bo.DisbursementVoucherNonEmployeeTravel) |
getDateTimeService | public DateTimeService getDateTimeService()(Code) | | Gets the dateTimeService attribute.
Returns the dateTimeService. |
getTravelMileageRateDao | public TravelMileageRateDao getTravelMileageRateDao()(Code) | | Gets the travelMileageRateDao attribute.
Returns the travelMileageRateDao. |
setDateTimeService | public void setDateTimeService(DateTimeService dateTimeService)(Code) | | Sets the dateTimeService attribute.
Parameters: dateTimeService - The dateTimeService to set. |
setTravelMileageRateDao | public void setTravelMileageRateDao(TravelMileageRateDao travelMileageRateDao)(Code) | | Sets the travelMileageRateDao attribute.
Parameters: travelMileageRateDao - The travelMileageRateDao to set. |
|
|