Compare commits

..

No commits in common. 'main' and '54736fa680' have entirely different histories.

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

@ -14,8 +14,7 @@ class MonthStart {
});
/// Basis für kumulierte Differenz
int get carryBaseMinutes =>
startMinutes + correctionMinutes - overtimeMinutes;
int get carryBaseMinutes => startMinutes + overtimeMinutes + correctionMinutes;
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,8 +26,6 @@ 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++) {
@ -35,12 +33,7 @@ int effectiveWorkedMinutes(
if (gap > 0) gaps += gap;
}
final extraBreak = (maxRequiredBreak - gaps).clamp(0, maxRequiredBreak);
final extraBreak = (requiredBreakOver6h - gaps).clamp(0, requiredBreakOver6h);
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