/**
* @param
*/
@Override
protected void doSubmitAction (Object command){
PriceListDTO priceListDTO = (PriceListDTO)command;
int id = priceListDTO.getTypologyId();
Typology typology = (Typology)typologyManager.get(id);
priceListDTO.setTypology(typology);
double price_double = Double.parseDouble(priceListDTO.getPrice());
BigDecimal priceValue = BigDecimal.valueOf(price_double);
GregorianCalendar begin= CalendarUtils.GetGregorianCalendar(priceListDTO.getDate());
GregorianCalendar end= CalendarUtils.GetGregorianCalendar(priceListDTO.getFinishDate());
String endDate=priceListDTO.getFinishDate();
if(end==null){
end=begin;
endDate=priceListDTO.getDate();
}
int timeBooking=CalendarUtils.GetNumberOfDays(CalendarUtils.GetGregorianCalendar(priceListDTO.getDate()),CalendarUtils.GetGregorianCalendar(endDate));
ArrayList<Price> prices= typology.getPriceListOnDataRange(begin, end);
newPrices(priceValue, begin, typology, timeBooking, begin);
updatePrices( prices, priceValue);