Fix minore

This commit is contained in:
Pek5892 2024-04-11 16:16:35 +02:00
parent 519c7219cd
commit 8a018f8606
1 changed files with 2 additions and 1 deletions

View File

@ -209,7 +209,8 @@ switch (post('op')) {
break;
}
if ($module->getTranslation('name') == 'Ordini cliente') {
$module_fatture ??= strtolower($module_fatture);
$module_fatture = Module::find($id_modulo_fatture)->getTranslation('name');
$module_fatture ? strtolower($module_fatture) : '';
$operations['crea_fattura'] = [
'text' => '<span><i class="fa fa-file-code-o"></i> '.tr('Fattura _TYPE_', ['_TYPE_' => strtolower($module->getTranslation('name'))]),
'data' => [