Added some more filter possibilities.

This commit is contained in:
Jan Böhmer 2022-09-08 00:31:18 +02:00
parent 96cd746f60
commit 28c09eb51d
5 changed files with 68 additions and 4 deletions

View file

@ -156,6 +156,9 @@ class PartFilterType extends AbstractType
'min' => 0,
]);
$builder->add('obsolete', BooleanConstraintType::class, [
'label' => 'orderdetails.edit.obsolete'
]);
/*
* Stocks tabs
@ -194,6 +197,10 @@ class PartFilterType extends AbstractType
'input_type' => DateType::class,
]);
$builder->add('lotDescription', TextConstraintType::class, [
'label' => 'part.filter.lotDescription',
]);
/**
* Attachments count
*/
@ -215,7 +222,7 @@ class PartFilterType extends AbstractType
$constraint_prototype = new ParameterConstraint();
$builder->add('parameters', CollectionType::class, [
'label' => 'parameter.label',
'label' => false,
'entry_type' => ParameterConstraintType::class,
'allow_delete' => true,
'allow_add' => true,
@ -224,6 +231,12 @@ class PartFilterType extends AbstractType
'empty_data' => $constraint_prototype,
]);
$builder->add('parametersCount', NumberConstraintType::class, [
'label' => 'part.filter.parameters_count',
'step' => 1,
'min' => 0,
]);
$builder->add('submit', SubmitType::class, [
'label' => 'filter.submit',
]);