Base solution for your next web application
Open Closed

Sequence Number per Tenant #10800


User avatar
0
ricardo created

Hello team,

Is there any way to implement a per-tenant unique sequencer?

hank you

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

3 Answer(s)
  • User Avatar
    0
    musa.demir created

    Can you describe in more detail what you want to do? What is the use case of it?

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    ricardo created

    The country's legislation requires the generation of a receipt that contains a sequential number starting with 1 for each establishment. Where later a tax report will be issued and compared with each receipt generated. The sequential number cannot have gaps. This exclude generating a single sequence for all tenants.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    musa.demir created

    Hi ricardo

    I guess adding SequenceId field to your tenant table might meets your needs.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)