Added invoice dashboard module get api

This commit is contained in:
dhanabalan
2025-07-12 14:03:12 +05:30
parent ea5af41f7f
commit 33acf73b5e
6 changed files with 774 additions and 4 deletions

View File

@@ -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')