Update: 2026-07-06 02:04:01
This commit is contained in:
@@ -74,9 +74,9 @@ try {
|
|||||||
|
|
||||||
// أسعار الدقائق
|
// أسعار الدقائق
|
||||||
if ($country === 'JO') {
|
if ($country === 'JO') {
|
||||||
$newNormalMin = 0.06;
|
$newNormalMin = 0.05;
|
||||||
$newPeakMin = 0.07;
|
$newPeakMin = 0.06;
|
||||||
$newLateMin = 0.08;
|
$newLateMin = 0.05;
|
||||||
} else {
|
} else {
|
||||||
$newNormalMin = round($newSpeedPrice / 4, 3);
|
$newNormalMin = round($newSpeedPrice / 4, 3);
|
||||||
$newPeakMin = round($newNormalMin * 1.15, 3);
|
$newPeakMin = round($newNormalMin * 1.15, 3);
|
||||||
@@ -86,20 +86,28 @@ try {
|
|||||||
$updateSql = "UPDATE kazan
|
$updateSql = "UPDATE kazan
|
||||||
SET speedPrice = :speedPrice,
|
SET speedPrice = :speedPrice,
|
||||||
comfortPrice = :comfortPrice,
|
comfortPrice = :comfortPrice,
|
||||||
familyPrice = :ladyPrice,
|
ladyPrice = :ladyPrice,
|
||||||
|
electricPrice = :electricPrice,
|
||||||
|
vanPrice = :vanPrice,
|
||||||
deliveryPrice = :deliveryPrice,
|
deliveryPrice = :deliveryPrice,
|
||||||
freePrice = :mishwarVipPrice,
|
mishwarVipPrice = :mishwarVipPrice,
|
||||||
naturePrice = :normalMin,
|
fixedPrice = :fixedPrice,
|
||||||
heavyPrice = :peakMin,
|
awfarPrice = :awfarPrice,
|
||||||
latePrice = :lateMin
|
normalMinPrice = :normalMin,
|
||||||
|
peakMinPrice = :peakMin,
|
||||||
|
lateMinPrice = :lateMin
|
||||||
WHERE country = :countryName";
|
WHERE country = :countryName";
|
||||||
$upStmt = $con->prepare($updateSql);
|
$upStmt = $con->prepare($updateSql);
|
||||||
$upStmt->execute([
|
$upStmt->execute([
|
||||||
':speedPrice' => $newSpeedPrice,
|
':speedPrice' => $newSpeedPrice,
|
||||||
':comfortPrice' => $newComfortPrice,
|
':comfortPrice' => $newComfortPrice,
|
||||||
':ladyPrice' => $newLadyPrice,
|
':ladyPrice' => $newLadyPrice,
|
||||||
|
':electricPrice' => $newElectricPrice,
|
||||||
|
':vanPrice' => $newVanPrice,
|
||||||
':deliveryPrice' => $newDeliveryPrice,
|
':deliveryPrice' => $newDeliveryPrice,
|
||||||
':mishwarVipPrice' => $newMishwarVipPrice,
|
':mishwarVipPrice' => $newMishwarVipPrice,
|
||||||
|
':fixedPrice' => $newFixedPrice,
|
||||||
|
':awfarPrice' => $newAwfarPrice,
|
||||||
':normalMin' => $newNormalMin,
|
':normalMin' => $newNormalMin,
|
||||||
':peakMin' => $newPeakMin,
|
':peakMin' => $newPeakMin,
|
||||||
':lateMin' => $newLateMin,
|
':lateMin' => $newLateMin,
|
||||||
|
|||||||
@@ -17,10 +17,12 @@ echo "Updating Kazan pricing for Jordan...\n";
|
|||||||
|
|
||||||
// Update the kazan table where country is Jordan
|
// Update the kazan table where country is Jordan
|
||||||
$sql = "UPDATE kazan
|
$sql = "UPDATE kazan
|
||||||
SET speedPrice = '0.25',
|
SET speedPrice = '0.22',
|
||||||
naturePrice = '0.05',
|
fixedPrice = '0.22',
|
||||||
heavyPrice = '0.06',
|
awfarPrice = '0.19',
|
||||||
latePrice = '0.05'
|
normalMinPrice = '0.05',
|
||||||
|
peakMinPrice = '0.06',
|
||||||
|
lateMinPrice = '0.05'
|
||||||
WHERE country = 'Jordan' OR country = 'JO'";
|
WHERE country = 'Jordan' OR country = 'JO'";
|
||||||
|
|
||||||
$stmt = $con->prepare($sql);
|
$stmt = $con->prepare($sql);
|
||||||
|
|||||||
@@ -161,10 +161,10 @@ function calculateDynamicPrice($country, $minFare, $distance, $duration, $kazanR
|
|||||||
} catch (Exception $e) {}
|
} catch (Exception $e) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
$naturePrice = (float) ($kazanRow['naturePrice'] ?? 0);
|
$naturePrice = (float) ($kazanRow['normalMinPrice'] ?? 0);
|
||||||
$heavyPrice = (float) ($kazanRow['heavyPrice'] ?? 0);
|
$heavyPrice = (float) ($kazanRow['peakMinPrice'] ?? 0);
|
||||||
$latePrice = (float) ($kazanRow['latePrice'] ?? 0);
|
$latePrice = (float) ($kazanRow['lateMinPrice'] ?? 0);
|
||||||
$kazanPercent = (float) ($kazanRow['kazan'] ?? 10);
|
$kazanPercent = (float) ($kazanRow['kazanPercent'] ?? 10);
|
||||||
|
|
||||||
// === General Settings ===
|
// === General Settings ===
|
||||||
$minBillableKm = 0.2;
|
$minBillableKm = 0.2;
|
||||||
|
|||||||
Reference in New Issue
Block a user