Andrew Wallo 7 months ago
parent
commit
a21ff040c3

+ 5
- 2
app/Filament/Company/Resources/Purchases/BillResource/Pages/EditBill.php View File

3
 namespace App\Filament\Company\Resources\Purchases\BillResource\Pages;
3
 namespace App\Filament\Company\Resources\Purchases\BillResource\Pages;
4
 
4
 
5
 use App\Concerns\ManagesLineItems;
5
 use App\Concerns\ManagesLineItems;
6
-use App\Concerns\RedirectToListPage;
7
 use App\Filament\Company\Resources\Purchases\BillResource;
6
 use App\Filament\Company\Resources\Purchases\BillResource;
8
 use App\Models\Accounting\Bill;
7
 use App\Models\Accounting\Bill;
9
 use Filament\Actions;
8
 use Filament\Actions;
14
 class EditBill extends EditRecord
13
 class EditBill extends EditRecord
15
 {
14
 {
16
     use ManagesLineItems;
15
     use ManagesLineItems;
17
-    use RedirectToListPage;
18
 
16
 
19
     protected static string $resource = BillResource::class;
17
     protected static string $resource = BillResource::class;
20
 
18
 
30
         return MaxWidth::Full;
28
         return MaxWidth::Full;
31
     }
29
     }
32
 
30
 
31
+    protected function getRedirectUrl(): string
32
+    {
33
+        return $this->getResource()::getUrl('view', ['record' => $this->record]);
34
+    }
35
+
33
     protected function handleRecordUpdate(Model $record, array $data): Model
36
     protected function handleRecordUpdate(Model $record, array $data): Model
34
     {
37
     {
35
         /** @var Bill $record */
38
         /** @var Bill $record */

+ 5
- 2
app/Filament/Company/Resources/Sales/EstimateResource/Pages/EditEstimate.php View File

3
 namespace App\Filament\Company\Resources\Sales\EstimateResource\Pages;
3
 namespace App\Filament\Company\Resources\Sales\EstimateResource\Pages;
4
 
4
 
5
 use App\Concerns\ManagesLineItems;
5
 use App\Concerns\ManagesLineItems;
6
-use App\Concerns\RedirectToListPage;
7
 use App\Filament\Company\Resources\Sales\EstimateResource;
6
 use App\Filament\Company\Resources\Sales\EstimateResource;
8
 use App\Models\Accounting\Estimate;
7
 use App\Models\Accounting\Estimate;
9
 use Filament\Actions;
8
 use Filament\Actions;
14
 class EditEstimate extends EditRecord
13
 class EditEstimate extends EditRecord
15
 {
14
 {
16
     use ManagesLineItems;
15
     use ManagesLineItems;
17
-    use RedirectToListPage;
18
 
16
 
19
     protected static string $resource = EstimateResource::class;
17
     protected static string $resource = EstimateResource::class;
20
 
18
 
30
         return MaxWidth::Full;
28
         return MaxWidth::Full;
31
     }
29
     }
32
 
30
 
31
+    protected function getRedirectUrl(): string
32
+    {
33
+        return $this->getResource()::getUrl('view', ['record' => $this->record]);
34
+    }
35
+
33
     protected function handleRecordUpdate(Model $record, array $data): Model
36
     protected function handleRecordUpdate(Model $record, array $data): Model
34
     {
37
     {
35
         /** @var Estimate $record */
38
         /** @var Estimate $record */

+ 5
- 0
app/Filament/Company/Resources/Sales/InvoiceResource/Pages/EditInvoice.php View File

30
         return MaxWidth::Full;
30
         return MaxWidth::Full;
31
     }
31
     }
32
 
32
 
33
+    protected function getRedirectUrl(): string
34
+    {
35
+        return $this->getResource()::getUrl('view', ['record' => $this->record]);
36
+    }
37
+
33
     protected function handleRecordUpdate(Model $record, array $data): Model
38
     protected function handleRecordUpdate(Model $record, array $data): Model
34
     {
39
     {
35
         /** @var Invoice $record */
40
         /** @var Invoice $record */

+ 5
- 0
app/Filament/Company/Resources/Sales/RecurringInvoiceResource/Pages/EditRecurringInvoice.php View File

28
         return MaxWidth::Full;
28
         return MaxWidth::Full;
29
     }
29
     }
30
 
30
 
31
+    protected function getRedirectUrl(): string
32
+    {
33
+        return $this->getResource()::getUrl('view', ['record' => $this->record]);
34
+    }
35
+
31
     protected function handleRecordUpdate(Model $record, array $data): Model
36
     protected function handleRecordUpdate(Model $record, array $data): Model
32
     {
37
     {
33
         /** @var Estimate $record */
38
         /** @var Estimate $record */

+ 17
- 17
composer.lock View File

497
         },
497
         },
498
         {
498
         {
499
             "name": "aws/aws-sdk-php",
499
             "name": "aws/aws-sdk-php",
500
-            "version": "3.342.4",
500
+            "version": "3.342.5",
501
             "source": {
501
             "source": {
502
                 "type": "git",
502
                 "type": "git",
503
                 "url": "https://github.com/aws/aws-sdk-php.git",
503
                 "url": "https://github.com/aws/aws-sdk-php.git",
504
-                "reference": "65cc842b9998d415b05d635b6146d0728934ff4a"
504
+                "reference": "00523323c202121d2cc2e893a1bb7ff14928a5bb"
505
             },
505
             },
506
             "dist": {
506
             "dist": {
507
                 "type": "zip",
507
                 "type": "zip",
508
-                "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/65cc842b9998d415b05d635b6146d0728934ff4a",
509
-                "reference": "65cc842b9998d415b05d635b6146d0728934ff4a",
508
+                "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/00523323c202121d2cc2e893a1bb7ff14928a5bb",
509
+                "reference": "00523323c202121d2cc2e893a1bb7ff14928a5bb",
510
                 "shasum": ""
510
                 "shasum": ""
511
             },
511
             },
512
             "require": {
512
             "require": {
588
             "support": {
588
             "support": {
589
                 "forum": "https://github.com/aws/aws-sdk-php/discussions",
589
                 "forum": "https://github.com/aws/aws-sdk-php/discussions",
590
                 "issues": "https://github.com/aws/aws-sdk-php/issues",
590
                 "issues": "https://github.com/aws/aws-sdk-php/issues",
591
-                "source": "https://github.com/aws/aws-sdk-php/tree/3.342.4"
591
+                "source": "https://github.com/aws/aws-sdk-php/tree/3.342.5"
592
             },
592
             },
593
-            "time": "2025-03-11T18:27:07+00:00"
593
+            "time": "2025-03-13T18:04:13+00:00"
594
         },
594
         },
595
         {
595
         {
596
             "name": "aws/aws-sdk-php-laravel",
596
             "name": "aws/aws-sdk-php-laravel",
3051
         },
3051
         },
3052
         {
3052
         {
3053
             "name": "laravel/framework",
3053
             "name": "laravel/framework",
3054
-            "version": "v11.44.1",
3054
+            "version": "v11.44.2",
3055
             "source": {
3055
             "source": {
3056
                 "type": "git",
3056
                 "type": "git",
3057
                 "url": "https://github.com/laravel/framework.git",
3057
                 "url": "https://github.com/laravel/framework.git",
3058
-                "reference": "0883d4175f4e2b5c299e7087ad3c74f2ce195c6d"
3058
+                "reference": "f85216c82cbd38b66d67ebd20ea762cb3751a4b4"
3059
             },
3059
             },
3060
             "dist": {
3060
             "dist": {
3061
                 "type": "zip",
3061
                 "type": "zip",
3062
-                "url": "https://api.github.com/repos/laravel/framework/zipball/0883d4175f4e2b5c299e7087ad3c74f2ce195c6d",
3063
-                "reference": "0883d4175f4e2b5c299e7087ad3c74f2ce195c6d",
3062
+                "url": "https://api.github.com/repos/laravel/framework/zipball/f85216c82cbd38b66d67ebd20ea762cb3751a4b4",
3063
+                "reference": "f85216c82cbd38b66d67ebd20ea762cb3751a4b4",
3064
                 "shasum": ""
3064
                 "shasum": ""
3065
             },
3065
             },
3066
             "require": {
3066
             "require": {
3262
                 "issues": "https://github.com/laravel/framework/issues",
3262
                 "issues": "https://github.com/laravel/framework/issues",
3263
                 "source": "https://github.com/laravel/framework"
3263
                 "source": "https://github.com/laravel/framework"
3264
             },
3264
             },
3265
-            "time": "2025-03-05T15:34:10+00:00"
3265
+            "time": "2025-03-12T14:34:30+00:00"
3266
         },
3266
         },
3267
         {
3267
         {
3268
             "name": "laravel/prompts",
3268
             "name": "laravel/prompts",
4306
         },
4306
         },
4307
         {
4307
         {
4308
             "name": "livewire/livewire",
4308
             "name": "livewire/livewire",
4309
-            "version": "v3.6.1",
4309
+            "version": "v3.6.2",
4310
             "source": {
4310
             "source": {
4311
                 "type": "git",
4311
                 "type": "git",
4312
                 "url": "https://github.com/livewire/livewire.git",
4312
                 "url": "https://github.com/livewire/livewire.git",
4313
-                "reference": "0df0a762698176d714e42e2dfed92b6b9e24b8e4"
4313
+                "reference": "8f8914731f5eb43b6bb145d87c8d5a9edfc89313"
4314
             },
4314
             },
4315
             "dist": {
4315
             "dist": {
4316
                 "type": "zip",
4316
                 "type": "zip",
4317
-                "url": "https://api.github.com/repos/livewire/livewire/zipball/0df0a762698176d714e42e2dfed92b6b9e24b8e4",
4318
-                "reference": "0df0a762698176d714e42e2dfed92b6b9e24b8e4",
4317
+                "url": "https://api.github.com/repos/livewire/livewire/zipball/8f8914731f5eb43b6bb145d87c8d5a9edfc89313",
4318
+                "reference": "8f8914731f5eb43b6bb145d87c8d5a9edfc89313",
4319
                 "shasum": ""
4319
                 "shasum": ""
4320
             },
4320
             },
4321
             "require": {
4321
             "require": {
4370
             "description": "A front-end framework for Laravel.",
4370
             "description": "A front-end framework for Laravel.",
4371
             "support": {
4371
             "support": {
4372
                 "issues": "https://github.com/livewire/livewire/issues",
4372
                 "issues": "https://github.com/livewire/livewire/issues",
4373
-                "source": "https://github.com/livewire/livewire/tree/v3.6.1"
4373
+                "source": "https://github.com/livewire/livewire/tree/v3.6.2"
4374
             },
4374
             },
4375
             "funding": [
4375
             "funding": [
4376
                 {
4376
                 {
4378
                     "type": "github"
4378
                     "type": "github"
4379
                 }
4379
                 }
4380
             ],
4380
             ],
4381
-            "time": "2025-03-04T21:48:52+00:00"
4381
+            "time": "2025-03-12T20:24:15+00:00"
4382
         },
4382
         },
4383
         {
4383
         {
4384
             "name": "masterminds/html5",
4384
             "name": "masterminds/html5",

+ 9
- 9
package-lock.json View File

976
             }
976
             }
977
         },
977
         },
978
         "node_modules/axios": {
978
         "node_modules/axios": {
979
-            "version": "1.8.2",
980
-            "resolved": "https://registry.npmjs.org/axios/-/axios-1.8.2.tgz",
981
-            "integrity": "sha512-ls4GYBm5aig9vWx8AWDSGLpnpDQRtWAfrjU+EuytuODrFBkqesN2RkOQCBzrA1RQNHw1SmRMSDDDSwzNAYQ6Rg==",
979
+            "version": "1.8.3",
980
+            "resolved": "https://registry.npmjs.org/axios/-/axios-1.8.3.tgz",
981
+            "integrity": "sha512-iP4DebzoNlP/YN2dpwCgb8zoCmhtkajzS48JvwmkSkXvPI3DHc7m+XYL5tGnSlJtR6nImXZmdCuN5aP8dh1d8A==",
982
             "dev": true,
982
             "dev": true,
983
             "license": "MIT",
983
             "license": "MIT",
984
             "dependencies": {
984
             "dependencies": {
1088
             }
1088
             }
1089
         },
1089
         },
1090
         "node_modules/caniuse-lite": {
1090
         "node_modules/caniuse-lite": {
1091
-            "version": "1.0.30001703",
1092
-            "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001703.tgz",
1093
-            "integrity": "sha512-kRlAGTRWgPsOj7oARC9m1okJEXdL/8fekFVcxA8Hl7GH4r/sN4OJn/i6Flde373T50KS7Y37oFbMwlE8+F42kQ==",
1091
+            "version": "1.0.30001704",
1092
+            "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001704.tgz",
1093
+            "integrity": "sha512-+L2IgBbV6gXB4ETf0keSvLr7JUrRVbIaB/lrQ1+z8mRcQiisG5k+lG6O4n6Y5q6f5EuNfaYXKgymucphlEXQew==",
1094
             "dev": true,
1094
             "dev": true,
1095
             "funding": [
1095
             "funding": [
1096
                 {
1096
                 {
1264
             "license": "MIT"
1264
             "license": "MIT"
1265
         },
1265
         },
1266
         "node_modules/electron-to-chromium": {
1266
         "node_modules/electron-to-chromium": {
1267
-            "version": "1.5.114",
1268
-            "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.114.tgz",
1269
-            "integrity": "sha512-DFptFef3iktoKlFQK/afbo274/XNWD00Am0xa7M8FZUepHlHT8PEuiNBoRfFHbH1okqN58AlhbJ4QTkcnXorjA==",
1267
+            "version": "1.5.118",
1268
+            "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.118.tgz",
1269
+            "integrity": "sha512-yNDUus0iultYyVoEFLnQeei7LOQkL8wg8GQpkPCRrOlJXlcCwa6eGKZkxQ9ciHsqZyYbj8Jd94X1CTPzGm+uIA==",
1270
             "dev": true,
1270
             "dev": true,
1271
             "license": "ISC"
1271
             "license": "ISC"
1272
         },
1272
         },

Loading…
Cancel
Save