Andrew Wallo 2 months ago
parent
commit
0f92247007
1 changed files with 0 additions and 3 deletions
  1. 0
    3
      app/Models/Accounting/RecurringInvoice.php

+ 0
- 3
app/Models/Accounting/RecurringInvoice.php View File

22
 use App\Models\Common\Client;
22
 use App\Models\Common\Client;
23
 use App\Models\Setting\CompanyProfile;
23
 use App\Models\Setting\CompanyProfile;
24
 use App\Observers\RecurringInvoiceObserver;
24
 use App\Observers\RecurringInvoiceObserver;
25
-use App\Services\CompanySettingsService;
26
 use App\Support\ScheduleHandler;
25
 use App\Support\ScheduleHandler;
27
 use App\Utilities\Localization\Timezone;
26
 use App\Utilities\Localization\Timezone;
28
 use Filament\Actions\Action;
27
 use Filament\Actions\Action;
508
                             ->softRequired()
507
                             ->softRequired()
509
                             ->live()
508
                             ->live()
510
                             ->minDate(company_today())
509
                             ->minDate(company_today())
511
-                            ->timezone(CompanySettingsService::getDefaultTimezone())
512
                             ->closeOnDateSelection()
510
                             ->closeOnDateSelection()
513
                             ->afterStateUpdated(function (Forms\Set $set, Forms\Get $get, $state) {
511
                             ->afterStateUpdated(function (Forms\Set $set, Forms\Get $get, $state) {
514
                                 $handler = new ScheduleHandler($set, $get);
512
                                 $handler = new ScheduleHandler($set, $get);
541
 
539
 
542
                             if ($endType?->isOn()) {
540
                             if ($endType?->isOn()) {
543
                                 $components[] = Forms\Components\DatePicker::make('end_date')
541
                                 $components[] = Forms\Components\DatePicker::make('end_date')
544
-                                    ->timezone(CompanySettingsService::getDefaultTimezone())
545
                                     ->live();
542
                                     ->live();
546
                             }
543
                             }
547
 
544
 

Loading…
Cancel
Save