forked from Wavyzz/dolibarr
Fix: problme de numrotation
This commit is contained in:
@@ -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 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";
|
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')
|
|||||||
|
|
||||||
$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
|
|||||||
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
|
||||||
@@ -9,3 +9,4 @@ EditIntervention=Editer
|
|||||||
LastInterventions=Les %s derni<6E>res interventions
|
LastInterventions=Les %s derni<6E>res interventions
|
||||||
AllInterventions=Toutes les interventions
|
AllInterventions=Toutes les interventions
|
||||||
CreateDaftIntervention=Cr<43>er brouillon
|
CreateDaftIntervention=Cr<43>er brouillon
|
||||||
|
CustomerDoesNotHavePrefix=Le client n'a pas de pr<70>fixe de d<>fini
|
||||||
Reference in New Issue
Block a user