Skip to content
Snippets Groups Projects
Commit a2d1a2e9 authored by Regis Houssin's avatar Regis Houssin
Browse files

Fix: problème de numérotation

parent af9a4eda
No related branches found
No related tags found
No related merge requests found
...@@ -166,7 +166,18 @@ if ($_GET["action"] == 'create') ...@@ -166,7 +166,18 @@ if ($_GET["action"] == 'create')
print "<input type=\"hidden\" name=\"action\" value=\"add\">"; 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 numrotation
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"; print "<tr><td>".$langs->trans("Duration")." (".$langs->trans("days").")</td><td><input name=\"duree\"></td></tr>\n";
if ($conf->projet->enabled) if ($conf->projet->enabled)
...@@ -199,7 +210,7 @@ if ($_GET["action"] == 'create') ...@@ -199,7 +210,7 @@ if ($_GET["action"] == 'create')
$user->getrights("projet"); $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>'; print '<a href='.DOL_URL_ROOT.'/projet/fiche.php?socidp='.$socidp.'&action=create>'.$langs->trans("Add").'</a>';
} }
......
...@@ -9,3 +9,4 @@ ListOfInterventions=List of interventions ...@@ -9,3 +9,4 @@ ListOfInterventions=List of interventions
LastInterventions=Last %s interventions LastInterventions=Last %s interventions
AllInterventions=All interventions AllInterventions=All interventions
CreateDaftIntervention=Create draft CreateDaftIntervention=Create draft
CustomerDoesNotHavePrefix=Customer does not have a prefix
\ No newline at end of file
...@@ -9,3 +9,4 @@ EditIntervention=Editer ...@@ -9,3 +9,4 @@ EditIntervention=Editer
LastInterventions=Les %s dernières interventions LastInterventions=Les %s dernières interventions
AllInterventions=Toutes les interventions AllInterventions=Toutes les interventions
CreateDaftIntervention=Créer brouillon CreateDaftIntervention=Créer brouillon
CustomerDoesNotHavePrefix=Le client n'a pas de préfixe de défini
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment