From 7487f2c3416b0983c270c98425c6e680ea84b760 Mon Sep 17 00:00:00 2001 From: merdan Date: Wed, 7 Dec 2022 18:18:13 +0500 Subject: [PATCH] 672367 lte gte fxx3 --- app/Models/Account.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/app/Models/Account.php b/app/Models/Account.php index c6936c59..2741bb7b 100755 --- a/app/Models/Account.php +++ b/app/Models/Account.php @@ -115,14 +115,13 @@ public function getCanExtendLegalNumberAttribute() $month = Config::get('settings.legalization_extend') ?? 1; if($application = $this->last_application()){ - Log::info($application); - return $application->state == 'approved' && $this->expires_at->gte(Carbon::now()->subMonths($month)); - } - if($this->expires_at->gte(Carbon::now()->subMonths($month))){ - Log::info($this->expires_at); - }else{ - Log::info(Carbon::now()->subMonths($month)); + return $application->state == 'approved' && $this->expires_at->lte(Carbon::now()->subMonths($month)); } +// if($this->expires_at->gte(Carbon::now()->subMonths($month))){ +// Log::info($this->expires_at); +// }else{ +// Log::info(Carbon::now()->subMonths($month)); +// } return !empty($this->legalization_number) && !empty( $this->expires_at) && $this->expires_at->gte(Carbon::now()->subMonths($month)); }