CM91 - RMA update
This commit is contained in:
43
rmas.php
43
rmas.php
@@ -4,12 +4,13 @@ defined(page_security_key) or exit;
|
||||
//__________________________________________
|
||||
//MOVE TO TRANSLATION FILES:
|
||||
//__________________________________________
|
||||
|
||||
$button_create_rma = 'Create RMA';
|
||||
|
||||
//RMA
|
||||
$rmas_h2 = 'Return Material';
|
||||
$rmas_p = 'View, manage, and search RMA details.';
|
||||
$rma_h2 = 'RMA';
|
||||
$rma_h2 = 'Return Material Request';
|
||||
|
||||
$message_rma_1 = 'RMA created successfully!';
|
||||
$message_rma_2 = 'RMA updated successfully!';
|
||||
@@ -20,8 +21,40 @@ $rma_search = 'Search RMA...';
|
||||
|
||||
$rma_rowID = 'Request number';
|
||||
$rma_status = 'Status';
|
||||
$rma_sw_version_latest = 'Latest software version';
|
||||
$rma_servicereport_latest = 'Servicereport created last 7days';
|
||||
|
||||
$rma_status0_text = '1';
|
||||
$rma_status1_text = '2';
|
||||
$rma_status2_text = '3';
|
||||
$rma_status3_text = '4';
|
||||
$rma_status4_text = '5';
|
||||
|
||||
$rma_information = 'RMA information';
|
||||
$rma_return_reason = 'Return reason';
|
||||
$rma_return_reason0_text = '';
|
||||
$rma_return_reason1_text = '';
|
||||
$rma_return_reason2_text = '';
|
||||
$rma_return_reason3_text = '';
|
||||
$rma_return_reason4_text = '';
|
||||
$rma_return_reason5_text = '';
|
||||
|
||||
$rma_return_reasons_notes = 'Return reason notes';
|
||||
|
||||
$rma_return_tab1 = 'Return reason';
|
||||
$rma_return_tab2 = 'Questions';
|
||||
|
||||
$rma_question_allowed_label1 = 'Yes';
|
||||
$rma_question_allowed_label2 = 'No';
|
||||
|
||||
$rma_question_header_1 = '';
|
||||
$rma_question_1 = 'Batteries working?';
|
||||
$rma_question_2 = 'Button correctly working';
|
||||
$rma_question_3 = '';
|
||||
$rma_question_4 = '';
|
||||
$rma_question_5 = '';
|
||||
$rma_question_6 = '';
|
||||
$rma_question_7 = '';
|
||||
//__________________________________________
|
||||
//__________________________________________
|
||||
//__________________________________________
|
||||
@@ -58,6 +91,7 @@ $GET_VALUES = urlGETdetails($_GET) ?? '';
|
||||
//CALL TO API
|
||||
$api_url = '/v2/rma/'.$GET_VALUES;
|
||||
$responses = ioServer($api_url,'');
|
||||
|
||||
//Decode Payload
|
||||
if (!empty($responses)){$responses = json_decode($responses,true);}else{$responses = null;}
|
||||
|
||||
@@ -163,10 +197,15 @@ $view .= '
|
||||
}
|
||||
else {
|
||||
foreach ($responses as $response){
|
||||
//------------------------------
|
||||
//Variables
|
||||
//------------------------------
|
||||
$status_text = 'rma_status'.$response['status'].'_text';
|
||||
|
||||
$view .= '
|
||||
<tr>
|
||||
<td class="responsive-hidden">'.$response['rowID'].'</td>
|
||||
<td>'.$response['status'].'</td>
|
||||
<td>'.$$status_text.'</td>
|
||||
<td>'.$response['created'].'</td>
|
||||
<td>'.$response['createdby'].'</td>
|
||||
<td>'.$response['updated'].'</td>
|
||||
|
||||
Reference in New Issue
Block a user