Allow to mass generate labels via part table multiselect.

This commit is contained in:
Jan Böhmer 2023-01-15 23:36:22 +01:00
parent 82896ec0e5
commit cbe010ee67
5 changed files with 148 additions and 12 deletions

View file

@ -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');
}
}