diff --git a/htdocs/fourn/facture/card.php b/htdocs/fourn/facture/card.php index 2de5e76f369..56f2bef6c6a 100644 --- a/htdocs/fourn/facture/card.php +++ b/htdocs/fourn/facture/card.php @@ -2652,25 +2652,29 @@ if ($action == 'create') print ''; } - // Intracomm report - $langs->loadLangs(array("intracommreport")); - print ''; - print ''; - if ($action != 'editmode' && $user->rights->fournisseur->facture->creer) { - print ''; - } - print '
'; - print $langs->trans('IntracommReportTransportMode'); - print 'id.'">'.img_edit($langs->trans('SetMode'), 1).'
'; - print ''; - if ($action == 'editmode') - { - $form->formSelectTransportMode($_SERVER['PHP_SELF'].'?id='.$object->id, $object->transport_mode_id, 'transport_mode_id', 1, 1); - } - else { - $form->formSelectTransportMode($_SERVER['PHP_SELF'].'?id='.$object->id, $object->transport_mode_id, 'none'); - } - print ''; + // Intracomm report + if (!empty($conf->intracommreport->enabled)) { + $langs->loadLangs(array("intracommreport")); + print ''; + print ''; + if ($action != 'editmode' && $user->rights->fournisseur->facture->creer) { + print ''; + } + print '
'; + print $langs->trans('IntracommReportTransportMode'); + print 'id.'">'.img_edit($langs->trans('SetMode'), 1).'
'; + print ''; + + print ''; + if ($action == 'editmode') + { + $form->formSelectTransportMode($_SERVER['PHP_SELF'].'?id='.$object->id, $object->transport_mode_id, 'transport_mode_id', 1, 1); + } + else { + $form->formSelectTransportMode($_SERVER['PHP_SELF'].'?id='.$object->id, $object->transport_mode_id, 'none'); + } + print ''; + } // Other attributes $cols = 2;