mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-06-05 22:09:38 +02:00
fix: utilizzo modulo ordini se modulo Fatture è disabilitato
This commit is contained in:
@@ -210,7 +210,8 @@ switch (post('op')) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if ($module->getTranslation('title') == 'Ordini cliente') {
|
if ($module->getTranslation('title') == 'Ordini cliente') {
|
||||||
$module_fatture = Module::find($id_modulo_fatture)->getTranslation('title');
|
// Fix per modulo Fatture di vendita disabilitato
|
||||||
|
$module_fatture = $id_modulo_fatture ? Module::find($id_modulo_fatture)->getTranslation('title') : '';
|
||||||
$module_fatture ? strtolower((string) $module_fatture) : '';
|
$module_fatture ? strtolower((string) $module_fatture) : '';
|
||||||
$operations['crea_fattura'] = [
|
$operations['crea_fattura'] = [
|
||||||
'text' => '<span><i class="fa fa-file-code-o"></i> '.tr('Fattura _TYPE_', ['_TYPE_' => strtolower((string) $module->getTranslation('title'))]),
|
'text' => '<span><i class="fa fa-file-code-o"></i> '.tr('Fattura _TYPE_', ['_TYPE_' => strtolower((string) $module->getTranslation('title'))]),
|
||||||
|
Reference in New Issue
Block a user