Add confirmation on classify payed
This commit is contained in:
parent
c131c3885a
commit
f520dae7d1
@ -1613,7 +1613,8 @@ class Form
|
|||||||
if ($selected) {
|
if ($selected) {
|
||||||
$projet = new Project($this->db);
|
$projet = new Project($this->db);
|
||||||
$projet->fetch($selected);
|
$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 {
|
} else {
|
||||||
print " ";
|
print " ";
|
||||||
}
|
}
|
||||||
|
|||||||
@ -95,7 +95,7 @@ function select_projects($socid, $selected='', $htmlname='projectid')
|
|||||||
global $db;
|
global $db;
|
||||||
|
|
||||||
// On recherche les projets
|
// 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.= MAIN_DB_PREFIX .'projet as p';
|
||||||
$sql.= " WHERE (fk_soc='".$socid."' or fk_soc IS NULL)";
|
$sql.= " WHERE (fk_soc='".$socid."' or fk_soc IS NULL)";
|
||||||
$sql.= " ORDER BY p.title ASC";
|
$sql.= " ORDER BY p.title ASC";
|
||||||
@ -115,11 +115,11 @@ function select_projects($socid, $selected='', $htmlname='projectid')
|
|||||||
$obj = $db->fetch_object($resql);
|
$obj = $db->fetch_object($resql);
|
||||||
if (!empty($selected) && $selected == $obj->rowid)
|
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
|
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++;
|
$i++;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user