This commit is contained in:
Hamza-Ayed
2026-05-01 02:08:21 +03:00
parent 989f6332f9
commit e68dda58d3
7 changed files with 119 additions and 69 deletions

View File

@@ -5,7 +5,7 @@ $id = filterRequest("id");
$allowedFields = [
"kazan", "comfortPrice", "speedPrice", "deliveryPrice",
"freePrice", "latePrice", "heavyPrice", "adminId", "createdAt", "naturePrice"
"freePrice", "latePrice", "heavyPrice", "adminId", "naturePrice", "fuelPrice", "familyPrice"
];
$setParts = [];
@@ -33,6 +33,7 @@ $stmt->execute($params);
if ($stmt->rowCount() > 0) {
jsonSuccess(null, "Kazan data updated successfully");
} else {
jsonError("Failed to update kazan data");
// If no rows were changed but execute was successful, it might be because the data is the same
jsonSuccess(null, "Kazan data remains unchanged or updated");
}
?>