feat: implementasi threshold keuangan otomatis via observer dan action approval

This commit is contained in:
2026-04-03 05:02:33 +07:00
parent 8ce4af5274
commit 3d4471ab91
3 changed files with 123 additions and 4 deletions
@@ -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.0002.000.000: perlu approval ketua | > Rp2.000.000: perlu voting')
->live(),
Textarea::make('description')->label('Keterangan')->required()->columnSpanFull(),
DatePicker::make('date')->label('Tanggal')->required(),
]);