From 6bb7b2d1de4a78c7515f04dd1b0d15bc0a3ac72d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CVeLiTi=E2=80=9D?= <“info@veliti.nl”> Date: Mon, 2 Dec 2024 19:10:33 +0100 Subject: [PATCH] CMXX - Change history table to equipment_history --- api/v1/post/application.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/v1/post/application.php b/api/v1/post/application.php index 88b1fbb..83aefc5 100644 --- a/api/v1/post/application.php +++ b/api/v1/post/application.php @@ -108,7 +108,7 @@ switch ($action) { if ($rowID){ //check if under warranty - $warranty = getrowID($dbname,'rowID','history','equipmentid="'.$rowID['rowID'].'" && (type="'.$type9.'" || type="'.$type10.'" || type="'.$type11.'" || type="'.$type12.'")'); + $warranty = getrowID($dbname,'rowID','equipment_history','equipmentid="'.$rowID['rowID'].'" && (type="'.$type9.'" || type="'.$type10.'" || type="'.$type11.'" || type="'.$type12.'")'); if ($warranty){ // -------------------------------------------- // Already under contract @@ -218,7 +218,7 @@ switch ($action) { $rowID = getrowID($dbname,'rowID','equipment','serialnumber="'.$post_content['sn'].'"'); if ($rowID){ //check if under warranty - $warranty = getrowID($dbname,'rowID','history','equipmentid="'.$rowID['rowID'].'" && (type="'.$type9.'" || type="'.$type10.'" || type="'.$type11.'" || type="'.$type12.'")'); + $warranty = getrowID($dbname,'rowID','equipment_history','equipmentid="'.$rowID['rowID'].'" && (type="'.$type9.'" || type="'.$type10.'" || type="'.$type11.'" || type="'.$type12.'")'); if ($warranty){ // -------------------------------------------- // Already under contract