Negative Inventory Sales Invoice Submitting Despite "Allow Negative Stock" Being Disabled

Even with the “Allow Negative Stock” setting turned off in ERPNext, sales invoices with negative inventory are being submitted.