From 72b1066943ac3375860c67e968f1d320837f5a74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CVeLiTi=E2=80=9D?= <“info@veliti.nl”> Date: Mon, 27 May 2024 13:42:28 +0200 Subject: [PATCH] CIM82 - Update changelog based on warranty registration --- api/v1/post/application.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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; }