removed log for plan query time #1141

Merged
jothi merged 1 commits from ranjith-dev into master 2026-09-30 10:49:05 +00:00

View File

@@ -468,8 +468,6 @@ class ProductionTargetPlan extends Component
$dates = $this->getMonthDates($month, $year); $dates = $this->getMonthDates($month, $year);
$this->dates = $dates; $this->dates = $dates;
$start = microtime(true);
$plans = ProductionPlan::query() $plans = ProductionPlan::query()
->join('items', 'items.id', '=', 'production_plans.item_id') ->join('items', 'items.id', '=', 'production_plans.item_id')
->join('lines', 'lines.id', '=', 'production_plans.line_id') ->join('lines', 'lines.id', '=', 'production_plans.line_id')
@@ -495,8 +493,6 @@ class ProductionTargetPlan extends Component
) )
->get(); ->get();
Log::info('Plans: ' . ((microtime(true) - $start) * 1000) . ' ms');
$leaveDates = []; $leaveDates = [];
if ($plans->isNotEmpty() && $plans[0]->leave_dates) { if ($plans->isNotEmpty() && $plans[0]->leave_dates) {