Creating Different Invoice Number Prefix

Creating Different Invoice Number Prefix

As a company with multiple products, we differentiate the prefix for each product's invoice. A customer may have multiple products, but we do not send a single invoice.

Is it possible to create different templates and assign different prefix values based on the selection?