This commit is contained in:
Laurent Destailleur 2023-12-02 16:24:10 +01:00
parent 1779fed19c
commit bed683b070

View file

@ -131,7 +131,7 @@ class box_graph_invoices_permonth extends ModeleBoxes
if (empty($endyear)) {
$endyear = $nowarray['year'];
}
$startyear = $endyear - (!getDolGlobalString('MAIN_NB_OF_YEAR_IN_WIDGET_GRAPH') ? 2 : ($conf->global->MAIN_NB_OF_YEAR_IN_WIDGET_GRAPH - 1));
$startyear = $endyear - (getDolGlobalString('MAIN_NB_OF_YEAR_IN_WIDGET_GRAPH') ? ($conf->global->MAIN_NB_OF_YEAR_IN_WIDGET_GRAPH - 1) : 2); // Default is 3 years
$mode = 'customer';
$WIDTH = (($shownb && $showtot) || !empty($conf->dol_optimize_smallscreen)) ? '256' : '320';