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';
|
||||
// Fields from hook
|
||||
$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;
|
||||
/*if (!empty($arrayfields['anotherfield']['checked'])) {
|
||||
print '<td class="right">'.$obj->anotherfield.'</td>';
|
||||
|
||||
@ -202,8 +202,11 @@ class Project extends CommonObject
|
||||
public $statut; // 0=draft, 1=opened, 2=closed
|
||||
|
||||
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 $opp_amount; // opportunity amount
|
||||
public $opp_percent; // opportunity probability
|
||||
public $opp_weighted_amount; // opportunity weighted amount
|
||||
|
||||
public $email_msgid;
|
||||
|
||||
@ -2389,14 +2392,31 @@ class Project extends CommonObject
|
||||
//$return .= '<i class="fa fa-dol-action"></i>'; // Can be image
|
||||
$return .= '</span>';
|
||||
$return .= '<div class="info-box-content">';
|
||||
$return .= '<span class="info-box-ref">'.(method_exists($this, 'getNomUrl') ? $this->getNomUrl() : $this->ref).'</span>';
|
||||
if (property_exists($this, 'date_start_event')) {
|
||||
$return .= '<br><span class="info-bo-label opacitymedium">'.$langs->trans("DateStart").'</span>';
|
||||
$return .= '<span class="info-box-label "> : '.dol_print_date($this->db->jdate($this->date_start_event), 'day').'</>';
|
||||
$return .= '<span class="info-box-ref">'.(method_exists($this, 'getNomUrl') ? $this->getNomUrl() : $this->ref);
|
||||
if ($this->hasDelay()) {
|
||||
$return .= img_warning($langs->trans('Late'));
|
||||
}
|
||||
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 .= '<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')) {
|
||||
$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