From 0b0639f91d6a70ab9712951966972fc6943e4e04 Mon Sep 17 00:00:00 2001 From: Regis Houssin <regis@dolibarr.fr> Date: Thu, 6 Jul 2006 14:22:50 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20probl=E8me=20de=20num=E9rotation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/fichinter/fiche.php | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/htdocs/fichinter/fiche.php b/htdocs/fichinter/fiche.php index 1b0e8351c96..09dd6847e4e 100644 --- a/htdocs/fichinter/fiche.php +++ b/htdocs/fichinter/fiche.php @@ -175,7 +175,7 @@ if ($_GET["action"] == 'create') } else { - print "<td>".$langs->trans("CustomerDoesNotHavePrefix")."</td></tr>\n"; + print "<td>".img_warning().$langs->trans("CustomerDoesNotHavePrefix")."</td></tr>\n"; } print "<tr><td>".$langs->trans("Duration")." (".$langs->trans("days").")</td><td><input name=\"duree\"></td></tr>\n"; @@ -210,7 +210,7 @@ if ($_GET["action"] == 'create') $user->getrights("projet"); - if ($user->rights->projet->creer && $societe->prefix_comm) + if ($user->rights->projet->creer) { print '<a href='.DOL_URL_ROOT.'/projet/fiche.php?socidp='.$socidp.'&action=create>'.$langs->trans("Add").'</a>'; } @@ -223,9 +223,14 @@ if ($_GET["action"] == 'create') print "<td><textarea name=\"note\" wrap=\"soft\" cols=\"60\" rows=\"15\"></textarea>"; print '</td></tr>'; - print '<tr><td colspan="2" align="center">'; - print '<input type="submit" class="button" value="'.$langs->trans("CreateDaftIntervention").'">'; - print '</td></tr>'; + // en attendant le module de num�rotation + if ($societe->prefix_comm) + { + print '<tr><td colspan="2" align="center">'; + print '<input type="submit" class="button" value="'.$langs->trans("CreateDaftIntervention").'">'; + print '</td></tr>'; + } + print '</table>'; print '</form>'; } -- GitLab