1. Objective (Problems and Goals)
UI to add CRN series and option to add check digit logic there and delete the series
save the check digit logic and whenever fetched during consignment creation need to use that logic
2. Initiation
Title | Check digit logic in CRN |
Author(s) | Titunath |
Team (POD) | Brahmos |
Reviewer(s) | Prasann sethi |
Last Updated On | 8-8-24 |
Epic, ticket, issue, or LPP reference link |
3. Solution
while fetching the virtual CRN we will add the suffix using check digit logic
1. Frontend to be made.
2.Same api will be called which is used for reference number and series type would. be added to that
3.1 Schema Change
while fetching the CRN through this function
fetchAndCommitValidSeries
we will add the suffix ( Using check digit logic if required ) in the fetched number and return it.In this file
/DTDCVirtualSeriesStrategy.ts
we will add logic to saveenableCheckDigitCalculation
, checkDigitLogic in db for customer reference number.
3.2 Approach and Components
Approach:
Database Migration and Index Changes:
Org Config:
Code Writing Style:
API Documentation:
Endpoint:
Method:
Fields/Payload:
Response:
Logic:
Assumptions:
3.2 Dev Test Cases
Function/Feature | Scenario | Expected Outcome |
---|---|---|
|
|
|
|
|
|
Add Comment