|
36 | 36 | use App\DataTables\Filters\Constraints\Part\ParameterConstraint; |
37 | 37 | use App\DataTables\Filters\Constraints\Part\TagsConstraint; |
38 | 38 | use App\DataTables\Filters\Constraints\TextConstraint; |
| 39 | +use App\Entity\AssemblySystem\Assembly; |
39 | 40 | use App\Entity\Attachments\AttachmentType; |
40 | 41 | use App\Entity\Parts\Category; |
41 | 42 | use App\Entity\Parts\Footprint; |
@@ -107,6 +108,14 @@ class PartFilter implements FilterInterface |
107 | 108 | public readonly TextConstraint $bomName; |
108 | 109 | public readonly TextConstraint $bomComment; |
109 | 110 |
|
| 111 | + /************************************************* |
| 112 | + * Assembly |
| 113 | + *************************************************/ |
| 114 | + |
| 115 | + public readonly EntityConstraint $assembly; |
| 116 | + public readonly NumberConstraint $assemblyBomQuantity; |
| 117 | + public readonly TextConstraint $assemblyBomName; |
| 118 | + |
110 | 119 | /************************************************* |
111 | 120 | * Bulk Import Job tab |
112 | 121 | *************************************************/ |
@@ -180,6 +189,10 @@ public function __construct(NodesListBuilder $nodesListBuilder) |
180 | 189 | $this->bomName = new TextConstraint('_projectBomEntries.name'); |
181 | 190 | $this->bomComment = new TextConstraint('_projectBomEntries.comment'); |
182 | 191 |
|
| 192 | + $this->assembly = new EntityConstraint($nodesListBuilder, Assembly::class, '_assemblyBomEntries.assembly'); |
| 193 | + $this->assemblyBomQuantity = new NumberConstraint('_assemblyBomEntries.quantity'); |
| 194 | + $this->assemblyBomName = new TextConstraint('_assemblyBomEntries.name'); |
| 195 | + |
183 | 196 | // Bulk Import Job filters |
184 | 197 | $this->inBulkImportJob = new BulkImportJobExistsConstraint(); |
185 | 198 | $this->bulkImportJobStatus = new BulkImportJobStatusConstraint(); |
|
0 commit comments