Merge pull request #2305 from burakcakirel/fix-document-templates-for-modules

Fix not changing document templates and colours for modules
This commit is contained in:
Cüneyt Şentürk 2021-11-12 13:34:35 +03:00 committed by GitHub
commit 098bac6f73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 13 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;