feat: implementasi threshold keuangan otomatis via observer dan action approval
This commit is contained in:
@@ -4,6 +4,7 @@ namespace App\Filament\Resources\CashRecords\Schemas;
|
||||
|
||||
use App\Models\CashCategory;
|
||||
use Filament\Forms\Components\DatePicker;
|
||||
use Filament\Forms\Components\Placeholder;
|
||||
use Filament\Forms\Components\Select;
|
||||
use Filament\Forms\Components\Textarea;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
@@ -17,7 +18,9 @@ class CashRecordForm
|
||||
Select::make('category_id')->label('Kategori')
|
||||
->options(CashCategory::pluck('name', 'id'))
|
||||
->required(),
|
||||
TextInput::make('amount')->label('Jumlah (Rp)')->numeric()->required(),
|
||||
TextInput::make('amount')->label('Jumlah (Rp)')->numeric()->required()
|
||||
->helperText('< Rp500.000: langsung | Rp500.000–2.000.000: perlu approval ketua | > Rp2.000.000: perlu voting')
|
||||
->live(),
|
||||
Textarea::make('description')->label('Keterangan')->required()->columnSpanFull(),
|
||||
DatePicker::make('date')->label('Tanggal')->required(),
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user