diff --git a/app/Classes/Modules/Accounts/ControllersLogic/CreateCustomerLogic.php b/app/Classes/Modules/Accounts/ControllersLogic/CreateCustomerLogic.php index 803dec47..bdd38aa5 100644 --- a/app/Classes/Modules/Accounts/ControllersLogic/CreateCustomerLogic.php +++ b/app/Classes/Modules/Accounts/ControllersLogic/CreateCustomerLogic.php @@ -123,14 +123,14 @@ class CreateCustomerLogic extends AbstractControllerLogic // assign other standard segment to all new customers $otherDefaultSegmentToAdd = Segment::whereIn('name', ['HONEY TRAP NEW REGISTRATION'])->get(); $start_date = Carbon::now(); - $end_date = $start_date->addDays(30); + $end_date = Carbon::now()->addDays(30); foreach ($otherDefaultSegmentToAdd as $segment) { $seasonalSegmentObject = new SeasonalSegmentObject($company->id, $segment->id, $start_date, $end_date ?? null); $this->createsSeasonalSegment->execute($seasonalSegmentObject); $this->assignSegmentProcessor->execute($company, $segment->id); } - + if(config('perfexcrm.is_enabled') == 'true'){ //$this->createPerfexCRMLeadProcessor->execute($request); $createLeadPerfexCRMObject = new CreateLeadPerfexCRMObject(