diff --git a/src/Command/DumpVerificationSnapshotCommand.php b/src/Command/DumpVerificationSnapshotCommand.php index e6b6167..e5114ec 100644 --- a/src/Command/DumpVerificationSnapshotCommand.php +++ b/src/Command/DumpVerificationSnapshotCommand.php @@ -636,6 +636,7 @@ final class DumpVerificationSnapshotCommand extends Command base50Minutes: $detail->base50Minutes, bonus50Minutes: $detail->bonus50Minutes, totalMinutes: $detail->totalMinutes, + isFlatRecovery: $detail->isFlatRecovery, ); continue; @@ -672,6 +673,7 @@ final class DumpVerificationSnapshotCommand extends Command base50Minutes: (int) round($detail->base50Minutes * $ratio), bonus50Minutes: (int) round($detail->bonus50Minutes * $ratio), totalMinutes: (int) round($detail->totalMinutes * $ratio), + isFlatRecovery: $detail->isFlatRecovery, ); } } @@ -692,7 +694,7 @@ final class DumpVerificationSnapshotCommand extends Command $cumulative25 = $carry->base25Minutes + $carry->bonus25Minutes; foreach ($weeks as $i => $week) { - if ($week->totalMinutes >= 0) { + if ($week->totalMinutes >= 0 || $week->isFlatRecovery) { $cumulative50 += $week->base50Minutes + $week->bonus50Minutes; $cumulative25 += $week->base25Minutes + $week->bonus25Minutes; @@ -714,6 +716,7 @@ final class DumpVerificationSnapshotCommand extends Command base50Minutes: $from50 > 0 ? -$from50 : 0, bonus50Minutes: 0, totalMinutes: $week->totalMinutes, + isFlatRecovery: $week->isFlatRecovery, ); }