| Quote |
|---|
Gigha wrote: After that, the "Post" and "Generate" buttons become read-only and cannot be clicked. How I can I do that? |
In short - no way.
The check for the user having unpaid payments should be performed at the time of document posting (or at the time of recording). If there is an overdue payment - then we do "Cancel = True" and Post (or Write) procedure is not performed.
There is another option for doing such a check: when the user selects a Customer, at this moment the program can check if this Client has overdue payments and issue a message to the user.