CMXX - Change history table to equipment_history

This commit is contained in:
“VeLiTi”
2024-12-02 19:10:33 +01:00
parent ad51669e32
commit 6bb7b2d1de

View File

@@ -108,7 +108,7 @@ switch ($action) {
if ($rowID){ if ($rowID){
//check if under warranty //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){ if ($warranty){
// -------------------------------------------- // --------------------------------------------
// Already under contract // Already under contract
@@ -218,7 +218,7 @@ switch ($action) {
$rowID = getrowID($dbname,'rowID','equipment','serialnumber="'.$post_content['sn'].'"'); $rowID = getrowID($dbname,'rowID','equipment','serialnumber="'.$post_content['sn'].'"');
if ($rowID){ if ($rowID){
//check if under warranty //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){ if ($warranty){
// -------------------------------------------- // --------------------------------------------
// Already under contract // Already under contract