Use string for price of pricedetails.

This commit is contained in:
Jan Böhmer 2019-09-01 12:34:11 +02:00
parent 42399b5517
commit 43c439bc9e
2 changed files with 18 additions and 4 deletions

View file

@ -58,7 +58,11 @@ class PricedetailType extends AbstractType
'measurement_unit' => $options['measurement_unit'],
'attr' => ['class' => 'form-control-sm']
]);
$builder->add("price", NumberType::class);
$builder->add("price", NumberType::class, [
'scale' => 5,
'html5' => true,
'attr' => ['min' => 0, 'step' => "any"]
]);
$builder->add("currency", CurrencyEntityType::class, ['required' => false]);
}