mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-08 00:02:15 +01:00
Fixed bug in filament OrganizationResource
This commit is contained in:
committed by
Constantin Graf
parent
31c7bdf420
commit
a98e4649e3
@@ -51,7 +51,15 @@ class OrganizationResource extends Resource
|
||||
->required(),
|
||||
Forms\Components\Select::make('currency')
|
||||
->label('Currency')
|
||||
->options(ISOCurrencyProvider::getInstance()->getAvailableCurrencies())
|
||||
->options(function (): array {
|
||||
$currencies = ISOCurrencyProvider::getInstance()->getAvailableCurrencies();
|
||||
$select = [];
|
||||
foreach ($currencies as $currency) {
|
||||
$select[$currency->getCurrencyCode()] = $currency->getName().' ('.$currency->getCurrencyCode().')';
|
||||
}
|
||||
|
||||
return $select;
|
||||
})
|
||||
->searchable(),
|
||||
Forms\Components\TextInput::make('billable_rate')
|
||||
->label('Billable rate (in Cents)')
|
||||
|
||||
Reference in New Issue
Block a user