Merge pull request 'solved bug for page hang in production target plan' (#1137) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 14s
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 14s
Reviewed-on: #1137
This commit was merged in pull request #1137.
This commit is contained in:
@@ -452,10 +452,16 @@ class ProductionTargetPlan extends Component
|
||||
|
||||
public function loadProductionData($year, $month, $plantId, $lineId)
|
||||
{
|
||||
|
||||
$this->records = [];
|
||||
$this->monthlyRecords = 0;
|
||||
$this->dates = [];
|
||||
$this->leaveDates = [];
|
||||
|
||||
if (!$plantId || !$lineId || !$month || !$year) {
|
||||
$this->records = [];
|
||||
$this->dates = [];
|
||||
$this->leaveDates = [];
|
||||
// $this->records = [];
|
||||
// $this->dates = [];
|
||||
// $this->leaveDates = [];
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -641,8 +647,6 @@ class ProductionTargetPlan extends Component
|
||||
// ->whereMonth('created_at', $month)
|
||||
// ->sum('plan_quantity');
|
||||
// }
|
||||
|
||||
|
||||
public function exportProductionData()
|
||||
{
|
||||
return Excel::download(
|
||||
|
||||
Reference in New Issue
Block a user