Compare commits

..

2 Commits

@ -1,4 +1,4 @@
#Mon Oct 13 17:28:53 CEST 2025
#Thu Oct 16 11:43:56 CEST 2025
path.4=1/classes.dex
path.3=11/classes.dex
path.2=0/classes.dex

@ -14,7 +14,8 @@ class MonthStart {
});
/// Basis für kumulierte Differenz
int get carryBaseMinutes => startMinutes + overtimeMinutes + correctionMinutes;
int get carryBaseMinutes =>
startMinutes + correctionMinutes - overtimeMinutes;
static MonthStart fromJson(Map<String, dynamic> json) {
final bookings = (json['bookings'] as List?) ?? const [];

File diff suppressed because it is too large Load Diff

@ -26,6 +26,8 @@ int effectiveWorkedMinutes(
if (worked <= 6 * 60) return worked;
final maxRequiredBreak = (worked - 6 * 60).clamp(0, requiredBreakOver6h);
// Lücken summieren
int gaps = 0;
for (var i = 0; i < sorted.length - 1; i++) {
@ -33,7 +35,12 @@ int effectiveWorkedMinutes(
if (gap > 0) gaps += gap;
}
final extraBreak = (requiredBreakOver6h - gaps).clamp(0, requiredBreakOver6h);
final extraBreak = (maxRequiredBreak - gaps).clamp(0, maxRequiredBreak);
final effective = worked - extraBreak;
// int effective = worked - extraBreak;
// final diff = 30 - gaps;
// if (diff > 0) effective -= diff;
return effective < 0 ? 0 : effective;
}

Loading…
Cancel
Save