private void checkPeriode(Periode periode, int currentWeek, int currentYear)
throws ProTransException {
if (periode.getYear() == currentYear
&& ((periode.getWeek() == currentWeek && periode.getToWeek() != currentWeek) || (periode
.getWeek() != currentWeek && periode.getToWeek() == currentWeek))) {
throw new ProTransException(
"Salgsdata for gjeldende uke m� genereres for seg selv");
}
}