fix constraints

This commit is contained in:
Simon Vieille 2022-10-30 20:05:40 +01:00
parent de8b00db98
commit f7cc17ca30
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -41,6 +41,10 @@ class ExpenseReportVariousPaymentType extends AbstractType
'row_attr' => [
'class' => 'col-md-4 pr-1',
],
'attr' => [
'step' => 0.01,
],
'scale' => 2,
'constraints' => [
new NotBlank(),
new Range(['min' => 0]),