changed logic in item overview for todaya nd yesterday filter
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Gemini PR Review / Gemini PR Review (pull_request) Failing after 18s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 13s
Laravel Pint / pint (pull_request) Failing after 3m3s
Laravel Larastan / larastan (pull_request) Failing after 7m21s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Gemini PR Review / Gemini PR Review (pull_request) Failing after 18s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 13s
Laravel Pint / pint (pull_request) Failing after 3m3s
Laravel Larastan / larastan (pull_request) Failing after 7m21s
This commit is contained in:
@@ -167,14 +167,11 @@ class ItemOverview extends ChartWidget
|
||||
|
||||
$dailyPlan = $weeklyPlan / 7;
|
||||
|
||||
// Hourly plan: 684 / 22.5 = 30.4
|
||||
$hourlyPlan = round($dailyPlan / 22.5, 2);
|
||||
|
||||
$planData = array_fill(
|
||||
0,
|
||||
count($orderedData),
|
||||
$hourlyPlan
|
||||
);
|
||||
|
||||
// Same hourly plan value for every hour
|
||||
$planData = array_fill(0, 24, $hourlyPlan);
|
||||
}
|
||||
elseif ($activeFilter === 'this_month') {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user