You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
535 B
Dart
21 lines
535 B
Dart
import 'package:flutter/material.dart';
|
|
import '../utils/work_time.dart';
|
|
import 'work_interval.dart';
|
|
|
|
class WorkDay {
|
|
final DateTime date;
|
|
final List<WorkInterval> intervals;
|
|
final int targetMinutes;
|
|
final String? code; // 'G','U','SU','K','T' oder null
|
|
|
|
const WorkDay({
|
|
required this.date,
|
|
required this.intervals,
|
|
required this.targetMinutes,
|
|
this.code,
|
|
});
|
|
|
|
/// Effektive Ist-Zeit mit 30-Minuten-Pausenregel (>6h) und Lückenanrechnung
|
|
int get workedMinutes => effectiveWorkedMinutes(intervals);
|
|
}
|