2
0
forked from Wavyzz/dolibarr

Fix: problme de numrotation

This commit is contained in:
Regis Houssin
2006-07-06 14:16:22 +00:00
parent af9a4edadc
commit a2d1a2e917
3 changed files with 17 additions and 4 deletions

View File

@@ -166,7 +166,18 @@ if ($_GET["action"] == 'create')
print "<input type=\"hidden\" name=\"action\" value=\"add\">";
print "<tr><td>".$langs->trans("Ref")."</td><td><input name=\"ref\" value=\"$numpr\"></td></tr>\n";
print "<tr><td>".$langs->trans("Ref")."</td>";
// en attendant le module de num<75>rotation
if ($societe->prefix_comm)
{
print "<td><input name=\"ref\" value=\"$numpr\"></td></tr>\n";
}
else
{
print "<td>".$langs->trans("CustomerDoesNotHavePrefix")."</td></tr>\n";
}
print "<tr><td>".$langs->trans("Duration")." (".$langs->trans("days").")</td><td><input name=\"duree\"></td></tr>\n";
if ($conf->projet->enabled)
@@ -199,7 +210,7 @@ if ($_GET["action"] == 'create')
$user->getrights("projet");
if ($user->rights->projet->creer)
if ($user->rights->projet->creer && $societe->prefix_comm)
{
print '<a href='.DOL_URL_ROOT.'/projet/fiche.php?socidp='.$socidp.'&action=create>'.$langs->trans("Add").'</a>';
}

View File

@@ -9,3 +9,4 @@ ListOfInterventions=List of interventions
LastInterventions=Last %s interventions
AllInterventions=All interventions
CreateDaftIntervention=Create draft
CustomerDoesNotHavePrefix=Customer does not have a prefix

View File

@@ -9,3 +9,4 @@ EditIntervention=Editer
LastInterventions=Les %s derni<6E>res interventions
AllInterventions=Toutes les interventions
CreateDaftIntervention=Cr<43>er brouillon
CustomerDoesNotHavePrefix=Le client n'a pas de pr<70>fixe de d<>fini