IDGEN Service - sequence number reset and custom format #403
-
Q1. the ID formats that we use, has place holders for sequence number, for example Q2. If I have a number like |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
ID Gen supports getting an ID by sending the name or the format. It replaces - boundary-code/city-code, financial year, current year, tenant-id and random text generator by default - https://core.digit.org/platform/core-services/id-generation-service A Sequence can only be reset by query, creating a cron job as part of the migration that runs once a year should do it. It can be implemented to look for sequences with certain name formats like SEQ_{RESETYEARLY}_CASE_CODE |
Beta Was this translation helpful? Give feedback.
ID Gen supports getting an ID by sending the name or the format. It replaces - boundary-code/city-code, financial year, current year, tenant-id and random text generator by default - https://core.digit.org/platform/core-services/id-generation-service
I would suggest that the utility to replace the legal act code should be written in the respective module and the format has to be updated before or after the ID-Gen call.
A Sequence can only be reset by query, creating a cron job as part of the migration that runs once a year should do it. It can be implemented to look for sequences with certain name formats like SEQ_{RESETYEARLY}_CASE_CODE