Administrator
|
2) Check fuelling Rights: 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 |