Debug kanban
This commit is contained in:
parent
341a9ad283
commit
75cddd8c09
@ -782,7 +782,7 @@ while ($i < $imaxinloop) {
|
|||||||
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_print_fields.tpl.php';
|
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_print_fields.tpl.php';
|
||||||
// Fields from hook
|
// Fields from hook
|
||||||
$parameters = array('arrayfields'=>$arrayfields, 'object'=>$object, 'obj'=>$obj, 'i'=>$i, 'totalarray'=>&$totalarray);
|
$parameters = array('arrayfields'=>$arrayfields, 'object'=>$object, 'obj'=>$obj, 'i'=>$i, 'totalarray'=>&$totalarray);
|
||||||
$reshook = $hookmanager->executeHooks('printFieldListValue', $parameters, $object); // Note that $action and $object may have been modified by hook
|
$reshook = $hookmanager->executeHooks('printFieldListValue', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
||||||
print $hookmanager->resPrint;
|
print $hookmanager->resPrint;
|
||||||
/*if (!empty($arrayfields['anotherfield']['checked'])) {
|
/*if (!empty($arrayfields['anotherfield']['checked'])) {
|
||||||
print '<td class="right">'.$obj->anotherfield.'</td>';
|
print '<td class="right">'.$obj->anotherfield.'</td>';
|
||||||
|
|||||||
@ -202,8 +202,11 @@ class Project extends CommonObject
|
|||||||
public $statut; // 0=draft, 1=opened, 2=closed
|
public $statut; // 0=draft, 1=opened, 2=closed
|
||||||
|
|
||||||
public $opp_status; // opportunity status, into table llx_c_lead_status
|
public $opp_status; // opportunity status, into table llx_c_lead_status
|
||||||
|
public $opp_status_code;
|
||||||
public $fk_opp_status; // opportunity status, into table llx_c_lead_status
|
public $fk_opp_status; // opportunity status, into table llx_c_lead_status
|
||||||
|
public $opp_amount; // opportunity amount
|
||||||
public $opp_percent; // opportunity probability
|
public $opp_percent; // opportunity probability
|
||||||
|
public $opp_weighted_amount; // opportunity weighted amount
|
||||||
|
|
||||||
public $email_msgid;
|
public $email_msgid;
|
||||||
|
|
||||||
@ -2389,14 +2392,31 @@ class Project extends CommonObject
|
|||||||
//$return .= '<i class="fa fa-dol-action"></i>'; // Can be image
|
//$return .= '<i class="fa fa-dol-action"></i>'; // Can be image
|
||||||
$return .= '</span>';
|
$return .= '</span>';
|
||||||
$return .= '<div class="info-box-content">';
|
$return .= '<div class="info-box-content">';
|
||||||
$return .= '<span class="info-box-ref">'.(method_exists($this, 'getNomUrl') ? $this->getNomUrl() : $this->ref).'</span>';
|
$return .= '<span class="info-box-ref">'.(method_exists($this, 'getNomUrl') ? $this->getNomUrl() : $this->ref);
|
||||||
if (property_exists($this, 'date_start_event')) {
|
if ($this->hasDelay()) {
|
||||||
$return .= '<br><span class="info-bo-label opacitymedium">'.$langs->trans("DateStart").'</span>';
|
$return .= img_warning($langs->trans('Late'));
|
||||||
$return .= '<span class="info-box-label "> : '.dol_print_date($this->db->jdate($this->date_start_event), 'day').'</>';
|
|
||||||
}
|
}
|
||||||
if (property_exists($this, 'user_author_id')) {
|
$return .= '</span>';
|
||||||
|
if (property_exists($this, 'date_start') && $this->date_start) {
|
||||||
|
$return .= '<br><span class="info-box-label ">'.dol_print_date($this->date_start, 'day').'</>';
|
||||||
|
}
|
||||||
|
if (property_exists($this, 'date_end') && $this->date_end) {
|
||||||
|
if ($this->date_start) {
|
||||||
|
$return .= ' - ';
|
||||||
|
} else {
|
||||||
|
$return .= '<br>';
|
||||||
|
}
|
||||||
|
$return .= '<span class="info-box-label ">'.dol_print_date($this->date_end, 'day').'</>';
|
||||||
|
}
|
||||||
|
/*if (property_exists($this, 'user_author_id')) {
|
||||||
$return .= '<br><span class="info-box-label opacitymedium">'.$langs->trans("Author").'</span>';
|
$return .= '<br><span class="info-box-label opacitymedium">'.$langs->trans("Author").'</span>';
|
||||||
$return .= '<span> : '.$user->getNomUrl(1).'</span>';
|
$return .= '<span> : '.$user->getNomUrl(1).'</span>';
|
||||||
|
}*/
|
||||||
|
if ($this->usage_opportunity && $this->opp_status_code) {
|
||||||
|
//$return .= '<br><span class="info-bo-label opacitymedium">'.$langs->trans("OpportunityStatusShort").'</span>';
|
||||||
|
$return .= '<br><span class="info-box-label ">'. $langs->trans("OppStatus".$this->opp_status_code);
|
||||||
|
$return .= ' <span class="opacitymedium">('.round($this->opp_percent).'%)</span>';
|
||||||
|
$return .= '</>';
|
||||||
}
|
}
|
||||||
if (method_exists($this, 'getLibStatut')) {
|
if (method_exists($this, 'getLibStatut')) {
|
||||||
$return .= '<br><div class="info-box-status margintoponly">'.$this->getLibStatut(5).'</div>';
|
$return .= '<br><div class="info-box-status margintoponly">'.$this->getLibStatut(5).'</div>';
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user