disable invoices by default
This commit is contained in:
parent
75af4c1e8f
commit
04a4f2ab96
2 changed files with 3 additions and 3 deletions
|
@ -64,7 +64,7 @@ class ExtensionHelper
|
|||
|
||||
// replace all slashes with backslashes
|
||||
$extensions = array_map(fn ($item) => str_replace('/', '\\', $item), $extensions);
|
||||
// add the ExtensionClass to the end of the namespace
|
||||
// add the ExtensionClass to the end of the namespace
|
||||
$extensions = array_map(fn ($item) => $item . '\\' . basename($item) . 'Extension', $extensions);
|
||||
// filter out non existing extension classes
|
||||
$extensions = array_filter($extensions, fn ($item) => class_exists($item));
|
||||
|
@ -104,7 +104,7 @@ class ExtensionHelper
|
|||
if (!(basename($extension) == $extensionName)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$extension = str_replace('/', '\\', $extension);
|
||||
$extensionClass = $extension . '\\' . $extensionName . 'Extension';
|
||||
return $extensionClass;
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ class CreateInvoiceSettings extends SettingsMigration
|
|||
$this->migrator->add('invoice.company_phone', $table_exists ? $this->getOldValue('SETTINGS::INVOICE:COMPANY_PHONE') : '');
|
||||
$this->migrator->add('invoice.company_vat', $table_exists ? $this->getOldValue('SETTINGS::INVOICE:COMPANY_VAT') : '');
|
||||
$this->migrator->add('invoice.company_website', $table_exists ? $this->getOldValue('SETTINGS::INVOICE:COMPANY_WEBSITE') : '');
|
||||
$this->migrator->add('invoice.enabled', $table_exists ? $this->getOldValue('SETTINGS::INVOICE:ENABLED') : true);
|
||||
$this->migrator->add('invoice.enabled', $table_exists ? $this->getOldValue('SETTINGS::INVOICE:ENABLED') : false);
|
||||
$this->migrator->add('invoice.prefix', $table_exists ? $this->getOldValue('SETTINGS::INVOICE:PREFIX') : 'INV');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue