Added invoice dashboard module get api
This commit is contained in:
@@ -93,7 +93,14 @@ class ModulePlantLineController extends Controller
|
||||
if (empty($plantName)) {
|
||||
return response()->json([
|
||||
'status_code' => 'ERROR',
|
||||
'status_description' => "Plant Name can't be empty!"
|
||||
'status_description' => "Plant name can't be empty!"
|
||||
], 404);
|
||||
}
|
||||
|
||||
if (empty($chartName)) {
|
||||
return response()->json([
|
||||
'status_code' => 'ERROR',
|
||||
'status_description' => "Chart name can't be empty!"
|
||||
], 404);
|
||||
}
|
||||
|
||||
@@ -106,8 +113,6 @@ class ModulePlantLineController extends Controller
|
||||
], 404);
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Load only lines NOT equal to FG Line
|
||||
$nonFgLines = Line::where('plant_id', $plant->id)
|
||||
->where('type', '!=', 'FG Line')
|
||||
|
||||
Reference in New Issue
Block a user