Skip to content

Commit 9643bb0

Browse files
committed
Make some expense report fields filterable
1 parent 1a07e7a commit 9643bb0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/Nova/ExpenseReport.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,15 @@ public function fields(NovaRequest $request): array
7979
->sortable(),
8080

8181
BelongsTo::make('Fiscal Year', 'fiscalYear', FiscalYear::class)
82+
->filterable()
8283
->sortable(),
8384

8485
Number::make('Instance ID', 'workday_instance_id')
8586
->canSee(static fn (Request $request): bool => $request->user()->can('access-workday'))
8687
->onlyOnDetail(),
8788

8889
Badge::make('Status')
90+
->filterable()
8991
->map([
9092
// @phan-suppress-next-line PhanTypeInvalidArrayKeyLiteral
9193
null => 'danger',
@@ -102,6 +104,7 @@ public function fields(NovaRequest $request): array
102104
->sortable(),
103105

104106
BelongsTo::make('Pay To', 'payTo', ExternalCommitteeMember::class)
107+
->filterable()
105108
->sortable(),
106109

107110
Text::make('Memo')

0 commit comments

Comments
 (0)