########################################################################################## VEH-52: Fuellog numbers don't add up ########################################################################################## Issue Type: Bug ----------------------------------------------------------------------------------------- Issue Information ==================== Priority: Major Status: Closed Resolution: Fixed (2014-01-12 13:25:24) Project: VehMan (VEH) Reported By: btasker Assigned To: btasker Components: - Charts - Fuel Affected Versions: - 1.0.15 Targeted for fix in version: - 1.0.2 Time Estimate: 0 minutes Time Logged: 0 minutes ----------------------------------------------------------------------------------------- Issue Description ================== The Financial figures on the Fuellog don't seem to add up, and Octobers figure doesn't match what's displayed on the chart. ----------------------------------------------------------------------------------------- Attachments ============ - Screenshot.png ----------------------------------------------------------------------------------------- Issue Relations ================ - relates to VEH-53: Recording of Mileage/Economy against Fuellog entries ----------------------------------------------------------------------------------------- Activity ========== ----------------------------------------------------------------------------------------- 2013-12-01 18:59:28 btasker ----------------------------------------------------------------------------------------- Attaching screenshot ----------------------------------------------------------------------------------------- 2013-12-01 18:59:28 ----------------------------------------------------------------------------------------- btasker added 'Screenshot.png' to Attachments ----------------------------------------------------------------------------------------- 2013-12-01 19:10:27 btasker ----------------------------------------------------------------------------------------- The total expenditure field does actually add up - the very first fuellog entry is excluded as it's the baseline. However, the chart is incorrect |Month|Chart|Log| |Oct|356.29|275.86| |Nov|335.03|335.03| The chart appears to be including the baseline fill (£80.43), which it shouldn't. Along the same lines, the Monthly Avg Fuel economy for Oct is lower than Nov, but Nov's cost per mile is higher - not quite sure how that's possible given the fuel price hasn't really changed. ----------------------------------------------------------------------------------------- 2013-12-01 19:14:50 btasker ----------------------------------------------------------------------------------------- The historic monthly mileage chart is only displaying 468 miles for November, again not sure why as there should be > 1000 miles recorded ----------------------------------------------------------------------------------------- 2013-12-01 19:20:43 btasker ----------------------------------------------------------------------------------------- Having a slow moment, the Historic Monthly Mileage chart is generated from the Statistics objects, which would be why the number was initially low - the stats run was under way. ----------------------------------------------------------------------------------------- 2013-12-01 19:30:48 btasker ----------------------------------------------------------------------------------------- It does differ from the value displayed in the Monthly mileage chart though |Month|Monthly|Historic| |Oct|2060|2281| |Nov|1454|1922| Novembers Historic value adds up and tallies against the log for Historic. In the Monthly, the first 468 miles appear to be being assigned back to October. October's Historic won't tally because it includes mileage done in another car, the monthly value tallies with 468 miles having been credited back from November. The two charts need to be consistent.... ----------------------------------------------------------------------------------------- 2013-12-01 19:47:10 btasker ----------------------------------------------------------------------------------------- Raised VEH-53 to resolve the issue ----------------------------------------------------------------------------------------- 2014-01-12 11:58:17 btasker ----------------------------------------------------------------------------------------- Need to confirm whether this is definitely still an issue, preferably against a dev build ----------------------------------------------------------------------------------------- 2014-01-12 12:41:44 btasker ----------------------------------------------------------------------------------------- Commit 54bb809 prevents the baseline fill from being included in the expenditure chart. ----------------------------------------------------------------------------------------- 2014-01-12 12:44:51 btasker ----------------------------------------------------------------------------------------- VehMan_API_Charts_Maths::monthlyCostPerMile suffers from a very similar issue that isn't quite as easily resolved. ----------------------------------------------------------------------------------------- 2014-01-12 13:25:24 ----------------------------------------------------------------------------------------- btasker changed status from 'Open' to 'Resolved' ----------------------------------------------------------------------------------------- 2014-01-12 13:25:24 ----------------------------------------------------------------------------------------- btasker added 'Fixed' to resolution ----------------------------------------------------------------------------------------- 2015-04-23 01:30:33 ----------------------------------------------------------------------------------------- btasker changed status from 'Resolved' to 'Closed'