Number Counter - does not work as it should

Version ie <v5.10.43>

Environment <Docker/Shared Hosting/Zip/Other>

Checklist

  • Can you replicate the issue on our v5 demo site ? Yes
  • Have you searched existing issues? No
  • Have you inspected the logs in storage/logs/laravel.log for any errors? No

Describe the bug

Steps To Reproduce

I have created two groups to have two numerical sequences for invoices B0100000000 and B0200000000.

For example:
If I create my first invoice for B01, this appears: B0100000001, but if I create another one for B02, this appears: B0200000002, instead of B0200000001.

In other words, the counter is a single one even if they are configured to be separated by groups.

Expected Behavior

To have two separates numerical sequences for invoices

Additional context

Screenshots

Logs

I already found the solution!!

Thanks

@sramos Could you kindly share the solution in case other users are searching for something similar in the future? Cheers.