CMXX - Bugfix partnerID
This commit is contained in:
@@ -47,24 +47,24 @@ $url = 'index.php?page=equipments'.$status.$search.$software.$servicedate.$warra
|
||||
//GET Details from URL
|
||||
$GET_VALUES = urlGETdetails($_GET) ?? '';
|
||||
//CALL TO API
|
||||
$api_url = '/v1/equipments/'.$GET_VALUES;
|
||||
$api_url = '/v2/equipments/'.$GET_VALUES;
|
||||
$responses = ioServer($api_url,'');
|
||||
//Decode Payload
|
||||
if (!empty($responses)){$responses = decode_payload($responses);}else{$responses = null;}
|
||||
if (!empty($responses)){$responses = json_decode($responses);}else{$responses = null;}
|
||||
|
||||
//Return QueryTotal from API
|
||||
$total_url = ((!empty($GET_VALUES) && $GET_VALUES !='') ? '&totals=' : 'totals=' );
|
||||
$api_url = '/v1/equipments/'.$GET_VALUES.$total_url;
|
||||
$api_url = '/v2/equipments/'.$GET_VALUES.$total_url;
|
||||
$query_total = ioServer($api_url,'');
|
||||
//Decode Payload
|
||||
if (!empty($query_total)){$query_total = decode_payload($query_total);}else{$query_total = null;}
|
||||
if (!empty($query_total)){$query_total = json_decode($query_total);}else{$query_total = null;}
|
||||
|
||||
//Get Products related to assets
|
||||
$product_url = ((!empty($GET_VALUES) && $GET_VALUES !='') ? '&products=' : 'products=' );
|
||||
$api_url = '/v1/equipments/'.$GET_VALUES.$product_url;
|
||||
$api_url = '/v2/equipments/'.$GET_VALUES.$product_url;
|
||||
$query_products = ioServer($api_url,'');
|
||||
//Decode Payload
|
||||
if (!empty($query_products)){$query_products = decode_payload($query_products);}else{$query_products = null;}
|
||||
if (!empty($query_products)){$query_products = json_decode($query_products);}else{$query_products = null;}
|
||||
|
||||
//BUILD LIST OF PRODUCTS
|
||||
$product_list = '';
|
||||
|
||||
Reference in New Issue
Block a user