0.39.0
Vehicles metered in engine hours — tractors, generators, plant — are now serviced and labelled in hours rather than in distance.
Features
- A maintenance schedule for a vehicle tracked in engine hours is set in hours ("every 250 hours") instead of kilometres or miles. Previously the only reading-based intervals on offer were distances, and the next-due reading was worked out by running that distance through the km/mi conversion before adding it to a figure that was already in hours, so such a vehicle could never be serviced to anything sensible. The km and miles boxes are hidden for an hours-metered vehicle and shown again for any other, decided server-side so the form is right before any script runs. (#282)
Fixes
- Readings on an hours-tracked vehicle, and the figures derived from them, are labelled in hours: "h" beside a reading, "L / h" for consumption, "Cost per h", "kWh / 100 h", and "Engine hours" rather than "Odometer" on forms. Fuel, expenses, notes, tyres, mileage allowance, the vehicle page, the maintenance list, the calendar feed and the PDF report all follow the vehicle's own unit now; the figures themselves have been correct since 0.36.1, only the labels beside them still read in distance terms. (#282)
- "Due soon" for a schedule on an hours-tracked vehicle means within 25 engine hours rather than within 500, which had put every such service permanently in the amber. (#282)
- The next-due reading in the maintenance list takes the owning vehicle's unit rather than the account's distance preference, which was also wrong for any vehicle whose own odometer unit differed from it. (#282)
Other
- New
interval_hourscolumn on maintenance schedules (migrationf2a3b4c5d6e7, applied automatically on start-up); it is carried through backup and restore. - Translations updated for the new strings across all supported languages.
- README updated for engine-hour intervals and labelling.
Thanks to the reporter of #282 for the detail on how hour-metered machinery is actually serviced.
Known limitations
The trip and charging forms, and the timeline on the vehicle page, still label a reading with the account's distance unit, as they do for every vehicle.