Default value for graph widget show all graphs
This commit is contained in:
parent
413807708f
commit
34d933af29
@ -111,7 +111,7 @@ class box_graph_invoices_permonth extends ModeleBoxes
|
||||
$shownb=$tmparray['shownb'];
|
||||
$showtot=$tmparray['showtot'];
|
||||
}
|
||||
if (empty($shownb) && empty($showtot)) $showtot=1;
|
||||
if (empty($shownb) && empty($showtot)) { $shownb=1; $showtot=1; }
|
||||
$nowarray=dol_getdate(dol_now(),true);
|
||||
if (empty($endyear)) $endyear=$nowarray['year'];
|
||||
$startyear=$endyear-1;
|
||||
|
||||
@ -110,7 +110,7 @@ class box_graph_invoices_supplier_permonth extends ModeleBoxes
|
||||
$shownb=$tmparray['shownb'];
|
||||
$showtot=$tmparray['showtot'];
|
||||
}
|
||||
if (empty($shownb) && empty($showtot)) $showtot=1;
|
||||
if (empty($shownb) && empty($showtot)) { $shownb=1; $showtot=1; }
|
||||
$nowarray=dol_getdate(dol_now(),true);
|
||||
if (empty($endyear)) $endyear=$nowarray['year'];
|
||||
$startyear=$endyear-1;
|
||||
|
||||
@ -113,7 +113,7 @@ class box_graph_orders_permonth extends ModeleBoxes
|
||||
$shownb=$tmparray['shownb'];
|
||||
$showtot=$tmparray['showtot'];
|
||||
}
|
||||
if (empty($shownb) && empty($showtot)) $showtot=1;
|
||||
if (empty($shownb) && empty($showtot)) { $shownb=1; $showtot=1; }
|
||||
$nowarray=dol_getdate(dol_now(),true);
|
||||
if (empty($endyear)) $endyear=$nowarray['year'];
|
||||
$startyear=$endyear-1;
|
||||
|
||||
@ -112,7 +112,7 @@ class box_graph_orders_supplier_permonth extends ModeleBoxes
|
||||
$shownb=$tmparray['shownb'];
|
||||
$showtot=$tmparray['showtot'];
|
||||
}
|
||||
if (empty($shownb) && empty($showtot)) $showtot=1;
|
||||
if (empty($shownb) && empty($showtot)) { $shownb=1; $showtot=1; }
|
||||
$nowarray=dol_getdate(dol_now(),true);
|
||||
if (empty($endyear)) $endyear=$nowarray['year'];
|
||||
$startyear=$endyear-1;
|
||||
|
||||
@ -111,7 +111,7 @@ class box_graph_propales_permonth extends ModeleBoxes
|
||||
$shownb=$tmparray['shownb'];
|
||||
$showtot=$tmparray['showtot'];
|
||||
}
|
||||
if (empty($shownb) && empty($showtot)) $showtot=1;
|
||||
if (empty($shownb) && empty($showtot)) { $shownb=1; $showtot=1; }
|
||||
$nowarray=dol_getdate(dol_now(),true);
|
||||
if (empty($endyear)) $endyear=$nowarray['year'];
|
||||
$startyear=$endyear-1;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user