9/11/2
This commit is contained in:
@@ -705,7 +705,7 @@ class MapDriverController extends GetxController {
|
||||
await Future.delayed(const Duration(seconds: 1));
|
||||
recentDistanceToDash = Get.find<LocationController>().totalDistance;
|
||||
// rideTimerFromBegin = i;
|
||||
if (int.parse(duration) > i) {
|
||||
if (int.parse(duration) + 300 > i) {
|
||||
price = double.parse(totalCost);
|
||||
} else {
|
||||
if (startNameLocation.toLowerCase().contains('airport') ||
|
||||
@@ -820,13 +820,10 @@ class MapDriverController extends GetxController {
|
||||
? (i ~/ 60) *
|
||||
(Get.find<HomeCaptainController>().latePrice +
|
||||
.5) +
|
||||
(recentDistanceToDash *
|
||||
Get.find<HomeCaptainController>().comfortPrice)
|
||||
: (i ~/ 60) *
|
||||
(Get.find<HomeCaptainController>().latePrice +
|
||||
.5) +
|
||||
(recentDistanceToDash *
|
||||
Get.find<HomeCaptainController>().mashwariPrice);
|
||||
(price) -
|
||||
int.parse(duration) *
|
||||
(Get.find<HomeCaptainController>().latePrice + .5)
|
||||
: price;
|
||||
} else if (currentTime.hour >= 14 && currentTime.hour <= 17) {
|
||||
price = carType == 'Comfort' // || carType == 'Free Ride'
|
||||
? (i ~/ 60) * (Get.find<HomeCaptainController>().heavyPrice) +
|
||||
|
||||
Reference in New Issue
Block a user