|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.bo.BusinessObjectBase org.kuali.rice.krad.bo.PersistableBusinessObjectBase org.kuali.rice.krad.demo.travel.authorization.dataobject.PerDiemExpense
@Entity public class PerDiemExpense
Field Summary |
---|
Fields inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase |
---|
extension, versionNumber |
Constructor Summary | |
---|---|
PerDiemExpense()
|
Method Summary | |
---|---|
static KualiDecimal |
calculateMealsAndIncidentalsProrated(KualiDecimal total,
Integer perDiemPercent)
|
String |
getAccommodationAddress()
This method returns the accommodation's address |
String |
getAccommodationName()
This method returns the name of the accommodation for this day |
String |
getAccommodationPhoneNum()
This method returns the accommodation's phone |
String |
getAccommodationTypeCode()
This method gets the accommodation type code associated with this day |
Boolean |
getBreakfast()
|
KualiDecimal |
getBreakfastValue()
Gets the breakfastValue attribute. |
KualiDecimal |
getBreakfastValue(boolean defaultZero)
|
String |
getCountryState()
|
String |
getCounty()
|
KualiDecimal |
getDailyTotal()
|
Boolean |
getDinner()
|
KualiDecimal |
getDinnerValue()
Gets the dinnerValue attribute. |
KualiDecimal |
getDinnerValue(boolean defaultZero)
|
String |
getDocumentNumber()
|
Integer |
getId()
|
KualiDecimal |
getIncidentalsValue()
This method returns incidentalsValue affected by INCIDENTALS_WITH_MEALS_ONLY_IND parameter |
KualiDecimal |
getIncidentalsValue(boolean defaultZero)
|
KualiDecimal |
getLodging()
This method gets the lodging cost for this day. |
KualiDecimal |
getLodging(boolean defaultZero)
|
KualiDecimal |
getLodgingTotal()
This method gets the Lodging Total if it is not a personal expense. |
Boolean |
getLunch()
|
KualiDecimal |
getLunchValue()
Gets the lunchValue attribute. |
KualiDecimal |
getLunchValue(boolean defaultZero)
|
KualiDecimal |
getMealsAndIncidentals()
|
KualiDecimal |
getMealsTotal()
This method gets the mealsTotal with |
Timestamp |
getMileageDate()
Retrieve the Mileage date of per diem CLEANUP: mileage date should be the per diem expense date |
Integer |
getMileageRateId()
|
KualiDecimal |
getMileageTotal()
|
Integer |
getMiles()
|
Integer |
getMiles(boolean defaultZero)
|
Integer |
getPerDiemId()
Gets the perDiemId attribute. |
Boolean |
getPersonal()
This method returns whether or not this is a personal expense or not (true for personal expense, false otherwise) |
String |
getPrimaryDestination()
|
boolean |
isProrated()
|
void |
setAccommodationAddress(String accommodationAddress)
This method sets the accommodation's address |
void |
setAccommodationName(String accommodationName)
This method sets the accommodation name for this day |
void |
setAccommodationPhoneNum(String accommodationPhoneNum)
This method sets the accommodation phone number |
void |
setAccommodationTypeCode(String accommodationTypeCode)
This method sets the accommodation type code for this day |
void |
setBreakfast(Boolean breakfast)
|
void |
setBreakfastValue(KualiDecimal breakfastValue)
Sets the breakfastValue attribute value. |
void |
setCountryState(String countryState)
|
void |
setCounty(String county)
|
void |
setDinner(Boolean dinner)
|
void |
setDinnerValue(KualiDecimal dinnerValue)
Sets the dinnerValue attribute value. |
void |
setDocumentNumber(String documentNumber)
|
void |
setId(Integer id)
|
void |
setIncidentalsValue(KualiDecimal incidentalsValue)
|
void |
setIncidentalsWithMealsOnly(Boolean incidentalsWithMealsOnly)
public Boolean getIncludeIncidentals() { return !(!breakfast && !lunch && !dinner && getIncidentalsWithMealsOnly()); } /* /** public Boolean getIncidentalsWithMealsOnly() { if (incidentalsWithMealsOnly == null) { String incidentalsWithMealsOnlyParam = SpringContext.getBean(ParameterService.class).getParameterValue(PARAM_NAMESPACE, DOCUMENT_DTL_TYPE, TravelParameters.INCIDENTALS_WITH_MEALS_ONLY_IND); //incidentalsWithMealsOnly = incidentalsWithMealsOnlyParam != null && incidentalsWithMealsOnlyParam.equals(KFSConstants.DocumentTypeAttributes.INDICATOR_ATTRIBUTE_TRUE_VALUE); incidentalsWithMealsOnly = incidentalsWithMealsOnlyParam != null && incidentalsWithMealsOnlyParam.equals(KFSConstants.ParameterValues.YES); } return incidentalsWithMealsOnly; } |
void |
setLodging(KualiDecimal lodging)
This method sets the lodging cost for this day |
void |
setLunch(Boolean lunch)
|
void |
setLunchValue(KualiDecimal lunchValue)
Sets the lunchValue attribute value. |
void |
setMealsAndIncidentals(KualiDecimal mealsAndIncidentals)
This method split mealsAndIncidentals into breakfast, lunch, dinner and incidentals (overriding the existing breakfast, lunch, dinner and incidentals values). |
void |
setMileageDate(Timestamp mileageDate)
Assign the Mileage date of per diem |
void |
setMileageRateId(Integer mileageRateId)
|
void |
setMiles(Integer miles)
|
void |
setPerDiemId(Integer perDiemId)
Sets the perDiemId attribute value. |
void |
setPersonal(Boolean personal)
This method sets true if this is a personal expense |
void |
setPrimaryDestination(String primaryDestination)
|
void |
setProrated(boolean prorated)
|
protected LinkedHashMap |
toStringMapper()
|
Methods inherited from class org.kuali.rice.krad.bo.BusinessObjectBase |
---|
toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.kuali.rice.core.api.mo.ModelObjectBasic |
---|
toString |
Constructor Detail |
---|
public PerDiemExpense()
Method Detail |
---|
public Integer getId()
public void setId(Integer id)
public String getDocumentNumber()
public void setDocumentNumber(String documentNumber)
public String getCountryState()
public void setCountryState(String countryState)
public String getCounty()
public void setCounty(String county)
public String getPrimaryDestination()
public void setPrimaryDestination(String primaryDestination)
public Boolean getBreakfast()
public void setBreakfast(Boolean breakfast)
public Boolean getLunch()
public void setLunch(Boolean lunch)
public Boolean getDinner()
public void setDinner(Boolean dinner)
public Integer getPerDiemId()
public void setPerDiemId(Integer perDiemId)
perDiemId
- The perDiemId to set.public String getAccommodationTypeCode()
public void setAccommodationTypeCode(String accommodationTypeCode)
accommodationTypeCode
- public String getAccommodationName()
public void setAccommodationName(String accommodationName)
accommodationName
- public String getAccommodationPhoneNum()
public void setAccommodationPhoneNum(String accommodationPhoneNum)
accommodationPhoneNum
- public String getAccommodationAddress()
public void setAccommodationAddress(String accommodationAddress)
accommodationAddress
- public KualiDecimal getLodging()
public KualiDecimal getLodging(boolean defaultZero)
public void setLodging(KualiDecimal lodging)
lodging
- public Integer getMiles()
public Integer getMiles(boolean defaultZero)
public void setMiles(Integer miles)
public KualiDecimal getBreakfastValue()
public KualiDecimal getBreakfastValue(boolean defaultZero)
public void setBreakfastValue(KualiDecimal breakfastValue)
breakfastValue
- The breakfastValue to set.public KualiDecimal getLunchValue()
public KualiDecimal getLunchValue(boolean defaultZero)
public void setLunchValue(KualiDecimal lunchValue)
lunchValue
- The lunchValue to set.public KualiDecimal getDinnerValue()
public KualiDecimal getDinnerValue(boolean defaultZero)
public void setDinnerValue(KualiDecimal dinnerValue)
dinnerValue
- The dinnerValue to set.public Integer getMileageRateId()
public void setMileageRateId(Integer mileageRateId)
public KualiDecimal getMileageTotal()
public KualiDecimal getDailyTotal()
public KualiDecimal getMealsTotal()
public KualiDecimal getLodgingTotal()
public Timestamp getMileageDate()
public KualiDecimal getMealsAndIncidentals()
public static KualiDecimal calculateMealsAndIncidentalsProrated(KualiDecimal total, Integer perDiemPercent)
public void setMealsAndIncidentals(KualiDecimal mealsAndIncidentals)
mealsAndIncidentals
- public Boolean getPersonal()
public void setPersonal(Boolean personal)
true
- for personal expensepublic void setMileageDate(Timestamp mileageDate)
mileageDate
- as Dateprotected LinkedHashMap toStringMapper()
public void setIncidentalsWithMealsOnly(Boolean incidentalsWithMealsOnly)
public KualiDecimal getIncidentalsValue()
public KualiDecimal getIncidentalsValue(boolean defaultZero)
public void setIncidentalsValue(KualiDecimal incidentalsValue)
public boolean isProrated()
public void setProrated(boolean prorated)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |