Add confirmation on classify payed
This commit is contained in:
parent
c131c3885a
commit
f520dae7d1
@ -1613,7 +1613,8 @@ class Form
|
||||
if ($selected) {
|
||||
$projet = new Project($this->db);
|
||||
$projet->fetch($selected);
|
||||
print '<a href="'.DOL_URL_ROOT.'/projet/fiche.php?id='.$selected.'">'.$projet->title.'</a>';
|
||||
//print '<a href="'.DOL_URL_ROOT.'/projet/fiche.php?id='.$selected.'">'.$projet->title.'</a>';
|
||||
print $projet->getNomUrl(1);
|
||||
} else {
|
||||
print " ";
|
||||
}
|
||||
@ -2394,9 +2395,9 @@ class Form
|
||||
{
|
||||
print ' selected="true"';
|
||||
}
|
||||
|
||||
|
||||
print '>';
|
||||
|
||||
|
||||
if ($key_in_label)
|
||||
{
|
||||
$newval=($translate?$langs->trans($value):$value);
|
||||
@ -2413,7 +2414,7 @@ class Form
|
||||
print "</option>\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
print "</select>";
|
||||
}
|
||||
|
||||
|
||||
@ -95,7 +95,7 @@ function select_projects($socid, $selected='', $htmlname='projectid')
|
||||
global $db;
|
||||
|
||||
// On recherche les projets
|
||||
$sql = 'SELECT p.rowid, p.title FROM ';
|
||||
$sql = 'SELECT p.rowid, p.ref, p.title FROM ';
|
||||
$sql.= MAIN_DB_PREFIX .'projet as p';
|
||||
$sql.= " WHERE (fk_soc='".$socid."' or fk_soc IS NULL)";
|
||||
$sql.= " ORDER BY p.title ASC";
|
||||
@ -115,11 +115,11 @@ function select_projects($socid, $selected='', $htmlname='projectid')
|
||||
$obj = $db->fetch_object($resql);
|
||||
if (!empty($selected) && $selected == $obj->rowid)
|
||||
{
|
||||
print '<option value="'.$obj->rowid.'" selected="true">'.$obj->title.'</option>';
|
||||
print '<option value="'.$obj->rowid.'" selected="true">'.dolibarr_trunc($obj->ref,12).' - '.dolibarr_trunc($obj->title,12).'</option>';
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<option value="'.$obj->rowid.'">'.$obj->title.'</option>';
|
||||
print '<option value="'.$obj->rowid.'">'.dolibarr_trunc($obj->ref,12).' - '.dolibarr_trunc($obj->title,12).'</option>';
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user