System should not allow to create Sales order when purchase Quantity finished.
We have business requirement , where system should be check the customer purchase order quantity and stop processing sales orders and raising invoices once the customer purchase order quantity is finished.
The system is allowing invoicing even purchase order qty has already been fulfilled. It doesn't seem correct for the system to allow invoicing if the purchase order quantity has already been fulfilled.
Version (include the version you are using, if applicable):
Code Snippet (add any code snippets that support your topic, if applicable):