CIM37 - Country view

This commit is contained in:
“VeLiTi”
2024-04-02 21:44:07 +02:00
parent 3c0c157904
commit 391aa91341
8 changed files with 786 additions and 6 deletions

View File

@@ -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);
}