|
|
@@ -14,6 +14,8 @@
|
|
|
* @var float $longitude
|
|
|
*/
|
|
|
|
|
|
+use Carbon\CarbonImmutable;
|
|
|
+
|
|
|
$time_of_day_icon = $project->getTimeOfDayIcon();
|
|
|
$time_of_day_text = $project->getTimeOfDayText();
|
|
|
|
|
|
@@ -261,10 +263,12 @@ if($auto_select_location_id) {
|
|
|
|
|
|
<?php
|
|
|
$customer = $project->getCustomer();
|
|
|
+ $dt_min = CarbonImmutable::now("UTC")->subMonthsNoOverflow(18)->startOfMonth();
|
|
|
|
|
|
$target_projects = $customer->getProjects([
|
|
|
"id" => Constraint::notEquals($project->id),
|
|
|
- "template_id" => $project->template_id
|
|
|
+ "template_id" => $project->template_id,
|
|
|
+ "dts_start" => Constraint::moreThanOrEquals($dt_min->toDateTimeString()),
|
|
|
]);
|
|
|
?>
|
|
|
|