I'm looking to block sales order "Generate Invoice" executions when certain conditionals aren't met. Which class/function would I extend to accomplish this?
It depends on how early you can detect the problem. The actual posting is done in SalesInvoiceJournalPost, therefore that's the very last possible moment.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.