Andrew Wallo 10 月之前
父節點
當前提交
a2e4dcacf7
共有 1 個檔案被更改,包括 7 行新增5 行删除
  1. 7
    5
      app/Filament/Company/Resources/Accounting/DocumentResource.php

+ 7
- 5
app/Filament/Company/Resources/Accounting/DocumentResource.php 查看文件

125
                                     ->numeric()
125
                                     ->numeric()
126
                                     ->live()
126
                                     ->live()
127
                                     ->default(1),
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
                                 Forms\Components\Placeholder::make('total')
135
                                 Forms\Components\Placeholder::make('total')
134
                                     ->hiddenLabel()
136
                                     ->hiddenLabel()
135
                                     ->content(function (Forms\Get $get) {
137
                                     ->content(function (Forms\Get $get) {

Loading…
取消
儲存