|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.kfs.fp.document.service.impl.DisbursementVoucherTravelServiceImpl
public class DisbursementVoucherTravelServiceImpl
This is the default implementation of the DisbursementVoucherTravelService interface. Performs calculations of travel per diem and mileage amounts.
Constructor Summary | |
---|---|
DisbursementVoucherTravelServiceImpl()
|
Method Summary | |
---|---|
org.kuali.rice.kns.util.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.kns.util.KualiDecimal |
calculatePerDiemAmount(Timestamp startDateTime,
Timestamp endDateTime,
org.kuali.rice.kns.util.KualiDecimal rate)
This method calculates the per diem amount for a given period of time at the rate provided. |
org.kuali.rice.kns.service.DateTimeService |
getDateTimeService()
Gets the dateTimeService attribute. |
TravelMileageRateDao |
getTravelMileageRateDao()
Gets the travelMileageRateDao attribute. |
void |
setDateTimeService(org.kuali.rice.kns.service.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DisbursementVoucherTravelServiceImpl()
Method Detail |
---|
public org.kuali.rice.kns.util.KualiDecimal calculatePerDiemAmount(Timestamp startDateTime, Timestamp endDateTime, org.kuali.rice.kns.util.KualiDecimal rate)
calculatePerDiemAmount
in interface DisbursementVoucherTravelService
stateDateTime
- 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.kfs.fp.document.service.DisbursementVoucherTravelService#calculatePerDiemAmount(org.kuali.kfs.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.kns.util.KualiDecimal calculateMileageAmount(Integer totalMileage, Timestamp travelStartDate)
calculateMileageAmount
in interface DisbursementVoucherTravelService
totalMileage
- 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.kfs.fp.document.service.DisbursementVoucherTravelService#calculateMileageAmount(org.kuali.kfs.fp.businessobject.DisbursementVoucherNonEmployeeTravel)
public TravelMileageRateDao getTravelMileageRateDao()
public void setTravelMileageRateDao(TravelMileageRateDao travelMileageRateDao)
travelMileageRateDao
- The travelMileageRateDao to set.public org.kuali.rice.kns.service.DateTimeService getDateTimeService()
public void setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
dateTimeService
- The dateTimeService to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |