Add notifications on SalesOrders.
In Document SalesOrder, in DocumentForm.
When create Sales Order and then click button Post, a notification appears when The consumer has an SalesInvoice whose payment status is overdue. After that, button Post and Generate can't be click. (Button become readonly).
The 1C:Enterprise developers forum