Debug v14

This commit is contained in:
Laurent Destailleur 2021-06-07 01:23:34 +02:00
parent 46a06f8e95
commit 242f8b2544
4 changed files with 10 additions and 8 deletions

View File

@ -168,8 +168,9 @@ class box_graph_nb_ticket_last_x_days extends ModeleBoxes
$totalnb += $value['data'];
}
$px1->SetData($data);
$px1->setShowLegend(2);
$px1->SetType(array('bar'));
//$px1->setShowLegend(2);
$px1->setShowLegend(0);
$px1->SetType(array('bars'));
$px1->SetLegend(array($langs->trans('BoxNumberOfTicketByDay')));
$px1->SetMaxValue($px1->GetCeilMaxValue());
$px1->SetHeight(192);

View File

@ -149,7 +149,7 @@ class box_graph_new_vs_close_ticket extends ModeleBoxes
}
$stringtoprint .= '</div>';
$this->info_box_contents[][]=array(
'td' => 'center',
'td' => 'class="center"',
'text' => $stringtoprint
);
} else {

View File

@ -30,7 +30,6 @@ require_once DOL_DOCUMENT_ROOT."/core/boxes/modules_boxes.php";
*/
class box_graph_ticket_by_severity extends ModeleBoxes
{
public $boxcode = "box_ticket_by_severity";
public $boximg = "ticket";
public $boxlabel;
@ -168,16 +167,18 @@ class box_graph_ticket_by_severity extends ModeleBoxes
$mesg = $px1->isGraphKo();
$totalnb = 0;
if (!$mesg) {
$px1->SetDataColor(array_values($colorseriesstat));
//$px1->SetDataColor(array_values($colorseriesstat));
$data = array();
$legend = array();
foreach ($dataseries as $value) {
$data[] = array($value['label'], $value['data']);
$totalnb += $value['data'];
}
$px1->SetData($data);
$px1->setShowLegend(2);
$px1->SetType(array('pie'));
//$px1->setShowLegend(2);
$px1->setShowLegend(0);
$px1->SetType(array('bars'));
$px1->SetLegend($legend);
$px1->SetMaxValue($px1->GetCeilMaxValue());
//$px1->SetHeight($HEIGHT);

View File

@ -304,7 +304,7 @@ BoxLastModifiedTicket=Latest modified tickets
BoxLastModifiedTicketDescription=Latest %s modified tickets
BoxLastModifiedTicketContent=
BoxLastModifiedTicketNoRecordedTickets=No recent modified tickets
BoxTicketType=Number of open tickets by type
BoxTicketType=Distribution of open tickets by type
BoxTicketSeverity=Number of open tickets by severity
BoxNoTicketSeverity=No tickets opened
BoxTicketLastXDays=Number of new tickets by days the last %s days