org.kuali.kfs.fp.document.service
Interface DisbursementVoucherTravelService

All Known Implementing Classes:
DisbursementVoucherTravelServiceImpl

public interface DisbursementVoucherTravelService

This service interface defines the methods that a DisbursementVoucherTravelService implementation must provide. Performs calculations of travel per diem and mileage amounts.


Method Summary
 org.kuali.rice.kns.util.KualiDecimal calculateMileageAmount(Integer totalMileage, Timestamp travelStartDate)
          Calculates the mileage travel amount.
 org.kuali.rice.kns.util.KualiDecimal calculatePerDiemAmount(Timestamp startDateTime, Timestamp endDateTime, org.kuali.rice.kns.util.KualiDecimal perDiemRate)
          Calculates the per diem travel amount.
 

Method Detail

calculatePerDiemAmount

org.kuali.rice.kns.util.KualiDecimal calculatePerDiemAmount(Timestamp startDateTime,
                                                            Timestamp endDateTime,
                                                            org.kuali.rice.kns.util.KualiDecimal perDiemRate)
Calculates the per diem travel amount.

Parameters:
startDateTime - The start date and time of the period of time we will calculate the per diem amount for.
endDateTime - The end date and time of the period of time we will calculate the per diem amount for.
perDiemRate - The per diem rate used to calculate the total amount.
Returns:
The per diem amount for the time period passed in and based on the rate given.

calculateMileageAmount

org.kuali.rice.kns.util.KualiDecimal calculateMileageAmount(Integer totalMileage,
                                                            Timestamp travelStartDate)
Calculates the mileage travel amount.

Parameters:
totalMileage - The total distance traveled.
travelStartDate - The start date of the travel.
Returns:
The mileage amount for the mileage given.


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.