ranjith-dev #1225

Merged
jothi merged 2 commits from ranjith-dev into master 2026-10-12 09:05:47 +00:00
Showing only changes of commit f94040e996 - Show all commits

View File

@@ -159,7 +159,7 @@ class ProductionTarget extends Page
$month = (int) $get('month');
$category = $get('category');
$this->dispatch('loadData',$year, $month, $plantId, $lineId, $category);
}),
])
@@ -217,7 +217,21 @@ class ProductionTarget extends Page
$lineId = $this->filters['line_id'] ?? null;
$year = $this->filters['year'] ?? null;
$month = (int) $this->filters['month'] ?? null;
$this->dispatch('loadData',$year, $month, $plantId, $lineId, '');
$category = $this->filters['category'] ?? null;
if($category == '' || $category == null){
// $this->dispatch('loadData',$year, $month, $plantId, $lineId, '');
$this->dispatch(
'loadData',
(int) $year,
(int) $month,
(int) $plantId,
(int) $lineId
);
}
else{
$this->dispatch('loadDataCategory',$year, $month, $plantId, $lineId, $category);
}
}
public static function canAccess(): bool