CIM37 - Country view
This commit is contained in:
@@ -138,19 +138,19 @@ $accounthierarchy = json_encode($account, JSON_UNESCAPED_UNICODE);
|
||||
if ($command == 'update'){
|
||||
|
||||
//RESET WARRANTY AND SERVICE DATES WHEN STATUS IS CHANGED TO SEND(3)
|
||||
if ($post_content['status'] == 3 && $equipment_data['status'] != 3)
|
||||
if (isset($post_content['status']) && $post_content['status'] == 3 && $equipment_data['status'] != 3)
|
||||
{
|
||||
$post_content['service_date'] = $date;
|
||||
$post_content['warranty_date'] = $date;
|
||||
|
||||
}
|
||||
//UPDATE CHANGELOG BASED ON STATUS CHANGE
|
||||
if ($post_content['status'] != $equipment_data['status'])
|
||||
if (isset($post_content['status']) && $post_content['status'] != $equipment_data['status'])
|
||||
{
|
||||
changelog($dbname,'equipment',$equipment_data['rowID'],'status',$post_content['status'],$username);
|
||||
}
|
||||
//UPDATE CHANGELOG BASED ON ORDER_REF change
|
||||
if ($post_content['order_ref'] != $equipment_data['order_ref'])
|
||||
if (isset($post_content['order_ref']) && $post_content['order_ref'] != $equipment_data['order_ref'])
|
||||
{
|
||||
changelog($dbname,'equipment',$equipment_data['rowID'],'order_ref',$post_content['order_ref'],$username);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user