private void setOthersForOtherDirectCosts ( OtherDirectCosts otherDirectCosts , BudgetPeriodDto periodInfo ) { if ( periodInfo != null && periodInfo . getOtherDirectCosts ( ) != null ) { for ( OtherDirectCostInfoDto otherDirectCostInfo : periodInfo . getOtherDirectCosts ( ) ) { gov . grants . apply . forms . rrBudget10V11 . BudgetYearDataType . OtherDirectCosts . Other other = otherDirectCosts . addNewOther ( ) ; if ( otherDirectCostInfo . getOtherCosts ( ) != null && otherDirectCostInfo . getOtherCosts ( ) . size ( ) > 0 ) { other . setCost ( new BigDecimal ( otherDirectCostInfo . getOtherCosts ( ) . get ( 0 ) . get ( CostConstants . KEY_COST ) ) ) ; } other . setDescription ( OTHERCOST_DESCRIPTION ) ; } } }
This method is to set Other type description and total cost OtherDirectCosts details in BudgetYearDataType based on BudgetPeriodInfo for the RRBudget10 .