We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1d5b10e + e1dd45c commit d8671f7Copy full SHA for d8671f7
src/api/repositories/cheque_req_list/cheque-req-list-repository.ts
@@ -284,9 +284,15 @@ export class ChequeReqList extends BaseRepository {
284
285
int_count = 1;
286
} else {
287
+ let startingValue = 1;
288
+
289
+ if (disburse.bg_id === 2) startingValue = 1001;
290
+ else if (disburse.bg_id === 3) startingValue = 330001;
291
+ else if (disburse.bg_id === 4) startingValue = 10001;
292
293
const createSequence: any = await this.mainDb.raw(`
294
CREATE SEQUENCE sfa.${fb_seq_name}
- START WITH 1
295
+ START WITH ${startingValue}
296
INCREMENT BY 1;
297
`);
298
0 commit comments