Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.3 fsm urc develop #89

Merged
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const Urls = {
location: {
localities: `/egov-location/location/v11/boundarys/_search?hierarchyTypeCode=ADMIN&boundaryType=Locality`,
revenue_localities: `/egov-location/location/v11/boundarys/_search?hierarchyTypeCode=REVENUE&boundaryType=Locality`,
gramPanchayats: `/egov-location/location/v11/boundarys/_search?hierarchyTypeCode=REVENUE&boundaryType=GramPanchayat`,
gramPanchayats: `/egov-location/location/v11/boundarys/_search?hierarchyTypeCode=REVENUE&boundaryType=GP`,
},

pgr_search: `/pgr-services/v2/request/_search`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ export const NewApplication = ({ parentUrl, heading }) => {
const advanceAmount = amount === 0 ? null : data?.advancepaymentPreference?.advanceAmount;
const gramPanchayat = data?.address.gramPanchayat;
const village = data?.address.village;
const propertyLocation = data?.address?.propertyLocation?.code;

const formData = {
fsm: {
Expand Down Expand Up @@ -143,6 +144,7 @@ export const NewApplication = ({ parentUrl, heading }) => {
longitude: data?.address?.longitude,
},
additionalDetails: {
boundaryType: propertyLocation === "FROM_GRAM_PANCHAYAT" ? (village?.code ? "Village" : "GP") : "Locality",
gramPanchayat: {
code: gramPanchayat?.code,
name: gramPanchayat?.name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ const Response = ({ data, onSuccess }) => {
slum,
gramPanchayat,
village,
propertyLocation,
} = address;
setPaymentPreference(selectPaymentPreference?.code);
const advanceAmount =
Expand All @@ -112,6 +113,12 @@ const Response = ({ data, onSuccess }) => {
address: {
tenantId: city.code,
additionalDetails: {
boundaryType:
propertyLocation?.code === "FROM_GRAM_PANCHAYAT"
? village?.code
? "Village"
: "GP"
: "Locality",
gramPanchayat: {
code: gramPanchayat?.code,
name: gramPanchayat?.name,
Expand Down