From 3c35ce0b1864c51053f7374ee16cf0641ba59bbf Mon Sep 17 00:00:00 2001 From: ibnu Date: Tue, 9 May 2023 00:38:13 +0700 Subject: [PATCH] update comment integrasi invoice --- app/Http/Controllers/ProjectController.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/app/Http/Controllers/ProjectController.php b/app/Http/Controllers/ProjectController.php index 4689c04..75ab404 100644 --- a/app/Http/Controllers/ProjectController.php +++ b/app/Http/Controllers/ProjectController.php @@ -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){