Merge pull request 'Removed production quantity in prodcution plan resource page' (#187) from ranjith-dev into master
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Reviewed-on: #187
This commit was merged in pull request #187.
This commit is contained in:
@@ -458,12 +458,12 @@ class ProductionPlanResource extends Resource
|
|||||||
->numeric()
|
->numeric()
|
||||||
->sortable()
|
->sortable()
|
||||||
->searchable(),
|
->searchable(),
|
||||||
Tables\Columns\TextColumn::make('production_quantity')
|
// Tables\Columns\TextColumn::make('production_quantity')
|
||||||
->label('Production Quantity')
|
// ->label('Production Quantity')
|
||||||
->alignCenter()
|
// ->alignCenter()
|
||||||
->numeric()
|
// ->numeric()
|
||||||
->sortable()
|
// ->sortable()
|
||||||
->searchable(),
|
// ->searchable(),
|
||||||
// Tables\Columns\TextColumn::make('line.name')
|
// Tables\Columns\TextColumn::make('line.name')
|
||||||
// ->label('Line')
|
// ->label('Line')
|
||||||
// ->alignCenter()
|
// ->alignCenter()
|
||||||
@@ -606,6 +606,7 @@ class ProductionPlanResource extends Resource
|
|||||||
$query->where('shift_id', $data['Shift']);
|
$query->where('shift_id', $data['Shift']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (! empty($data['Line'])) {// if ($line = $data['Line'] ?? null) {
|
if (! empty($data['Line'])) {// if ($line = $data['Line'] ?? null) {
|
||||||
$query->where('line_id', $data['Line']);
|
$query->where('line_id', $data['Line']);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user