Making customers or products inactive won't delete the transactions in QuickBooks Online. This is to ensure that the company data is intact and accurate. This means it won't affect the profit and loss report even if they are inactive. It only serves as an identifier that they are no longer part of your business.