Invoice group numbering

Have you considered using Tracking Codes, where each business - hence its invoices, would be allocated to its own tracking code.