mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Added tests for various label services.
This commit is contained in:
parent
e925bec5b6
commit
236249e4a1
10 changed files with 467 additions and 47 deletions
|
@ -76,7 +76,7 @@ final class BarcodeContentGenerator
|
|||
public function get1DBarcodeContent(AbstractDBElement $target): string
|
||||
{
|
||||
$prefix = $this->classToString(self::PREFIX_MAP, $target);
|
||||
$id = sprintf('%04d', $target->getID());
|
||||
$id = sprintf('%04d', $target->getID() ?? 0);
|
||||
return $prefix . $id;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue