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