add contract_subitem_id to azmayeshes table

This commit is contained in:
2024-12-25 13:03:09 +03:30
parent 6d9848cbc9
commit 91b93e4575
4 changed files with 36 additions and 2 deletions

View File

@@ -36,7 +36,8 @@ class AzmayeshController extends Controller
'project_name',
'updated_at',
'created_at',
'user_name'
'user_name',
'contract_subitem_id'
);
$allowedFilters = $columns;
@@ -80,6 +81,7 @@ class AzmayeshController extends Controller
'province_name' => $province->name_fa,
'user_id' => $user->id,
'user_name' => $user->name,
'contract_subitem_id' => $request->contract_subitem_id
]);
return $this->successResponse();
@@ -117,6 +119,7 @@ class AzmayeshController extends Controller
'applicant' => $request->applicant ?? '-',
'province_id' => $province->id,
'province_name' => $province->name_fa,
'contract_subitem_id' => $request->contract_subitem_id
]);
return $this->successResponse();
@@ -133,7 +136,7 @@ class AzmayeshController extends Controller
return $this->successResponse();
}
catch (QueryException $exception) {
return $this->errorResponse('can not be deleted');
return $this->errorResponse('امکان حذف وجود ندارد');
}
}
}