I need an auto-incremented invoice number for quote, which would be separate for each user (in portal) and for each Account.

Hypothetical...