Versions Compared

Key

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

Overview

The Adapter master data service maintains information on Departmentdepartments, Expenditure Expenditures and Projects. We can create these details and search for the same details based on the given parameters/request data.

...

Maintains the create and search department details. The following information is passed while creating the department - the Government ID, department code, department name, parent department if any. Searching the department details is on given parameters like IDs, Government ID, department code, and department name.

API List

...

Maintains the expenditure details And provide provides create and search functionality. For creating the expenditure, the following details are required - the Government ID, the department ID, code, name, type (can be "SCHEME", "NON_SCHEME") details. While searching the expenditure details, pass the given parameters like IDs, Government IDs, names, and code.

API List

...

Maintains the project details and provide provides create and search functionality. The following details are required to create the project - Government, name, code, expenditure ID, the department entity ID(s), and location IDs. While searching, pass the IDs, Government ID, name, code, expenditure ID, and location ID.

Project Update

Update the existing project details by searching based on Project Id and Tenant Id. The following are the required attributes - id and tenantId. We can pass the other project attribute to update - code, name,departmentEntityIds, expenditureId. It checks in the system before updating the departmentEntityIds and/or expenditureId, that whether it exists or not. if exist then it'll update else throw a meaningful error message.

...

Project Create API creates the project when all the Master data details (COA, Government, Expenditure, Department) and Department Entity have been created. COA And Government have to be created in the ifix core Master data service.

Project Create API takes the below attributes in request :

  1. tenantId : This is the Id that will be defined while creating the Ifix core Master Government Service.

  2. expenditureId: This is the Id that will be generated while creating the Adapter Master Expenditure Service.

  3. code: This is the project code that needs to be created.

  4. name: This is the project name that needs to be created.

  5. departmentEntityIds:  This is the Department Entity Ids. If we have to create a project at hierarchy level 1 then , we need to pass the Department Entity Id of that corresponding level. It depends on the Department hierarchy level on which the project has to be created and hence the same level Department Entity Id. You can pass the list of departmentEntityIds and can create the same project.

For reference, Below is the Dummy project create an example :

Request :

Code Block
{
  "requestHeader": {
    "ts": 1627193067,
    "version": "2.0.0",
    "msgId": "Unknown",
    "signature": "NON",
    "userInfo": {
        "uuid": "e4fd96e8-3b6b-4e36-9503-0f14a01af39d"
    }
  },
  "project": {
    "tenantId": "pb",
    "code": "7330_S557_DIV23SD02",
    "name": "DOLOWAL UPPER",
    "expenditureId": "13ef1c53-702d-43b5-9f97-43fa03c145c5",
    "departmentEntityIds":  ["295180a0-4d60-4805-a77f-92143bd115b4","901f76a8-1911-4960-b389-57b62bd4dcdb"
    ]
  }
}

...