Concurrent running of several invoicing actions blocked
A new mechanism that prevents several invoicing actions from running concurrently within an invoice group or a client was added to ISPadmin 5.10 beta 1. If two such actions are initiated at approximately the same time, one of them is carried out and the other is not. A relevant message is displayed for the action that could not be carried out.
At this point, it is necessary to emphasize that these messages are not error messages. You do not have to be afraid that something bad has happened. These messages are displayed only to inform you that the action initiated by you could not be completed at the moment.
Example 1:
- User A initiates bulk invoice generation for the invoice group Test.
- User B initiates individual invoice generation for a client from the invoice group Test.
- The system finds out that there are two concurrently running invoicing actions that could interfere with each other, which is why it does not allow the action initiated by User B to be carried out.
- The following message is displayed to User B: This action cannot be completed. Bulk invoice generation was performed in the invoice group a moment ago. The invoicing data changed as a result. Please try it again.
Example 2:
- User A initiates individual invoice generation for a client from the invoice group Test.
- User B initiates bulk invoice generation for the invoice group Test.
- The system finds out that there are two concurrently running invoicing actions that could interfere with each other, which is why it does not allow the action initiated by User B to be carried out.
- The following message is displayed to User B: Preview validity expired. Changes were made in the invoice group. Please try it again.
In both examples, User B is asked to start over. In Example 1, it means that they are supposed to go back to Client card / Invoicing, click on the Issue invoice button, fill in the form and click on the Save button. In Example 2, it means that they are supposed to go back to Invoicing / Invoices / Invoices, choose a particular invoice group, click on the preview generation button and then on the Save button.
The mechanism takes into account not only invoice generation actions, but also other ones: edit invoices and invoicing periods, cancel invoices, restore cancelled invoices, issue credit notes, delete invoices and credit notes. All the actions are interrelated, which is why it is necessary to prevent any unwanted interferences from occurring between the individual processes.
Some actions may take a bit longer. As a result, it is necessary to wait a bit longer for the mechanism to allow other actions to be carried out. If an invoicing action gets stuck for some reason, there is a way of resolving the issue. After a preset time limit is reached, the blocking mechanism is restarted. If you encounter such a problem, please wait approximately 5 minutes and then start over.