Client's setting custom generated number for 1

Version ie <v5.11.43>

Environment

Checklist

Can’t replicate the issue in demo environment, client custom setting giving errors when trying to save:

Describe the bug

Individual custom Generated numbers seems to stopped working. I remembered that it used to work.

Steps To Reproduce

on 3-dots on Client->Setting->Generated numbers->Invoice
Setup a counter {$year}-{$cunter}.

Set another client with same settings but the counter number is different.

When I generated an invoice on CustomerA, the invoice counter follows global Generated Numbers setting.

I remember it used to work. Now it I not longer working.

Did I accidentally turn off some settings?

Expected Behavior

Additional context

Screenshots

Logs

Sorry, no logs.

Hi,

These settings can be configured at the company, group or client level. Maybe that helps explain the problem.

Hi @hillel,

Thanks for the reply. Yes, I roughly know it. However, I can’t seem to make it work.

Client level

But when I generate a new invoice. It took the client level settings but took the company level counter.

So instead of NL05-INV-2025-0015, it generated NL05-INV-2025-006.

Any pointers would be appreciated.

Thanks in advance.

Best regards,
Kimu
PS: I can only attached 1 media at a time for now.

Understood, I think you want to change $counter to $client_counter.

Hi @hillel,

Thanks! That works!

I filled up the ID Number field with “NL05” in the Client’s page and use the following string in the Client’s customised setting:

{$client_id_number}-INV-{$client_counter}

It is now using the Number Counter in the client’s setting.

Thank you very much!

Best regards,
Kimu

Glad to hear it, thanks for the update!

1 Like