Browse Source

wip Recurring Invoices

3.x
Andrew Wallo 9 months ago
parent
commit
fbefae6c76

+ 18
- 0
app/Filament/Company/Resources/Sales/RecurringInvoiceResource/Pages/ViewRecurringInvoice.php View File

293
                                 ])
293
                                 ])
294
                                 ->columns(1),
294
                                 ->columns(1),
295
                         ])->columns(2),
295
                         ])->columns(2),
296
+                    ])
297
+                    ->headerActions([
298
+                        Forms\Components\Actions\Action::make('save')
299
+                            ->label('Save')
300
+                            ->button()
301
+                            ->successNotificationTitle('Scheduling saved')
302
+                            ->action(function (Forms\Components\Actions\Action $action) {
303
+                                $this->save();
304
+
305
+                                $action->success();
306
+                            }),
296
                     ]),
307
                     ]),
297
             ]);
308
             ]);
298
     }
309
     }
310
+
311
+    public function save(): void
312
+    {
313
+        $state = $this->form->getState();
314
+
315
+        $this->getRecord()->update($state);
316
+    }
299
 }
317
 }

+ 27
- 27
composer.lock View File

4920
         },
4920
         },
4921
         {
4921
         {
4922
             "name": "nikic/php-parser",
4922
             "name": "nikic/php-parser",
4923
-            "version": "v5.3.1",
4923
+            "version": "v5.4.0",
4924
             "source": {
4924
             "source": {
4925
                 "type": "git",
4925
                 "type": "git",
4926
                 "url": "https://github.com/nikic/PHP-Parser.git",
4926
                 "url": "https://github.com/nikic/PHP-Parser.git",
4927
-                "reference": "8eea230464783aa9671db8eea6f8c6ac5285794b"
4927
+                "reference": "447a020a1f875a434d62f2a401f53b82a396e494"
4928
             },
4928
             },
4929
             "dist": {
4929
             "dist": {
4930
                 "type": "zip",
4930
                 "type": "zip",
4931
-                "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/8eea230464783aa9671db8eea6f8c6ac5285794b",
4932
-                "reference": "8eea230464783aa9671db8eea6f8c6ac5285794b",
4931
+                "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/447a020a1f875a434d62f2a401f53b82a396e494",
4932
+                "reference": "447a020a1f875a434d62f2a401f53b82a396e494",
4933
                 "shasum": ""
4933
                 "shasum": ""
4934
             },
4934
             },
4935
             "require": {
4935
             "require": {
4972
             ],
4972
             ],
4973
             "support": {
4973
             "support": {
4974
                 "issues": "https://github.com/nikic/PHP-Parser/issues",
4974
                 "issues": "https://github.com/nikic/PHP-Parser/issues",
4975
-                "source": "https://github.com/nikic/PHP-Parser/tree/v5.3.1"
4975
+                "source": "https://github.com/nikic/PHP-Parser/tree/v5.4.0"
4976
             },
4976
             },
4977
-            "time": "2024-10-08T18:51:32+00:00"
4977
+            "time": "2024-12-30T11:07:19+00:00"
4978
         },
4978
         },
4979
         {
4979
         {
4980
             "name": "nunomaduro/termwind",
4980
             "name": "nunomaduro/termwind",
6303
         },
6303
         },
6304
         {
6304
         {
6305
             "name": "spatie/color",
6305
             "name": "spatie/color",
6306
-            "version": "1.6.3",
6306
+            "version": "1.7.0",
6307
             "source": {
6307
             "source": {
6308
                 "type": "git",
6308
                 "type": "git",
6309
                 "url": "https://github.com/spatie/color.git",
6309
                 "url": "https://github.com/spatie/color.git",
6310
-                "reference": "45c4354ffa7e65f05c502b009834ecac7928daa3"
6310
+                "reference": "614f1e0674262c620db908998a11eacd16494835"
6311
             },
6311
             },
6312
             "dist": {
6312
             "dist": {
6313
                 "type": "zip",
6313
                 "type": "zip",
6314
-                "url": "https://api.github.com/repos/spatie/color/zipball/45c4354ffa7e65f05c502b009834ecac7928daa3",
6315
-                "reference": "45c4354ffa7e65f05c502b009834ecac7928daa3",
6314
+                "url": "https://api.github.com/repos/spatie/color/zipball/614f1e0674262c620db908998a11eacd16494835",
6315
+                "reference": "614f1e0674262c620db908998a11eacd16494835",
6316
                 "shasum": ""
6316
                 "shasum": ""
6317
             },
6317
             },
6318
             "require": {
6318
             "require": {
6350
             ],
6350
             ],
6351
             "support": {
6351
             "support": {
6352
                 "issues": "https://github.com/spatie/color/issues",
6352
                 "issues": "https://github.com/spatie/color/issues",
6353
-                "source": "https://github.com/spatie/color/tree/1.6.3"
6353
+                "source": "https://github.com/spatie/color/tree/1.7.0"
6354
             },
6354
             },
6355
             "funding": [
6355
             "funding": [
6356
                 {
6356
                 {
6358
                     "type": "github"
6358
                     "type": "github"
6359
                 }
6359
                 }
6360
             ],
6360
             ],
6361
-            "time": "2024-12-23T11:00:34+00:00"
6361
+            "time": "2024-12-30T14:23:15+00:00"
6362
         },
6362
         },
6363
         {
6363
         {
6364
             "name": "spatie/invade",
6364
             "name": "spatie/invade",
6421
         },
6421
         },
6422
         {
6422
         {
6423
             "name": "spatie/laravel-package-tools",
6423
             "name": "spatie/laravel-package-tools",
6424
-            "version": "1.17.0",
6424
+            "version": "1.18.0",
6425
             "source": {
6425
             "source": {
6426
                 "type": "git",
6426
                 "type": "git",
6427
                 "url": "https://github.com/spatie/laravel-package-tools.git",
6427
                 "url": "https://github.com/spatie/laravel-package-tools.git",
6428
-                "reference": "9ab30fd24f677e5aa370ea4cf6b41c517d16cf85"
6428
+                "reference": "8332205b90d17164913244f4a8e13ab7e6761d29"
6429
             },
6429
             },
6430
             "dist": {
6430
             "dist": {
6431
                 "type": "zip",
6431
                 "type": "zip",
6432
-                "url": "https://api.github.com/repos/spatie/laravel-package-tools/zipball/9ab30fd24f677e5aa370ea4cf6b41c517d16cf85",
6433
-                "reference": "9ab30fd24f677e5aa370ea4cf6b41c517d16cf85",
6432
+                "url": "https://api.github.com/repos/spatie/laravel-package-tools/zipball/8332205b90d17164913244f4a8e13ab7e6761d29",
6433
+                "reference": "8332205b90d17164913244f4a8e13ab7e6761d29",
6434
                 "shasum": ""
6434
                 "shasum": ""
6435
             },
6435
             },
6436
             "require": {
6436
             "require": {
6469
             ],
6469
             ],
6470
             "support": {
6470
             "support": {
6471
                 "issues": "https://github.com/spatie/laravel-package-tools/issues",
6471
                 "issues": "https://github.com/spatie/laravel-package-tools/issues",
6472
-                "source": "https://github.com/spatie/laravel-package-tools/tree/1.17.0"
6472
+                "source": "https://github.com/spatie/laravel-package-tools/tree/1.18.0"
6473
             },
6473
             },
6474
             "funding": [
6474
             "funding": [
6475
                 {
6475
                 {
6477
                     "type": "github"
6477
                     "type": "github"
6478
                 }
6478
                 }
6479
             ],
6479
             ],
6480
-            "time": "2024-12-09T16:29:14+00:00"
6480
+            "time": "2024-12-30T13:13:39+00:00"
6481
         },
6481
         },
6482
         {
6482
         {
6483
             "name": "squirephp/model",
6483
             "name": "squirephp/model",
9641
         },
9641
         },
9642
         {
9642
         {
9643
             "name": "laravel/pint",
9643
             "name": "laravel/pint",
9644
-            "version": "v1.18.3",
9644
+            "version": "v1.19.0",
9645
             "source": {
9645
             "source": {
9646
                 "type": "git",
9646
                 "type": "git",
9647
                 "url": "https://github.com/laravel/pint.git",
9647
                 "url": "https://github.com/laravel/pint.git",
9648
-                "reference": "cef51821608239040ab841ad6e1c6ae502ae3026"
9648
+                "reference": "8169513746e1bac70c85d6ea1524d9225d4886f0"
9649
             },
9649
             },
9650
             "dist": {
9650
             "dist": {
9651
                 "type": "zip",
9651
                 "type": "zip",
9652
-                "url": "https://api.github.com/repos/laravel/pint/zipball/cef51821608239040ab841ad6e1c6ae502ae3026",
9653
-                "reference": "cef51821608239040ab841ad6e1c6ae502ae3026",
9652
+                "url": "https://api.github.com/repos/laravel/pint/zipball/8169513746e1bac70c85d6ea1524d9225d4886f0",
9653
+                "reference": "8169513746e1bac70c85d6ea1524d9225d4886f0",
9654
                 "shasum": ""
9654
                 "shasum": ""
9655
             },
9655
             },
9656
             "require": {
9656
             "require": {
9661
                 "php": "^8.1.0"
9661
                 "php": "^8.1.0"
9662
             },
9662
             },
9663
             "require-dev": {
9663
             "require-dev": {
9664
-                "friendsofphp/php-cs-fixer": "^3.65.0",
9665
-                "illuminate/view": "^10.48.24",
9666
-                "larastan/larastan": "^2.9.11",
9667
-                "laravel-zero/framework": "^10.4.0",
9664
+                "friendsofphp/php-cs-fixer": "^3.66.0",
9665
+                "illuminate/view": "^10.48.25",
9666
+                "larastan/larastan": "^2.9.12",
9667
+                "laravel-zero/framework": "^10.48.25",
9668
                 "mockery/mockery": "^1.6.12",
9668
                 "mockery/mockery": "^1.6.12",
9669
                 "nunomaduro/termwind": "^1.17.0",
9669
                 "nunomaduro/termwind": "^1.17.0",
9670
                 "pestphp/pest": "^2.36.0"
9670
                 "pestphp/pest": "^2.36.0"
9703
                 "issues": "https://github.com/laravel/pint/issues",
9703
                 "issues": "https://github.com/laravel/pint/issues",
9704
                 "source": "https://github.com/laravel/pint"
9704
                 "source": "https://github.com/laravel/pint"
9705
             },
9705
             },
9706
-            "time": "2024-11-26T15:34:00+00:00"
9706
+            "time": "2024-12-30T16:20:10+00:00"
9707
         },
9707
         },
9708
         {
9708
         {
9709
             "name": "laravel/sail",
9709
             "name": "laravel/sail",

+ 2
- 1
resources/data/lang/en.json View File

217
     "Estimate Header": "Estimate Header",
217
     "Estimate Header": "Estimate Header",
218
     "Estimate Details": "Estimate Details",
218
     "Estimate Details": "Estimate Details",
219
     "Estimate Footer": "Estimate Footer",
219
     "Estimate Footer": "Estimate Footer",
220
-    "Scheduling": "Scheduling"
220
+    "Scheduling": "Scheduling",
221
+    "Scheduling Form": "Scheduling Form"
221
 }
222
 }

Loading…
Cancel
Save