Update Consumer

Enables employee to update consumer details

Users are redirected to this screen/page when they click on the Update Consumer Details card

 

Link → {base url}/mgramseva/home/consumersearchupdate?Mode=update

→ {base url}/mgramseva/home/consumersearchresult

 

  • It redirects to Search Connection Page in update mode where users enter specific consumer details to search for consumers. The search result screen has the Edit Consumer button. Clicking on this button navigates the users to the Update Consumer screen.

  • If collection is not yet done on the connection it will show information popup that all the demands are reversed.

 

 

 

 

Field Validations

SL

Fields

Validations

SL

Fields

Validations

1

consumer Name*

[A-Za-z ]

2

Gender*

None

3

Spouse/Parent’s Name*

[A-Za-z ]

4

Phone Number*

[0-9]

5

Old Connection No

None

6

Category

None

7

Sub Category

None

8

Door Number

None

9

Street Name/Number

None

10

Gram Panchayat Name*

None- Disabled

11

Propert Type*

None

12

Service Type*

None

13

Meter Id

[a-zA-Z0-9]

14

Meter Reading

[0-9]

15

Billing Cycle

None

16

Arrears

[0-9.]

17

Advance

[0-9.]

18

Penalty

[0-9.]

Note: All fields are validated on Submit apart from the phone number which gets validated on change.

 

API Details

SL

API

Params

Description

SL

API

Params

Description

1

/egov-mdms-service/v1/_search

[{"moduleName":"ws-services-masters","masterDetails":[{"name":"connectionType"}]},{"moduleName":"PropertyTax","masterDetails":[{"name":"PropertyType"}]},{"moduleName":"BillingService","masterDetails":[{"name":"TaxPeriod","filter":"[?(@.service=='WS' && @.fromDate <= 1631989800000 && @.toDate >= 1631989800000)]

To get the Property Type and service Type and billing cycle values for the Dropdown

2

egov-location/location/v11/boundarys/_search?

hierarchyTypeCode=REVENUE&boundaryType=Locality&tenantId={tenantID}

To get the values for Locality DropDow

3

billing-service/demand/_search

consumerCode, businessService, tenantId

To Fetch Demand Details

4

property-services/property/_search

propertyIds, tenantId

To Fetch Property Type

5

ws-services/wc/_search

connectionNumber, tenantId

On Demand this API is Made

Components utilised from Widgets Library

SL

Components

File Path

SL

Components

File Path

1

TextField Builder

punjab-mgramseva/frontend/mgramseva/lib/widgets/TextFieldBuilder.dart at master · misdwss/punjab-mgramseva

2

RadioButtonField Builder

punjab-mgramseva/frontend/mgramseva/lib/widgets/RadioButtonFieldBuilder.dart at master · misdwss/punjab-mgramseva

3

SearchSelectField Builder

punjab-mgramseva/frontend/mgramseva/lib/widgets/SearchSelectFieldBuilder.dart at master · misdwss/punjab-mgramseva

4

DatePicker Builder

punjab-mgramseva/frontend/mgramseva/lib/widgets/DatePickerFieldBuilder.dart at master · misdwss/punjab-mgramseva