12/26/1
This commit is contained in:
@@ -1070,8 +1070,9 @@ class MapPassengerController extends GetxController {
|
||||
newTime = currentTime.add(durationToAdd);
|
||||
averageDuration = duration / distance;
|
||||
costDuration = duration * averageDuration * 0.016;
|
||||
totalDriver = cost + costDuration;
|
||||
totalPassenger = totalDriver + (totalDriver * .16);
|
||||
var totalDriver1 = cost + costDuration;
|
||||
totalPassenger = totalDriver1 + (totalDriver1 * .16);
|
||||
totalDriver = totalDriver1 + (totalDriver1 * .16);
|
||||
tax = totalPassenger * .04;
|
||||
totalME = totalPassenger - totalDriver - tax;
|
||||
update();
|
||||
@@ -1123,12 +1124,12 @@ class MapPassengerController extends GetxController {
|
||||
totalPassenger = 1;
|
||||
update();
|
||||
if (totalDriver < .5) {
|
||||
totalDriver = .85;
|
||||
totalME = .11;
|
||||
totalDriver = .80;
|
||||
totalME = .16;
|
||||
update();
|
||||
} else {
|
||||
totalDriver = .95;
|
||||
totalME = .05;
|
||||
totalDriver = .90;
|
||||
totalME = .06;
|
||||
update();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user