Change SSRS Report for SalesInvoice in Code.
Don't forget that the report uses print management. It means that you maybe don't need any code at all, because you can use conditions in print management. And if you find that a customization is necessary, you need to take print management into account in your development.
Also, remember that an invoice can include multiple orders. You need to define what should happen if there are orders with different sales types.