Skip to content

Commit

Permalink
fix: utilizzo modulo ordini se modulo Fatture è disabilitato
Browse files Browse the repository at this point in the history
  • Loading branch information
Pek5892 committed Dec 12, 2024
1 parent bea5fef commit b79eb67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/ordini/bulk.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@
break;
}
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) : '';
$operations['crea_fattura'] = [
'text' => '<span><i class="fa fa-file-code-o"></i> '.tr('Fattura _TYPE_', ['_TYPE_' => strtolower((string) $module->getTranslation('title'))]),
Expand Down

0 comments on commit b79eb67

Please sign in to comment.