diff --git a/app/Abstracts/View/Components/DocumentShow.php b/app/Abstracts/View/Components/DocumentShow.php index d3172ea14..0c2475713 100644 --- a/app/Abstracts/View/Components/DocumentShow.php +++ b/app/Abstracts/View/Components/DocumentShow.php @@ -593,10 +593,6 @@ abstract class DocumentShow extends Base return $template; } - if (!empty($alias = config('type.' . $type . '.alias'))) { - $type = $alias . '.' . str_replace('-', '_', $type); - } - $documentTemplate = setting($this->getSettingKey($type, 'template')) ?: 'default'; return $documentTemplate; diff --git a/app/Abstracts/View/Components/DocumentTemplate.php b/app/Abstracts/View/Components/DocumentTemplate.php index 9b9e6ab18..16c3beb9d 100644 --- a/app/Abstracts/View/Components/DocumentTemplate.php +++ b/app/Abstracts/View/Components/DocumentTemplate.php @@ -261,11 +261,6 @@ abstract class DocumentTemplate extends Base return $background_color; } - - if (!empty($alias = config('type.' . $type . '.alias'))) { - $type = $alias . '.' . str_replace('-', '_', $type); - } - $backgroundColor = setting($this->getSettingKey($type, 'color'), '#55588b'); return $backgroundColor; diff --git a/app/Abstracts/View/Components/TransactionShow.php b/app/Abstracts/View/Components/TransactionShow.php index 2e4b1111e..28ca2b6ce 100644 --- a/app/Abstracts/View/Components/TransactionShow.php +++ b/app/Abstracts/View/Components/TransactionShow.php @@ -511,10 +511,6 @@ abstract class TransactionShow extends Base return $template; } - if (!empty($alias = config('type.' . $type . '.alias'))) { - $type = $alias . '.' . str_replace('-', '_', $type); - } - $transactionTemplate = setting($this->getSettingKey($type, 'template')) ?: 'default'; return $transactionTemplate;