Andrew Wallo 2 kuukautta sitten
vanhempi
commit
5314de019a

+ 0
- 3
app/Filament/Company/Clusters/Settings/Resources/AdjustmentResource.php Näytä tiedosto

10
 use App\Filament\Company\Clusters\Settings;
10
 use App\Filament\Company\Clusters\Settings;
11
 use App\Filament\Company\Clusters\Settings\Resources\AdjustmentResource\Pages;
11
 use App\Filament\Company\Clusters\Settings\Resources\AdjustmentResource\Pages;
12
 use App\Models\Accounting\Adjustment;
12
 use App\Models\Accounting\Adjustment;
13
-use App\Services\CompanySettingsService;
14
 use Filament\Forms;
13
 use Filament\Forms;
15
 use Filament\Forms\Form;
14
 use Filament\Forms\Form;
16
 use Filament\Notifications\Notification;
15
 use Filament\Notifications\Notification;
193
                         ->form([
192
                         ->form([
194
                             Forms\Components\DateTimePicker::make('paused_until')
193
                             Forms\Components\DateTimePicker::make('paused_until')
195
                                 ->label('Auto-resume date')
194
                                 ->label('Auto-resume date')
196
-                                ->timezone(CompanySettingsService::getDefaultTimezone())
197
                                 ->helperText('When should this adjustment automatically resume? Leave empty to keep paused indefinitely.')
195
                                 ->helperText('When should this adjustment automatically resume? Leave empty to keep paused indefinitely.')
198
                                 ->after('now'),
196
                                 ->after('now'),
199
                             Forms\Components\Textarea::make('status_reason')
197
                             Forms\Components\Textarea::make('status_reason')
253
                         ->form([
251
                         ->form([
254
                             Forms\Components\DateTimePicker::make('paused_until')
252
                             Forms\Components\DateTimePicker::make('paused_until')
255
                                 ->label('Auto-resume date')
253
                                 ->label('Auto-resume date')
256
-                                ->timezone(CompanySettingsService::getDefaultTimezone())
257
                                 ->helperText('When should these adjustments automatically resume? Leave empty to keep paused indefinitely.')
254
                                 ->helperText('When should these adjustments automatically resume? Leave empty to keep paused indefinitely.')
258
                                 ->after('now'),
255
                                 ->after('now'),
259
                             Forms\Components\Textarea::make('status_reason')
256
                             Forms\Components\Textarea::make('status_reason')

+ 1
- 4
app/Filament/Forms/Components/CreateAdjustmentSelect.php Näytä tiedosto

8
 use App\Enums\Accounting\AdjustmentStatus;
8
 use App\Enums\Accounting\AdjustmentStatus;
9
 use App\Enums\Accounting\AdjustmentType;
9
 use App\Enums\Accounting\AdjustmentType;
10
 use App\Models\Accounting\Adjustment;
10
 use App\Models\Accounting\Adjustment;
11
-use App\Services\CompanySettingsService;
12
 use Filament\Forms\Components\Actions\Action;
11
 use Filament\Forms\Components\Actions\Action;
13
 use Filament\Forms\Components\Checkbox;
12
 use Filament\Forms\Components\Checkbox;
14
 use Filament\Forms\Components\DateTimePicker;
13
 use Filament\Forms\Components\DateTimePicker;
196
 
195
 
197
             Group::make()
196
             Group::make()
198
                 ->schema([
197
                 ->schema([
199
-                    DateTimePicker::make('start_date')
200
-                        ->timezone(CompanySettingsService::getDefaultTimezone()),
198
+                    DateTimePicker::make('start_date'),
201
                     DateTimePicker::make('end_date')
199
                     DateTimePicker::make('end_date')
202
-                        ->timezone(CompanySettingsService::getDefaultTimezone())
203
                         ->after('start_date'),
200
                         ->after('start_date'),
204
                 ])
201
                 ])
205
                 ->visible(function (Get $get) {
202
                 ->visible(function (Get $get) {

+ 0
- 2
app/Livewire/Company/Service/ConnectedAccount/ListInstitutions.php Näytä tiedosto

8
 use App\Models\Banking\ConnectedBankAccount;
8
 use App\Models\Banking\ConnectedBankAccount;
9
 use App\Models\Banking\Institution;
9
 use App\Models\Banking\Institution;
10
 use App\Models\User;
10
 use App\Models\User;
11
-use App\Services\CompanySettingsService;
12
 use App\Services\PlaidService;
11
 use App\Services\PlaidService;
13
 use Filament\Actions\Action;
12
 use Filament\Actions\Action;
14
 use Filament\Actions\Concerns\InteractsWithActions;
13
 use Filament\Actions\Concerns\InteractsWithActions;
90
                 DatePicker::make('start_date')
89
                 DatePicker::make('start_date')
91
                     ->label('Start date')
90
                     ->label('Start date')
92
                     ->required()
91
                     ->required()
93
-                    ->timezone(CompanySettingsService::getDefaultTimezone())
94
                     ->placeholder('Select a start date for importing transactions.')
92
                     ->placeholder('Select a start date for importing transactions.')
95
                     ->minDate(company_today()->subDays(PlaidService::TRANSACTION_DAYS_REQUESTED)->toDateString())
93
                     ->minDate(company_today()->subDays(PlaidService::TRANSACTION_DAYS_REQUESTED)->toDateString())
96
                     ->maxDate(company_today()->toDateString()),
94
                     ->maxDate(company_today()->toDateString()),

Loading…
Peruuta
Tallenna