diff --git a/api/v1/post/application.php b/api/v1/post/application.php index 13c0b5a..88b1fbb 100644 --- a/api/v1/post/application.php +++ b/api/v1/post/application.php @@ -197,6 +197,10 @@ switch ($action) { $stmt = $pdo->prepare($sql); $stmt->execute(['4',$warranty_extended,$partnerhierarchy,$rowID['rowID']]); + //Add warranty to changelog + $warranty_user = $post_content['email'] ?? 'system'; + changelog($dbname,'equipment',$rowID['rowID'],'Warranty',$warranty_extended,$warranty_user); + //Serialnumber recognized $message_box[] = $sn.' - '.$register_message_3; $communication_check = 1; @@ -299,6 +303,10 @@ switch ($action) { $stmt = $pdo->prepare($sql); $stmt->execute(['4',$warranty_extended,$partnerhierarchy,$rowID['rowID']]); + //Add warranty to changelog + $warranty_user = $post_content['email'] ?? 'system'; + changelog($dbname,'equipment',$rowID['rowID'],'Warranty',$warranty_extended,$warranty_user); + //Serialnumber recognized $message_box[] = $post_content['sn'].' - '.$register_message_3; }