mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-20 10:57:40 +02:00
Use string for price of pricedetails.
This commit is contained in:
parent
42399b5517
commit
43c439bc9e
2 changed files with 18 additions and 4 deletions
|
@ -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]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue