Do some minor cosmetic changes
This commit is contained in:
parent
8293ddeb68
commit
9bb9aa6488
5 changed files with 22 additions and 4 deletions
|
@ -42,6 +42,15 @@ class SessionData {
|
|||
return total;
|
||||
}
|
||||
|
||||
static int GetTotalDeliveries() {
|
||||
int total = 0;
|
||||
for (var trip in Trips) {
|
||||
total += trip.deliveries.length;
|
||||
}
|
||||
|
||||
return total;
|
||||
}
|
||||
|
||||
static String GetTotalMilesAsString() {
|
||||
double miles = GetTotalMiles();
|
||||
if (miles == 0) return "0.0";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue