Show part lots and orderdetails with a name in target column if it exists.

This commit is contained in:
Jan Böhmer 2020-03-28 18:55:02 +01:00
parent 71fa827784
commit 7cf500279e
3 changed files with 22 additions and 3 deletions

View file

@ -52,6 +52,7 @@ namespace App\Entity\PriceInformations;
use App\Entity\Base\AbstractDBElement;
use App\Entity\Base\TimestampTrait;
use App\Entity\Contracts\NamedElementInterface;
use App\Entity\Contracts\TimeStampableInterface;
use App\Entity\Parts\Part;
use App\Entity\Parts\Supplier;
@ -67,7 +68,7 @@ use Symfony\Component\Validator\Constraints as Assert;
* @ORM\Entity()
* @ORM\HasLifecycleCallbacks()
*/
class Orderdetail extends AbstractDBElement implements TimeStampableInterface
class Orderdetail extends AbstractDBElement implements TimeStampableInterface, NamedElementInterface
{
use TimestampTrait;
@ -359,4 +360,12 @@ class Orderdetail extends AbstractDBElement implements TimeStampableInterface
return $this;
}
/**
* @inheritDoc
*/
public function getName(): string
{
return $this->getSupplierPartNr();
}
}