Fix intracommreport
This commit is contained in:
parent
0908ac5867
commit
9cc8e6ac99
@ -2652,25 +2652,29 @@ if ($action == 'create')
|
|||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Intracomm report
|
// Intracomm report
|
||||||
$langs->loadLangs(array("intracommreport"));
|
if (!empty($conf->intracommreport->enabled)) {
|
||||||
print '<tr><td class="nowrap">';
|
$langs->loadLangs(array("intracommreport"));
|
||||||
print '<table width="100%" class="nobordernopadding"><tr><td class="nowrap">';
|
print '<tr><td class="nowrap">';
|
||||||
print $langs->trans('IntracommReportTransportMode');
|
print '<table width="100%" class="nobordernopadding"><tr><td class="nowrap">';
|
||||||
print '</td>';
|
print $langs->trans('IntracommReportTransportMode');
|
||||||
if ($action != 'editmode' && $user->rights->fournisseur->facture->creer) {
|
print '</td>';
|
||||||
print '<td class="right"><a href="'.$_SERVER["PHP_SELF"].'?action=editmode&id='.$object->id.'">'.img_edit($langs->trans('SetMode'), 1).'</a></td>';
|
if ($action != 'editmode' && $user->rights->fournisseur->facture->creer) {
|
||||||
}
|
print '<td class="right"><a href="'.$_SERVER["PHP_SELF"].'?action=editmode&id='.$object->id.'">'.img_edit($langs->trans('SetMode'), 1).'</a></td>';
|
||||||
print '</tr></table>';
|
}
|
||||||
print '</td><td colspan="2">';
|
print '</tr></table>';
|
||||||
if ($action == 'editmode')
|
print '</td>';
|
||||||
{
|
|
||||||
$form->formSelectTransportMode($_SERVER['PHP_SELF'].'?id='.$object->id, $object->transport_mode_id, 'transport_mode_id', 1, 1);
|
print '<td>';
|
||||||
}
|
if ($action == 'editmode')
|
||||||
else {
|
{
|
||||||
$form->formSelectTransportMode($_SERVER['PHP_SELF'].'?id='.$object->id, $object->transport_mode_id, 'none');
|
$form->formSelectTransportMode($_SERVER['PHP_SELF'].'?id='.$object->id, $object->transport_mode_id, 'transport_mode_id', 1, 1);
|
||||||
}
|
}
|
||||||
print '</td></tr>';
|
else {
|
||||||
|
$form->formSelectTransportMode($_SERVER['PHP_SELF'].'?id='.$object->id, $object->transport_mode_id, 'none');
|
||||||
|
}
|
||||||
|
print '</td></tr>';
|
||||||
|
}
|
||||||
|
|
||||||
// Other attributes
|
// Other attributes
|
||||||
$cols = 2;
|
$cols = 2;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user