add contract_subitem_id to azmayeshes table
This commit is contained in:
@@ -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('امکان حذف وجود ندارد');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user