
Fuel Audit Log Printing
As part of the enhancements for the fuel module, to make it work faster, we decided to put the fuel audit printing and auto-stacking into a separate thread. This sounds relatively simple, but there were a few issues to deal with. The main one was that talking to the enabler (the fuel system interface we use) does not work when called from another thread.
To get around this, we decided to make the new thread print deliveries that have been added into the database. The problem with this is that the database record does not get entered until someone does something with the delivery. So the process is as follows:
• On the master fuel till, a delivery is placed into the database as soon as it is created. This is done in the main thread via an event from enabler.
• In the new thread, we look in the database for any deliveries in the database that have not yet been printed and print them. This is flagged in the database.
• We then perform the auto-stacking in the same place as before, in the main thread. The main difference is that now the main thread is not held up by the printing, making the system more responsive.
- Stephen's blog
- Login to post comments
Blog Archive
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
| 29 | 30 | 31 | 1 | 2 | 3 | 4 |
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 1 | 2 | 3 |
Latest news
Neotechnology will be closed from 12pm on the 23rd of December until 9am on the 2nd of January 2012.
Have a merry Christmas.
Just a quick post to display our new supermarket POS database template. As you can see, lots of thought has gone into the layout of the buttons and images, each cascading down as required.
