Various Issues With Currency Field #6683
-
Description:The
I found a workaround for my case that might help to better understand the problem: class Wallet extends Resource
{
public function fields(NovaRequest $request)
{
$currencyField = Currency::make('Balance')
->exceptOnForms()
->sortable()
->nullable()
->filterable();
if ($this->owner) {
$currencyField->currency($this->owner->currency);
}
return [
ID::make()->sortable(),
BelongsTo::make('Owner', 'owner', User::class)
->searchable()
->filterable(),
$currencyField,
HasMany::make('Transactions', 'transactions', WalletTransaction::class),
];
}
} This workaround ensures the Suggested Fixes
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
There many requirement in Currency that explicitly required
Moving this to Idea for now. |
Beta Was this translation helpful? Give feedback.
5.2.0 is due early february