Urgent question about invoice number

Hello everyone,
We have an urgent question about Invoice No. Please give us an answer quickly.
Our company has multiple branches, we want to create serial invoices for each branch, and define each branch with a characters -prefix-
Example: branch A, branch B, the invoice number is created as :
A-1 , B-1 .
Can we create an invoice number with characters that include serial numbers, depending on each branch?

Please help us ASAP.