add new metrics, graph metrics, prepare basket to storage
This commit is contained in:
@@ -79,7 +79,7 @@ class DateRange
|
||||
public static function getPeriodsLastMonth($nb = 1, $withActual = true)
|
||||
{
|
||||
$end = $withActual ? Carbon::now()->endOfMonth() : self::lastMonth();
|
||||
$begin = $nb === 1 ? $end->copy()->startOfMonth() : $end->copy()->startOfMonth()->subMonths($nb - 1);
|
||||
$begin = $nb === 1 ? $end->copy()->startOfMonth() : $end->copy()->subMonths($nb)->startOfMonth();
|
||||
|
||||
return self::getPeriodsByMonth($begin, $end);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user