private CumulativeTravels getCumulativeTravels ( BudgetSummaryDto budgetSummaryData ) { CumulativeTravels cumulativeTravels = CumulativeTravels . Factory . newInstance ( ) ; if ( budgetSummaryData . getCumDomesticTravel ( ) != null ) { cumulativeTravels . setCumulativeDomesticTravelCosts ( budgetSummaryData . getCumDomesticTravel ( ) . bigDecimalValue ( ) ) ; } if ( budgetSummaryData . getCumForeignTravel ( ) != null ) { cumulativeTravels . setCumulativeForeignTravelCosts ( budgetSummaryData . getCumForeignTravel ( ) . bigDecimalValue ( ) ) ; } if ( budgetSummaryData . getCumTravel ( ) != null ) { cumulativeTravels . setCumulativeTotalFundsRequestedTravel ( budgetSummaryData . getCumTravel ( ) . bigDecimalValue ( ) ) ; } return cumulativeTravels ; }
This method gets CumulativeTravels details CumulativeTotalFundsRequestedTravel CumulativeDomesticTravelCosts and CumulativeForeignTravelCosts based on BudgetSummaryInfo for the RRBudget .