When creating a Contracts module, the module needs to be enabled in citymodule.json.
Add the Following details in citymodule.json
User should be able to create → Forward (or) check → Forward/Reject a contract.
Contracts will be created by contract_creator, Checked by contract_checker and approver by contract_approver. This will be linear workflow and rejected contracts at any point in lifecycle will come into inbox of creator.
Contracts counters on Home Screen will increase/decrease as the inbox items for checkers and approvers increase/decrease respectively.
Actions menu on view page of Work orders should have actions to be taken by respective Actors
For Work Orders (Non-Departmental)
WO is created by JE, Approved by ME. Checkers in between depends on Implementation and can vary from ULB to ULB
Approved WO goes into Work Order inbox of respective organisation.
Organisation can either accept or reject.
Rejected Work Orders will come back into inbox of creator and cycle repeats
For Work Orders (Departmental)
WO is created by JE, Approved by ME. Checkers in between depends on Implementation and can vary from ULB to ULB
Approved WO goes into Work Order inbox of respective organisation.
Organisation can either accept or reject.
Rejected Work Orders will come back into inbox of creator and cycle repeats
For Purchase Orders
PO is created by JE, Approved by ME. Checkers in between depends on Implementation and can vary from ULB to ULB. An Infra expert can be assigned to check PO.
Approved PO goes as SMS to registered Vendor
Vendor can click on the PO link & download approved PO’s PDF.
Once the Estimate are created they will move to the respective checker and approver's inbox as pending items.
From Contract Proposal Inbox, User can come into Contract View Screen where Details of Contract present while creating the contract and Workflow history will be displayed.
User can take necessary actions by clicking on Actions Menu.
An Action bar on the View Contract Screen shows the list of actions
Forward Contract
Reject Contract
Modify Contract
Approve Contract
When any action is clicked respective popup is rendered according to the selected action. We have created three popups for approve, forward and reject. They are shown below
When these popups are submitted, Update Contract API is called containing the relevant updates in the workflow object contained in the request body. The contract service internally calls the workflow service and updates the status of the application.
Upon successful update, a response screen is displayed as follows
Create Contract will have link to create contract from view approved estimate sub Estimate table screen.
Clicking on this will open create contract screen.
Add the following MDMS config to fetch the values of different dropdown filed of create estimate
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”.
Once Create Contract API call is successful, an acknowledgement screen is shown.
Some of the dropdown data is fetched from mdms and hrms search API
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.
Contract Creator should be able to edit rejected contracts and resubmit them .
Rejected Contracts will show up in contract creators inbox.
Clicking on it will take to contract view screen. Users Click on “Actions” to make changes to contract.
Contract Details, ID, Contract Type and Project Details wont be editable.
Financial Details, Agreement Details are editable.
Creator Can make these changes and proceed to forward to checker.
Clicking on Rejected Contract ID from inbox will open Contract view page.
Clicking Actions-> Modify Contract will make page editable
From here on the flow is same as that of Create Contract. Once this Contract is submitted it is again moved to the respective Checker's inbox for approval. Contract can be rejected any number of times due to any specific reason which can be mentioned in the comments and the same comments are reflected in the View Contract screen.
Upon Successful update relevant acknowledgement screen displayed.
A contract that is approved and sent to next stage wont be editable.
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