*
* @param listPenalty
* @return
*/
private String [] createPenalite(List<Penalty> listPenalty){
Penalty penalty = null;
String srcPenalty = "";
double amount = 0.0;
for (int j = 0; j < listPenalty.size(); j++) {
penalty = listPenalty.get(j);
/*srcPenalty += penalty.getDate() + Constants.SEPRATE + penalty.getAmount() + Constants.SEPRATE + penalty.getComment() + Constants.SEPRATE;*/
srcPenalty += append(penalty.getDate(),penalty.getAmount(),penalty.getComment());
amount += penalty.getAmount();
}
String [] arr = {srcPenalty,amount + ""};
return arr;
}