Fix label in graph
This commit is contained in:
parent
4be2d1414e
commit
92ae3c9d52
@ -1140,3 +1140,4 @@ EmailMsgID=Email MsgID
|
||||
Forthcoming=Forthcoming
|
||||
Currently=Currently
|
||||
ClientTZ=Client Time Zone (user)
|
||||
NotClosedYet=Not yet closed
|
||||
@ -918,8 +918,8 @@ if ($action == 'create' && $user->rights->projet->creer) {
|
||||
print '<td>';
|
||||
print $formproject->selectOpportunityStatus('opp_status', $object->opp_status, 1, 0, 0, 0, 'inline-block valignmiddle', 0, 1);
|
||||
print '<div id="divtocloseproject" class="inline-block valign" style="display: none;"> ';
|
||||
print '<input type="checkbox" id="inputcloseproject" name="closeproject" /> ';
|
||||
print $langs->trans("AlsoCloseAProject");
|
||||
print '<input type="checkbox" id="inputcloseproject" name="closeproject" />';
|
||||
print '<label for="inputcloseproject">'.$langs->trans("AlsoCloseAProject").'</label>';
|
||||
print '</div>';
|
||||
print '</td>';
|
||||
print '</tr>';
|
||||
@ -940,11 +940,11 @@ if ($action == 'create' && $user->rights->projet->creer) {
|
||||
// Date start
|
||||
print '<tr><td>'.$langs->trans("DateStart").'</td><td>';
|
||||
print $form->selectDate($object->date_start ? $object->date_start : -1, 'projectstart', 0, 0, 0, '', 1, 0);
|
||||
print ' <input type="checkbox" class="valignmiddle" name="reportdate" value="yes" ';
|
||||
print ' <input type="checkbox" class="valignmiddle" id="reportdate" name="reportdate" value="yes" ';
|
||||
if ($comefromclone) {
|
||||
print ' checked ';
|
||||
}
|
||||
print '/> '.$langs->trans("ProjectReportDate");
|
||||
print '/><label for="reportdate">'.$langs->trans("ProjectReportDate").'</label>';
|
||||
print '</td></tr>';
|
||||
|
||||
// Date end
|
||||
|
||||
@ -83,6 +83,9 @@ if (!empty($conf->global->PROJECT_USE_OPPORTUNITIES)) {
|
||||
$code = dol_getIdFromCode($db, $status, 'c_lead_status', 'rowid', 'code');
|
||||
if ($code) {
|
||||
$labelStatus = $langs->transnoentitiesnoconv("OppStatus".$code);
|
||||
if ($code == 'WON' || $code == 'LOST') {
|
||||
$labelStatus = $langs->transnoentitiesnoconv("OppStatus".$code).' ('.$langs->transnoentitiesnoconv("NotClosedYet").")";
|
||||
}
|
||||
}
|
||||
if (empty($labelStatus)) {
|
||||
$labelStatus = $listofopplabel[$status];
|
||||
|
||||
@ -152,7 +152,7 @@ if ($resql) {
|
||||
while ($i < $num) {
|
||||
$objp = $db->fetch_object($resql);
|
||||
$listofoppstatus[$objp->rowid] = $objp->percent;
|
||||
$listofopplabel[$objp->rowid] = $objp->label;
|
||||
$listofopplabel[$objp->rowid] = $objp->label; // default label if translation from "OppStatus".code not found.
|
||||
$listofoppcode[$objp->rowid] = $objp->code;
|
||||
switch ($objp->code) {
|
||||
case 'PROSP':
|
||||
|
||||
Loading…
Reference in New Issue
Block a user