AndrewMozley
Programmer
A screen prompts the user for a product code which is being manufactured from a list of components. The screen checks to see if there is sufficient stock of each of the components. If there is, it offers the user the chance to post the transaction; this would increase the stock of the finished product and reduce the stock of components.
In due course (on the same screen) the user decides to go ahead with the manufacture. The screen then does several things, including reducing the stock Qty on each component stock record.
I would like the screen to be able to meet its commitments; so if it has told the user that there is sufficient stock, it would be nice if this is still the case when the user clicks on ‘Go ahead’
What is the best way of achieving this - perhaps by locking the relevant stock records? How do other developers handle this?
Thanks. Andrew
In due course (on the same screen) the user decides to go ahead with the manufacture. The screen then does several things, including reducing the stock Qty on each component stock record.
I would like the screen to be able to meet its commitments; so if it has told the user that there is sufficient stock, it would be nice if this is still the case when the user clicks on ‘Go ahead’
What is the best way of achieving this - perhaps by locking the relevant stock records? How do other developers handle this?
Thanks. Andrew