I have a GUI screen which consist of 2 buttons, Check Balance and Create Saving. Once any user enters the customer ID and click on 'Check Balance' , details of the customer including their balance will be shown and simultaneously 'Create Saving' button will be enabled(after clicking on 'Check Balance' button as initially it will be disabled).
I have an scenario which i will try to explain with an example :
There are 2 users X & Y, who have logged in at the same time, and have clicked the "Check Balance" at the same time for a customer Id say 12345. Both see customer balance including some more details about customer and the "Create Saving" button is enabled for both of them.
- User X decides to take a break, and does not create a Saving, but User Y creates a Saving.
- User X comes back and click on the "Create Saving" button. **Now the question is how the X should be allowed to see updated value ? (OR) a Check Balance should be forced to X (OR) a warning message should be shown for X to check Balance ? **
every time a saving is created, technically "Check Balance" are always invoked, thus always refreshed values are considered before creating a saving in the back end. In the above scenario, though the User X sees outdated value in the screen, the saving is always created considering the saving created by User Y.
Any suggestion will be much appreciated.Thanks.