CIM61 - Allow productrowid to be sent via API
This commit is contained in:
@@ -63,7 +63,7 @@ if (!empty($post_content['sn']) && !empty($post_content['testdetails'])) {
|
|||||||
$input_type = $post_content['type'];
|
$input_type = $post_content['type'];
|
||||||
$testdetails = json_encode($post_content['testdetails']);
|
$testdetails = json_encode($post_content['testdetails']);
|
||||||
$serial = $post_content['sn'];
|
$serial = $post_content['sn'];
|
||||||
$productrowid = 0; //default product for equipment create
|
$productrowid = (isset($post_content['testdetails']['logdetails']['PN']) && (!empty($post_content['testdetails']['logdetails']['PN']) || $post_content['testdetails']['logdetails']['PN'] != ''))? $post_content['testdetails']['logdetails']['PN'] : 0; //default product for equipment create
|
||||||
$sn_service = $post_content['testdetails']['external_device_sn'] ?? '';
|
$sn_service = $post_content['testdetails']['external_device_sn'] ?? '';
|
||||||
|
|
||||||
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
|
|||||||
Reference in New Issue
Block a user