Background tasks
Posted: Tuesday 8th June 2021 2:16am
Hi everyone,
I have a question I would like to ask.
As most of you know I'm porting my EPoS software from windows to Linux by using Gambas.
I have a database update function in my windows version that runs In the background on the POS terminal once the cash drawer opens (the function display a small "updating" icon on the user screen and the. Update stock levels and tenders etc on the central database once it has consisted the update icon is hidden)
Is there a way I can replicate this in Gambas as I have had customers who have had sale that have had over 100 items (and if they are updating everyone in loop it will lock the till for a few seconds)
Ideally this option should be able to handle multipule updates (say one sale is for 100 items and then Another sale is for 2 items and then A sale for 5 items) in a perfect world the 100 items would run and once that has been processed the software would then process the 2 items and then the 5 items (like a first come first serve option) but I want to keep the till it self operational.
Is this possible or should the updates be saved to a file and have another gambas program (headless) do the database update?
I have a question I would like to ask.
As most of you know I'm porting my EPoS software from windows to Linux by using Gambas.
I have a database update function in my windows version that runs In the background on the POS terminal once the cash drawer opens (the function display a small "updating" icon on the user screen and the. Update stock levels and tenders etc on the central database once it has consisted the update icon is hidden)
Is there a way I can replicate this in Gambas as I have had customers who have had sale that have had over 100 items (and if they are updating everyone in loop it will lock the till for a few seconds)
Ideally this option should be able to handle multipule updates (say one sale is for 100 items and then Another sale is for 2 items and then A sale for 5 items) in a perfect world the 100 items would run and once that has been processed the software would then process the 2 items and then the 5 items (like a first come first serve option) but I want to keep the till it self operational.
Is this possible or should the updates be saved to a file and have another gambas program (headless) do the database update?