Create Contract will have link to create contract from view approved estimate sub Estimate table screen.
View Approved Estimate Screen
Clicking on this will open create contract screen.
Create Contract Screen
Add the following MDMS config to fetch the values of different dropdown filed of create estimate
MDMS config for Depatment, Designation
{
tenant, //pb
"common-masters",
[
{
"name": "Department"
},
{
"name": "Designation"
}
]
}
Once the above details are filled, user needs to forward contract to concerned department and official for checking. Forwarding is considered as part of contract creation.Fill in the details and click “Forward and Approve”.
Workflow Modal
Once Create Contract API call is successful, an acknowledgement screen is shown.
Create Contract Acknowledgement Screen
Some of the dropdown data is fetched from mdms and hrms search API
PageComponent | Data Source | API / MDMS Object |
---|---|---|
Executing Department | MDMS | { tenant, "common-masters", [ { "name": "Department" } ] } |
Designation | MDMS | { tenant, "common-masters", [ { "name": "Designation" } ] } |
Designation of officer in charge | hrms | /egov-hrms/employees/_search |
Name of officer in charge | hrms | /egov-hrms/employees/_search |
Localization keys are added under the ‘rainmaker-works’ locale module. In future if any new labels are implemented in works module that should also be pushed in the locale DB under rainmaker-works locale module. Below is the example of few locale labels for hindi and English.
{
"code":"WORKS_CREATE_CONTRACT",
"message":"एक अनुबंध बनाएं",
"module":"rainmaker-works",
"locale":"hi_IN"
}
{
"code":"WORKS_CREATE_CONTRACT",
"message":"Create a Contract",
"module":"rainmaker-works",
"locale":"en_IN"
}