Show BOM entries in projects history

This commit is contained in:
Jan Böhmer 2023-01-08 19:14:24 +01:00
parent e423ef1e09
commit f618616379
2 changed files with 8 additions and 0 deletions

View file

@ -31,6 +31,7 @@ use App\Entity\Parameters\AbstractParameter;
use App\Entity\Parts\PartLot;
use App\Entity\PriceInformations\Orderdetail;
use App\Entity\PriceInformations\Pricedetail;
use App\Entity\ProjectSystem\ProjectBOMEntry;
use App\Exceptions\EntityNotSupportedException;
use App\Repository\LogEntryRepository;
use App\Services\ElementTypeNameGenerator;
@ -126,6 +127,8 @@ class LogEntryTargetColumn extends AbstractColumn
$on = $target->getPart();
} elseif ($target instanceof Pricedetail && null !== $target->getOrderdetail() && null !== $target->getOrderdetail()->getPart()) {
$on = $target->getOrderdetail()->getPart();
} elseif ($target instanceof ProjectBOMEntry && null !== $target->getProject()) {
$on = $target->getProject();
}
if (isset($on) && is_object($on)) {