changed logic in item overview bug solved
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 29s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 18s
Laravel Pint / pint (pull_request) Successful in 3m27s
Laravel Larastan / larastan (pull_request) Failing after 6m48s
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 29s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 18s
Laravel Pint / pint (pull_request) Successful in 3m27s
Laravel Larastan / larastan (pull_request) Failing after 6m48s
This commit is contained in:
@@ -165,13 +165,13 @@ class ItemOverview extends ChartWidget
|
||||
? $monthlyPlanQuantity / $weeksCount
|
||||
: 0;
|
||||
|
||||
$dailyPlan = $weeklyPlan / 7;
|
||||
$dailyPlan = $weeklyPlan / 22.5;
|
||||
|
||||
// Hourly plan: 684 / 22.5 = 30.4
|
||||
$hourlyPlan = round($dailyPlan / 22.5, 2);
|
||||
// $hourlyPlan = round($dailyPlan / 22.5, 2);
|
||||
|
||||
// Same hourly plan value for every hour
|
||||
$planData = array_fill(0, 24, $hourlyPlan);
|
||||
$planData = array_fill(0, 24, $dailyPlan);
|
||||
}
|
||||
elseif ($activeFilter === 'this_month') {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user