String msg = (messageHelper.getErrorMessage(
ErrorCode.ERR_CANT_CONVERT_TYPES,
new Object[]{beginOfWork, "Date", "BigDecimal"},
"Cant' parse Begin-string."));
LOG.error(msg, e);
throw new PTException(ErrorCode.ERR_CANT_CONVERT_TYPES, msg, e);
}
BigDecimal end;
try {
end = Converter.convertStringHHMM2BigDecimal(
Converter.convertTime2StringHHMM(
endOfWork));
} catch (ParseException e) {
String msg = (messageHelper.getErrorMessage(
ErrorCode.ERR_CANT_CONVERT_TYPES,
new Object[]{endOfWork, "Date", "BigDecimal"},
"Cant' parse End-string."));
LOG.error(msg, e);
throw new PTException(ErrorCode.ERR_CANT_CONVERT_TYPES, msg, e);
}
reallyWorkedHours = reallyWorkedHours.add(rec.getAmountOfHours());
notWorkingHours = end.subtract(b).subtract(reallyWorkedHours);
}