Administrator
|
Juanchi Garin / 5:43 PM --- 1) Check the fuel type and grade, If it doest match? -> What to do? Neal: FuelType and FuelGrade will pretty much work the same, each will be disabled if the value is zero. The FuelType with be either 00, 01, 02, 03. You don’t really care what it stands for but you will see the same values on the Nozzles and Tanks. For your understanding; 01 – Diesel 02 – Petrol 03 – Other Now if a vehicle FuelType is 01 and the Nozzle is Fuel is 02 then the Rejection Notice will say: Wrong Fuel Type. The same logic applies to the FuelGrade, if it is not 00, then we expect to match the FuelGrade between the Nozzles and the vehicles, if it does not then the Rejection Notice will say: Wrong Fuel Grade. The reason we have both is that some vehicles need a specific Fuel Grade while some can take any of a FUELTYPE. In both mismatches in both cases, action is suspended and the Nozzle must be put down. Neal: Yes, the vehicle may have large available balance and couple with the MIN_HOURS_BEFORE_FUELLING or the MIN_KMs_BEFORE_REFUEL, the vehicle can be stopped from taking another TANK CAPACITY immediately (into a Gerry Can etc) .
Neal: If this is a Single Site, the Acc Balance can be maintained locally, so vehicles fill that amount is adjusted. Since many vehicle can be on the same Acc, it is important to check that there is available balance on the Acc as the Vehicle may have R3000 available, but the Main Acc could be at zero or close to it. Now it will be a good idea to keep a reserved amount for each transaction that is started on the Account as the Account can have R1000 and two car can be started minutes apart, but both vehicles will be stopped at R1000. The Account will go into –R1000.
The way to handle this will be to have a Reserved Field for each Acc and every time you check to see what is available, you must minus the reserved amount. The amount you reserve will be equal to Tank Capacity. Once the Transaction is completed, you minus the Tank Capacity for that Vehicle from the Reserved Amount. Let me know if that makes sense.
Neal: I thought it can be gotten from the record of the last transaction
for that vehicle, maybe it will be easier to create another field for DateTime
rather than searching for a transaction. Neal: Correct
Neal: Yes, check in this order; 1. FuelType and Grade 2. FuelSequence 3. Rights – NB: If Web is auth is requied, then the Driver, Odo etc must be sent to the Server.
Neal: The Fueling Mode = Fueling Sequence
|
Free forum by Nabble | Edit this page |