In my country, invoices must have consecutive names without gaps. The problem arises when I create a budget. It generates the name "budget - S0004" and when the budget is accepted, that budget turns into invoice number "S0004". The problem occurs when the budget is not accepted; if I generate a new budget, it continues to generate the next number "budget - S0005". So if I make 4 or 5 budgets that are not accepted, the numbering keeps increasing, and if a budget "budget - S0010" is accepted, the invoice is generated as "S0010". This creates a gap of 6 numbers, resulting in invoice number "S0004" and the next one being "S0010". This cannot be; budgets must have a sequential numbering with a different name, for example, "B0004" and if they turn into an invoice, it changes to the name "S0004". If there are budgets that are not approved, it should not affect the sequence of invoices.
Is there any way to change this?