mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-23 18:28:49 +02:00
Allow to mass generate labels via part table multiselect.
This commit is contained in:
parent
82896ec0e5
commit
cbe010ee67
5 changed files with 148 additions and 12 deletions
|
@ -109,4 +109,31 @@ class LabelProfileRepository extends NamedDBElementRepository
|
|||
|
||||
return $this->findBy(['options.supported_element' => $type], $order_by);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns all LabelProfiles that can be used for parts
|
||||
* @return array
|
||||
*/
|
||||
public function getPartLabelProfiles(): array
|
||||
{
|
||||
return $this->getDropdownProfiles('part');
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns all LabelProfiles that can be used for part lots
|
||||
* @return array
|
||||
*/
|
||||
public function getPartLotsLabelProfiles(): array
|
||||
{
|
||||
return $this->getDropdownProfiles('part_lot');
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns all LabelProfiles that can be used for storelocations
|
||||
* @return array
|
||||
*/
|
||||
public function getStorelocationsLabelProfiles(): array
|
||||
{
|
||||
return $this->getDropdownProfiles('storelocation');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue