Added an console command for updating currency exchange rates.

This commit is contained in:
Jan Böhmer 2019-08-13 13:04:31 +02:00
parent 2468409212
commit 568367b59e
9 changed files with 1371 additions and 91 deletions

View file

@ -52,6 +52,7 @@ class CurrencyAdminForm extends BaseEntityAdminForm
$builder->add('exchange_rate', MoneyType::class, ['required' => false,
'label' => 'currency.exchange_rate.label', 'currency' => $this->params->get('default_currency'),
'scale' => 6,
'disabled' => !$this->security->isGranted($is_new ? 'create' : 'edit', $entity)]);
}
}