Show expiry date after forecast
This commit is contained in:
1 parent
f00af08ec4
commit
4d3fbdad8c
1 file changed
+1
-1
@@ -238,7 +238,7 @@ function auth_render_lager_table(string $title, array $rows, array $columns, str
|
||||
$expiryDate = new DateTimeImmutable((string) $row['expiry_date']);
|
||||
$forecastWarning = $forecastDateObject >= $expiryDate->modify('-3 months')
|
||||
&& $forecastDateObject <= $expiryDate;
|
||||
if ($forecastWarning) {
|
||||
if ($forecastWarning || $forecastDateObject > $expiryDate) {
|
||||
$forecastText .= ' (MHD: ' . $expiryDate->format('d.m.Y') . ')';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user