|
|
|
@ -389,15 +389,16 @@ class ProjectController extends Controller
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public function getInvoiceIntegration(Request $request) { |
|
|
|
|
$search = urlencode($request->search); |
|
|
|
|
if(empty($search)) |
|
|
|
|
return response()->json(['status'=>'error', 'message'=>'Empty query string!'], 400); |
|
|
|
|
$url = str_replace("SEARCH", $search, config('api.adw').'/project_cost?project_no=SEARCH'); |
|
|
|
|
// $search = urlencode($request->search); |
|
|
|
|
// if(empty($search)) |
|
|
|
|
// return response()->json(['status'=>'error', 'message'=>'Empty query string!'], 400); |
|
|
|
|
// $url = str_replace("SEARCH", $search, config('api.adw').'/project_cost?project_no=SEARCH'); |
|
|
|
|
|
|
|
|
|
$response = MasterFunctionsHelper::curlReq($url); |
|
|
|
|
// $response = MasterFunctionsHelper::curlReq($url); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return response()->json(['status'=>'success', 'data'=> $response, 'code'=>200], 200); |
|
|
|
|
// return response()->json(['status'=>'success', 'data'=> $response, 'code'=>200], 200); |
|
|
|
|
return response()->json(['status'=>'success', 'data'=> '', 'code'=>200], 200); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public function detail($id){ |
|
|
|
|