Manage Products - Initial
This commit is contained in:
@@ -34,9 +34,9 @@ if (!empty($query_total_sfg)){$query_total_sfg = decode_payload($query_total_sfg
|
||||
|
||||
//Return FINISH GOODS from API
|
||||
$api_url = '/v1/equipments/productrowid=0&status=2&totals=';
|
||||
$query_total_sfg = ioServer($api_url,'');
|
||||
$query_total_fg = ioServer($api_url,'');
|
||||
//Decode Payload
|
||||
if (!empty($query_total_sfg)){$query_total_sfg = decode_payload($query_total_sfg);}else{$query_total_sfg = null;}
|
||||
if (!empty($query_total_fg)){$query_total_fg = decode_payload($query_total_fg);}else{$query_total_fg = null;}
|
||||
|
||||
//Return warranty from API
|
||||
$api_url = '/v1/equipments/status=2&totals=';
|
||||
@@ -46,7 +46,7 @@ if (!empty($query_total_onstock)){$query_total_onstock = decode_payload($query_t
|
||||
|
||||
|
||||
|
||||
$startdate = date("Y-m-d", strtotime("-900 days"));
|
||||
$startdate = date("Y-m-d", strtotime("-7 days"));
|
||||
$enddate = date("Y-m-d");
|
||||
|
||||
//Return SFG from API - total
|
||||
@@ -56,13 +56,13 @@ $query_SFG_total = ioServer($api_url,'');
|
||||
if (!empty($query_SFG_total)){$query_SFG_total = decode_payload($query_SFG_total);}else{$query_SFG_total = null;}
|
||||
|
||||
//Return SFG from API - details
|
||||
$api_url = '/v1/changelog/object_field=status&object_value=2&reporttype=2&between='.$startdate.'||'.$enddate;
|
||||
$api_url = '/v1/changelog/object_field=status&object_value=1&reporttype=2&between='.$startdate.'||'.$enddate;
|
||||
$query_SFG_details = ioServer($api_url,'');
|
||||
//Decode Payload
|
||||
if (!empty($query_SFG_details)){$query_SFG_details = decode_payload($query_SFG_details);}else{$query_SFG_details = null;}
|
||||
|
||||
//Return FG from API - totals
|
||||
$api_url = '/v1/changelog/object_field=status&object_value=1&reporttype=1&between='.$startdate.'||'.$enddate;
|
||||
$api_url = '/v1/changelog/object_field=status&object_value=2&reporttype=1&between='.$startdate.'||'.$enddate;
|
||||
$query_FG_total = ioServer($api_url,'');
|
||||
//Decode Payload
|
||||
if (!empty($query_FG_total)){$query_FG_total = decode_payload($query_FG_total);}else{$query_FG_total = null;}
|
||||
@@ -111,7 +111,7 @@ $view .= '
|
||||
<div class="content-block stat">
|
||||
<div class="data" onclick="location.href=\'index.php?page=equipments&productrowid=0&status=2\'">
|
||||
<h3>'.$product_location_FG.'</h3>
|
||||
<p>'.$query_total_sfg.'</p>
|
||||
<p>'.$query_total_fg.'</p>
|
||||
</div>
|
||||
<i class="fas fa-clipboard-check"></i>
|
||||
<div class="footer">
|
||||
|
||||
Reference in New Issue
Block a user