9/3/2
This commit is contained in:
@@ -3287,7 +3287,29 @@ class MapPassengerController extends GetxController {
|
||||
costLady,
|
||||
costRayehGai = 0;
|
||||
update();
|
||||
if (currentTime.hour >= 22 && currentTime.hour < 5) {
|
||||
if (startNameAddress.toLowerCase().contains('airport') ||
|
||||
endNameAddress.toLowerCase().contains('airport') ||
|
||||
startNameAddress.contains('مطار') ||
|
||||
startNameAddress.contains('المطار') ||
|
||||
endNameAddress.contains('مطار') ||
|
||||
endNameAddress.contains('المطار')) {
|
||||
costComfort =
|
||||
(distance * comfortPrice) + (costDuration * latePrice) + 20;
|
||||
costSpeed = (distance * speedPrice) + (costDuration * latePrice) + 20;
|
||||
costBalash =
|
||||
(distance * (speedPrice - 1)) + (costDuration * latePrice) + 20;
|
||||
costDelivery =
|
||||
(distance * deliveryPrice) + (costDuration * latePrice) + 20;
|
||||
costLady =
|
||||
(distance * comfortPrice + 2) + (costDuration * latePrice) + 20;
|
||||
costRayehGai = (distance * 2 * speedPrice) -
|
||||
((distance * 1 * speedPrice) * .4) +
|
||||
costDuration * 2 * latePrice +
|
||||
20;
|
||||
|
||||
update();
|
||||
}
|
||||
if (currentTime.hour >= 21 && currentTime.hour < 0) {
|
||||
// costDistance = distance * latePrice;
|
||||
costComfort = (distance * comfortPrice) + costDuration * latePrice;
|
||||
costSpeed = (distance * speedPrice) + costDuration * latePrice;
|
||||
@@ -3298,6 +3320,43 @@ class MapPassengerController extends GetxController {
|
||||
((distance * 1 * speedPrice) * .4) +
|
||||
costDuration * 2 * latePrice;
|
||||
|
||||
update();
|
||||
} else if (currentTime.hour >= 1 && currentTime.hour < 5) {
|
||||
// costDistance = distance * latePrice;
|
||||
if (startNameAddress.contains('club') ||
|
||||
startNameAddress.contains('nightclub') ||
|
||||
startNameAddress.contains('ديسكو') ||
|
||||
startNameAddress.contains('ملهى ليلي') ||
|
||||
startNameAddress.contains('Night club')) {
|
||||
// Your code here costComfort =
|
||||
(distance * comfortPrice) + costDuration * (latePrice + .5) * 2;
|
||||
costSpeed =
|
||||
(distance * speedPrice) + costDuration * (latePrice + .5) * 2;
|
||||
costBalash = (distance * (speedPrice - 1)) +
|
||||
costDuration * (latePrice + .5) * 2;
|
||||
costDelivery =
|
||||
(distance * deliveryPrice) + costDuration * (latePrice + .5) * 2;
|
||||
costLady = (distance * comfortPrice + 2) +
|
||||
costDuration * (latePrice + .5) * 2;
|
||||
costRayehGai = (distance * 2 * speedPrice) -
|
||||
((distance * 1 * speedPrice) * .4) +
|
||||
costDuration * 2 * (latePrice + .5) * 2;
|
||||
|
||||
update();
|
||||
}
|
||||
costComfort =
|
||||
(distance * comfortPrice) + costDuration * (latePrice + .5);
|
||||
costSpeed = (distance * speedPrice) + costDuration * (latePrice + .5);
|
||||
costBalash =
|
||||
(distance * (speedPrice - 1)) + costDuration * (latePrice + .5);
|
||||
costDelivery =
|
||||
(distance * deliveryPrice) + costDuration * (latePrice + .5);
|
||||
costLady =
|
||||
(distance * comfortPrice + 2) + costDuration * (latePrice + .5);
|
||||
costRayehGai = (distance * 2 * speedPrice) -
|
||||
((distance * 1 * speedPrice) * .4) +
|
||||
costDuration * 2 * latePrice;
|
||||
|
||||
update();
|
||||
} else if (currentTime.hour >= 13 && currentTime.hour <= 16) {
|
||||
// if (averageDuration > 2.5) {
|
||||
|
||||
Reference in New Issue
Block a user