import at.clockwork.calculation.CalculationData import at.clockwork.calculation.data.* import at.clockwork.calculation.GeneralCalculationData import at.clockwork.time.service.DateTimeService import at.clockwork.calculation.RestartCalculationException class Calc99969Service { static transactional = false def run(CalculationData calculationData, GeneralCalculationData generalCalculationData, boolean saving, Map parameters) throws RestartCalculationException { if ( _cd.isAbsencePlanning( "57" ) ) _setDVE( [ "2", "22", "9" ], 0 ) _setDV( "7", _getDV( "5" ) ) if ( _getDV( "5" ) > 0 ) _addDV( "1", -_getDV( "2" ) ) return } } /* ::2:: // kein Feiertag IF VAR_EXPLIZITEFEHLZEITPLANUNG = NW_57 FUNC ZT_0:00 DO =_ZA_2 =_ZA_22 =_ZA_9 ; ::WEITER1:: IF FUNC ZA_5 DO =_ZA_7 ; ::3:: IF ZA_5 > ZT_0:00 FUNC ZA_2 DO -_ZA_1 ; ::4:: IF FUNC RETURN_ DO ; */