Andrew Wallo 10 months ago
parent
commit
a2e4dcacf7
1 changed files with 7 additions and 5 deletions
  1. 7
    5
      app/Filament/Company/Resources/Accounting/DocumentResource.php

+ 7
- 5
app/Filament/Company/Resources/Accounting/DocumentResource.php View File

@@ -125,11 +125,13 @@ class DocumentResource extends Resource
125 125
                                     ->numeric()
126 126
                                     ->live()
127 127
                                     ->default(1),
128
-                                Forms\Components\TextInput::make('unit_price')
129
-                                    ->required()
130
-                                    ->live()
131
-                                    ->numeric()
132
-                                    ->default(0),
128
+                                Forms\Components\Group::make([
129
+                                    Forms\Components\TextInput::make('unit_price')
130
+                                        ->hiddenLabel()
131
+                                        ->live()
132
+                                        ->numeric()
133
+                                        ->default(0),
134
+                                ]),
133 135
                                 Forms\Components\Placeholder::make('total')
134 136
                                     ->hiddenLabel()
135 137
                                     ->content(function (Forms\Get $get) {

Loading…
Cancel
Save