Allow to order and filter by the amount sum of parts.

This commit is contained in:
Jan Böhmer 2022-09-04 03:37:54 +02:00
parent ec5e956e31
commit 8f94a58c71
8 changed files with 42 additions and 3 deletions

View file

@ -173,6 +173,11 @@ class PartFilterType extends AbstractType
'step' => 1,
]);
$builder->add('amountSum', NumberConstraintType::class, [
'label' => 'part.filter.amount_sum',
'min' => 0,
]);
$builder->add('lotNeedsRefill', BooleanConstraintType::class, [
'label' => 'part.filter.lotNeedsRefill'
]);