Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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 sethiSuraj

Last Updated On

8-8-24

Epic, ticket, issue, or LPP reference link

https://app.devrev.ai/shipsy/works/ISS-254943

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

  1. Approach:

  2. Database Migration and Index Changes:

  3. Org Config:

  4. Code Writing Style:

  5. API Documentation:

    1. Endpoint:

    2. Method:

    3. Fields/Payload:

    4. Response:

    5. Logic:

  6. Assumptions:

3.2 Dev Test Cases

Function/Feature

 Scenario

 Expected Outcome

 

 

 

 

 

 

3.3 Impact Analysis

3.4 Security and Permissions

3.5 Notes (If any)