In our case, fuelUsed is not present in positions. That means that the logic used is the deduction of first and last levels. The code assumes that the fuel tank is always 'more full' at the start of the trip than it is at the end. However, it does not account for a fuel increase (refuel), resulting in a negative or incorrect result of deduction. If this is the case, then the report generated with an incorrect value of spentFuel. Is this the intended behavior?
Yes, it's not handled currently.
In our case, fuelUsed is not present in positions. That means that the logic used is the deduction of first and last levels. The code assumes that the fuel tank is always 'more full' at the start of the trip than it is at the end. However, it does not account for a fuel increase (refuel), resulting in a negative or incorrect result of deduction. If this is the case, then the report generated with an incorrect value of spentFuel. Is this the intended behavior?