|
|
|
@ -37,17 +37,17 @@ class DashboardBoDController extends Controller
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private function getInvoiceIntegration($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'); |
|
|
|
|
$token = config('api.adw_token'); |
|
|
|
|
$response = $this->curlReq($url, $token); |
|
|
|
|
|
|
|
|
|
if(@$response->data->project_no == "") |
|
|
|
|
return null; |
|
|
|
|
|
|
|
|
|
return $response; |
|
|
|
|
// 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'); |
|
|
|
|
// $token = config('api.adw_token'); |
|
|
|
|
// $response = $this->curlReq($url, $token); |
|
|
|
|
// |
|
|
|
|
// if(@$response->data->project_no == "") |
|
|
|
|
// return null; |
|
|
|
|
// |
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// to do |
|
|
|
|