Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Objective

It allows an Employee to update the number of trips as much it is needed and even after assigning the vehicle.

Once ULB employee with FSM_EDITOR login, assign the vehicle to the respective application, employee will get the option to update the number of trips, if needed.

Number of trips can be added as many times as needed.

Updating Number of trips will affect the rate of the service.

File Path: https://github.com/egovernments/DIGIT-Dev/blob/d5d7defe79d7ba80ad3493526d6e17e8e0066827/frontend/micro-ui/web/micro-ui-internals/packages/modules/fsm/src/pages/employee/ApplicationDetails/Modal/index.js

Update Trips:

When clicked on update trips action, Update trips pop up screen will appear to update the trips.

File Path:

https://github.com/egovernments/DIGIT-Dev/blob/d5d7defe79d7ba80ad3493526d6e17e8e0066827/frontend/micro-ui/web/micro-ui-internals/packages/modules/fsm/src/pages/employee/ApplicationDetails/config/UpdateTrips.js

https://github.com/egovernments/DIGIT-Dev/blob/d5d7defe79d7ba80ad3493526d6e17e8e0066827/frontend/micro-ui/web/micro-ui-internals/packages/modules/fsm/src/pages/employee/ApplicationDetails/Modal/index.js

https://github.com/egovernments/DIGIT-Dev/blob/d5d7defe79d7ba80ad3493526d6e17e8e0066827/frontend/micro-ui/web/micro-ui-internals/packages/modules/fsm/src/pages/employee/ApplicationDetails/config/index.js

After updating the trips, employee can see that trips has been updated in application timeline.

File Path: https://github.com/egovernments/DIGIT-Dev/commit/096dbfb08ed1e8e803d6a84188a01d970c5769f2

The payload sent to the /fsm/v1/_update end point looks like the following:

{
    "fsm": {
        "citizen": {
            "id": 32001,
            "uuid": "764a2c39-018e-44e8-a73c-66ee4beb1291",
            "userName": "7031795e-dc12-4ab0-8600-c107ee269ea1",
            "name": "test",
            "password": null,
            "mobileNumber": "9999999999",
            "tenantId": "pb",
            "salutation": null,
            "emailId": "Aditya@gmail.com",
            "altContactNumber": null,
            "pan": null,
            "aadhaarNumber": null,
            "permanentAddress": null,
            "permanentCity": null,
            "permanentPinCode": null,
            "correspondenceCity": null,
            "correspondencePinCode": null,
            "active": true,
            "dob": 791577000000,
            "pwdExpiryDate": 1538455860000,
            "locale": null,
            "type": "CITIZEN",
            "signature": null,
            "accountLocked": false,
            "roles": [
                {
                    "id": null,
                    "name": "Citizen",
                    "code": "CITIZEN",
                    "tenantId": "pb"
                }
            ],
            "bloodGroup": null,
            "identificationMark": null,
            "photo": null,
            "createdBy": "29678",
            "createdDate": 1654866898000,
            "lastModifiedBy": "29678",
            "lastModifiedDate": 1654866898000,
            "otpReference": null,
            "gender": "FEMALE"
        },
        "id": "4e84cac5-6151-483f-b8ae-a2e0ae3bb919",
        "tenantId": "pb.amritsar",
        "applicationNo": "107-FSM-2022-12-19-004860",
        "description": null,
        "accountId": "764a2c39-018e-44e8-a73c-66ee4beb1291",
        "additionalDetails": {
            "tripAmount": 2000
        },
        "applicationStatus": "DSO_INPROGRESS",
        "source": "TELEPHONE",
        "sanitationtype": "CONVENTIONAL_SPECTIC_TANK",
        "propertyUsage": "RESIDENTIAL.APARTMENT",
        "vehicleType": "MAHINDRA",
        "noOfTrips": 4,
        "vehicleCapacity": "2000",
        "status": null,
        "vehicleId": "4f9334b7-c7bc-42a3-ab47-4fb2a8c09844",
        "vehicle": null,
        "dsoId": "f66cd16c-849d-4bee-aad7-957bf83abf66",
        "dso": null,
        "possibleServiceDate": 1671408000000,
        "pitDetail": {
            "type": null,
            "id": "62831185-f363-4ccf-93d5-ef3b84e29f8b",
            "tenantId": "pb.amritsar",
            "height": 11,
            "length": 11,
            "width": 11,
            "diameter": 0,
            "distanceFromRoad": 0,
            "auditDetails": {
                "createdBy": "6b55dc64-5dc9-4284-a46f-6e264c22cf97",
                "lastModifiedBy": "2130ef7d-68cf-4606-b592-1451d4a4a6bf",
                "createdTime": 1671395061778,
                "lastModifiedTime": 1671428236879
            },
            "additionalDetails": null
        },
        "address": {
            "tenantId": "pb.amritsar",
            "doorNo": null,
            "plotNo": null,
            "id": "8ad92d9c-4027-492f-9ac3-5dcaa897a3f7",
            "landmark": null,
            "city": "Amritsar",
            "district": null,
            "region": null,
            "state": null,
            "country": null,
            "pincode": null,
            "additionalDetails": "{\"tripAmount\": 2000}",
            "auditDetails": {
                "createdBy": "6b55dc64-5dc9-4284-a46f-6e264c22cf97",
                "lastModifiedBy": "2130ef7d-68cf-4606-b592-1451d4a4a6bf",
                "createdTime": 1671395061778,
                "lastModifiedTime": 1671428236879
            },
            "buildingName": null,
            "street": null,
            "slumName": null,
            "locality": {
                "code": "SUN04",
                "name": "Ajit Nagar - Area1",
                "label": "Locality",
                "latitude": "31.63089",
                "longitude": "74.871552",
                "children": [],
                "materializedPath": null
            },
            "geoLocation": {
                "id": "210fdf39-5f9a-4a2e-822e-569c2c0f08c7",
                "latitude": 0,
                "longitude": 0,
                "additionalDetails": null
            }
        },
        "auditDetails": {
            "createdBy": "6b55dc64-5dc9-4284-a46f-6e264c22cf97",
            "lastModifiedBy": "2130ef7d-68cf-4606-b592-1451d4a4a6bf",
            "createdTime": 1671395061778,
            "lastModifiedTime": 1671428236879
        },
        "wasteCollected": null,
        "completedOn": 0,
        "advanceAmount": 1200,
        "applicationType": "Adhoc Service",
        "oldApplicationNo": null,
        "paymentPreference": "PRE_PAY"
    },
    "workflow": {
        "action": "UPDATE"
    },
    "RequestInfo": {
        "apiId": "Rainmaker",
        "authToken": "9035f5c7-d402-484f-89a7-b7884c3fc78f",
        "userInfo": {
            "id": 27486,
            "uuid": "2130ef7d-68cf-4606-b592-1451d4a4a6bf",
            "userName": "EMP-107-000254",
            "name": "Dharma",
            "mobileNumber": "9987106361",
            "emailId": "asd@123.com",
            "locale": null,
            "type": "EMPLOYEE",
            "roles": [
                {
                    "name": "Super User",
                    "code": "SUPERUSER",
                    "tenantId": "pb.amritsar"
                },
                {
                    "name": "Employee",
                    "code": "EMPLOYEE",
                    "tenantId": "pb.amritsar"
                },
                {
                    "name": "BPAREG doc verifier",
                    "code": "BPAREG_DOC_VERIFIER",
                    "tenantId": "pb.amritsar"
                },
                {
                    "name": "FSM Employee Application Editor",
                    "code": "FSM_EDITOR_EMP",
                    "tenantId": "pb.amritsar"
                },
                {
                    "name": "TL doc verifier",
                    "code": "TL_DOC_VERIFIER",
                    "tenantId": "pb.amritsar"
                }
            ],
            "active": true,
            "tenantId": "pb.amritsar",
            "permanentCity": null
        },
        "msgId": "1671429703042|en_IN",
        "plainAccessRequest": {}
    }
}

Technical Implementation Details:

PlusMinusInput.js component is responsible for rendering Updating Trips screen.

File Path: https://github.com/egovernments/DIGIT-Dev/blob/d5d7defe79d7ba80ad3493526d6e17e8e0066827/frontend/micro-ui/web/micro-ui-internals/packages/modules/fsm/src/pageComponents/PlusMinusInput.js

https://github.com/egovernments/DIGIT-Dev/blob/d5d7defe79d7ba80ad3493526d6e17e8e0066827/frontend/micro-ui/web/micro-ui-internals/packages/modules/fsm/src/Module.js

CSS File: https://github.com/egovernments/DIGIT-Dev/blob/d5d7defe79d7ba80ad3493526d6e17e8e0066827/frontend/micro-ui/web/micro-ui-internals/packages/css/src/components/plusMinus.scss

https://github.com/egovernments/DIGIT-Dev/blob/d5d7defe79d7ba80ad3493526d6e17e8e0066827/frontend/micro-ui/web/micro-ui-internals/packages/css/src/index.scss

Role Action Mapping:

 

API

ROLES

ACTION ID

1

/egov-mdms-service/v1/_search

FSM_EDITOR_EMP

954

2

/fsm/v1/_update

FSM_EDITOR_EMP

2045

3

/fsm/v1/_search

FSM_EDITOR_EMP

2044

4

/vendor/v1/_search

FSM_EDITOR_EMP

2053

  • No labels