Import FuelLog

This commit is contained in:
2015-09-09 22:45:27 -04:00
parent f3a7249793
commit 56dd091178
21 changed files with 500 additions and 15 deletions
+1
View File
@@ -447,6 +447,7 @@ namespace MileageTraker.Web.DAL
let existingOdometer = log.EndOdometer
where
log.VehicleId == vehicleId &&
// this is also in Utility.Algorithms, but doesn't get emitted to DB as SQL if used in method call
!(existingDate == date
|| existingOdometer == odometer
|| existingDate < date && existingOdometer < odometer