Use an enum for the part stock change type

This commit is contained in:
Jan Böhmer 2023-06-18 20:42:05 +02:00
parent 9adfcc7aec
commit 7d99607919
5 changed files with 65 additions and 43 deletions

View file

@ -139,7 +139,7 @@ class LogDataTable implements DataTableTypeInterface
if ($context instanceof PartStockChangedLogEntry) {
$text .= sprintf(
' (<i>%s</i>)',
$this->translator->trans('log.part_stock_changed.' . $context->getInstockChangeType())
$this->translator->trans('log.part_stock_changed.' . $context->getInstockChangeType()->toExtraShortType())
);
}