added ability to add gas records by Unit Costs and added notes field to gas records.

This commit is contained in:
DESKTOP-T0O5CDB\DESK-555BD
2024-01-19 09:52:54 -07:00
parent 3909223d2f
commit 76c9473704
10 changed files with 53 additions and 12 deletions

View File

@@ -16,6 +16,7 @@
public decimal Cost { get; set; }
public bool IsFillToFull { get; set; } = true;
public bool MissedFuelUp { get; set; } = false;
public string Notes { get; set; }
public List<UploadedFiles> Files { get; set; } = new List<UploadedFiles>();
}
}

View File

@@ -16,6 +16,7 @@
public decimal Cost { get; set; }
public bool IsFillToFull { get; set; } = true;
public bool MissedFuelUp { get; set; } = false;
public string Notes { get; set; }
public List<UploadedFiles> Files { get; set; } = new List<UploadedFiles>();
public GasRecord ToGasRecord() { return new GasRecord {
Id = Id,
@@ -26,7 +27,8 @@
VehicleId = VehicleId,
Files = Files,
IsFillToFull = IsFillToFull,
MissedFuelUp = MissedFuelUp
MissedFuelUp = MissedFuelUp,
Notes = Notes
}; }
}
}

View File

@@ -20,5 +20,6 @@
public decimal CostPerGallon { get; set; }
public bool IsFillToFull { get; set; }
public bool MissedFuelUp { get; set; }
public string Notes { get; set; }
}
}