Update: 2026-06-26 20:52:17

This commit is contained in:
Hamza-Ayed
2026-06-26 20:52:18 +03:00
parent 1ff132cd07
commit b4f063aaac
7 changed files with 152 additions and 91 deletions

View File

@@ -4,8 +4,12 @@ require_once __DIR__ . '/../../connect.php';
$id = filterRequest("id");
$allowedFields = [
"kazan", "comfortPrice", "speedPrice", "deliveryPrice",
"freePrice", "latePrice", "heavyPrice", "adminId", "naturePrice", "fuelPrice", "familyPrice"
"kazanPercent", "fuelPrice", "currency",
"speedPrice", "comfortPrice", "ladyPrice",
"electricPrice", "vanPrice", "deliveryPrice",
"mishwarVipPrice", "fixedPrice", "awfarPrice",
"normalMinPrice", "peakMinPrice", "lateMinPrice",
"adminId"
];
$setParts = [];
@@ -32,7 +36,6 @@ $stmt->execute($params);
$userIdToLog = $user_id ?? 'unknown_admin';
// تسجيل العملية في السجل دائماً
$auditResult = logAudit($con, $userIdToLog, "تحديث عمولة/أسعار النظام (Kazan)", "kazan", $id, $params);
$debugLog = "[" . date('Y-m-d H:i:s') . "] Kazan Update Triggered. User: $userIdToLog. Audit Result: " . ($auditResult === true ? 'SUCCESS' : $auditResult) . "\n";
@@ -43,4 +46,4 @@ if ($stmt->rowCount() > 0) {
} else {
jsonSuccess(null, "Kazan data remains unchanged or updated. Audit: " . ($auditResult === true ? 'OK' : $auditResult));
}
?>
?>