diff --git a/web/rainmaker/dev-packages/egov-wns-dev/src/ui-config/screens/specs/wns/connectionDetailsResource/property-details.js b/web/rainmaker/dev-packages/egov-wns-dev/src/ui-config/screens/specs/wns/connectionDetailsResource/property-details.js index accc450093..12a8da5b43 100644 --- a/web/rainmaker/dev-packages/egov-wns-dev/src/ui-config/screens/specs/wns/connectionDetailsResource/property-details.js +++ b/web/rainmaker/dev-packages/egov-wns-dev/src/ui-config/screens/specs/wns/connectionDetailsResource/property-details.js @@ -31,13 +31,13 @@ const propertyLocationDetailsHeader = getHeader({ }); const propertyDetails = getCommonContainer({ - propertyStatus: getLabelWithValue( + propertyStatus: getLabelWithValue( { labelKey: "WS_PROPERTY_STATUS_LABEL" }, { jsonPath: - "WaterConnection[0].property.status", + "WaterConnection[0].property.status", localePrefix: { moduleName: "WS", masterName: "PROPTYPE" @@ -50,7 +50,7 @@ const propertyDetails = getCommonContainer({ }, { jsonPath: - "WaterConnection[0].property.propertyType", + "WaterConnection[0].property.propertyType", localePrefix: { moduleName: "WS", masterName: "PROPTYPE" @@ -61,12 +61,13 @@ const propertyDetails = getCommonContainer({ { labelKey: "WS_PROPERTY_USAGE_TYPE_LABEL" }, - { jsonPath: "WaterConnection[0].property.usageCategory", - localePrefix: { - moduleName: "WS", - masterName: "PROPUSGTYPE" + { + jsonPath: "WaterConnection[0].property.usageCategory", + localePrefix: { + moduleName: "WS", + masterName: "PROPUSGTYPE" + } } - } ), plotSize: getLabelWithValue( { @@ -75,6 +76,14 @@ const propertyDetails = getCommonContainer({ { jsonPath: "WaterConnection[0].property.landArea" } + ), + buildupplotSize: getLabelWithValue( + { + labelKey: "WS_SUPER_BUILDUP_AREA_LABEL" + }, + { + jsonPath: "WaterConnection[0].property.superBuiltUpArea" + } ) }) diff --git a/web/rainmaker/dev-packages/egov-wns-dev/src/ui-config/screens/specs/wns/generateBillResource/functions.js b/web/rainmaker/dev-packages/egov-wns-dev/src/ui-config/screens/specs/wns/generateBillResource/functions.js index 5dd7cd89fd..3a921d9e51 100644 --- a/web/rainmaker/dev-packages/egov-wns-dev/src/ui-config/screens/specs/wns/generateBillResource/functions.js +++ b/web/rainmaker/dev-packages/egov-wns-dev/src/ui-config/screens/specs/wns/generateBillResource/functions.js @@ -27,7 +27,7 @@ export const generateBillApiCall = async (state, dispatch) => { // dispatch(toggleSnackbar(true, { labelName: "Please select the details", label: "choose the Value" }, "warning")); // } else { - + let batchtypechk = get(state.screenConfiguration.preparedFinalObject.generateBillScreen, "batchtype", {}); if (batchtypechk == "Locality") { // var mohallaDataCode = generateBillScreenObject["mohallaData"].substring( @@ -173,7 +173,7 @@ export const generateBillApiCall = async (state, dispatch) => { export const searchBillApiCall = async (state, dispatch) => { - + var transactionType; // showHideApplicationTable(false, dispatch); // showHideConnectionTable(false, dispatch); @@ -255,13 +255,13 @@ export const searchBillApiCall = async (state, dispatch) => { "billingcycleEnddate": billingcycleEnddate, "status": status, "tenantId": tenantId, - "billformDate" : billformDate, + "billformDate": billformDate, "billGenerationDate": billGenerationDate }; searchBillArray.push(billRow); }); //dispatch(prepareFinalObject("searchBillResponse", searchBillArray)); - const sortedSearchBillArray = searchBillArray.sort((a,b)=> b.billformDate - a.billformDate); + const sortedSearchBillArray = searchBillArray.sort((a, b) => b.billformDate - a.billformDate); dispatch(prepareFinalObject("createBillResponse", sortedSearchBillArray)); if (searchBillArray.length == 0) { @@ -298,7 +298,7 @@ export const searchBillApiCall = async (state, dispatch) => { try { let tenant_Id = getTenantIdCommon(); let response = null; - + let servicety; if (transactionType == "WS") { servicety = "Water"; @@ -324,7 +324,7 @@ export const searchBillApiCall = async (state, dispatch) => { let searchBillArray = []; let billRow = null; - let locality, billingcycleStartdate, billingcycleEnddate, status, tenantId, billformDate; + let locality, billingcycleStartdate, billingcycleEnddate, status, tenantId, billformDate, billGenerationDate; let recourdcount = response.billScheduler.length; response.billScheduler.map((element, index) => { transactionType = element.transactionType; @@ -334,6 +334,7 @@ export const searchBillApiCall = async (state, dispatch) => { billingcycleEnddate = convertEpochToDate(element.billingcycleEnddate); status = element.status; tenantId = element.tenantId; + billGenerationDate = element.auditDetails && element.auditDetails.lastModifiedTime ? convertEpochToDate(element.auditDetails.lastModifiedTime) : "NA"; billRow = { "transactionType": transactionType, "locality": locality, @@ -343,12 +344,13 @@ export const searchBillApiCall = async (state, dispatch) => { "tenantId": tenantId, "recordcount": recourdcount, "service": servicety, - "billformDate" : billformDate + "billformDate": billformDate, + "billGenerationDate": billGenerationDate }; searchBillArray.push(billRow); }); //dispatch(prepareFinalObject("searchBillResponse", searchBillArray)); - const sortedSearchBillArray = searchBillArray.sort((a,b)=> b.billformDate - a.billformDate); + const sortedSearchBillArray = searchBillArray.sort((a, b) => b.billformDate - a.billformDate); dispatch(prepareFinalObject("createBillResponse", sortedSearchBillArray)); if (searchBillArray.length == 0) { @@ -725,5 +727,4 @@ const showApplicationResults = (connections, dispatch) => { connections.length )); showHideApplicationTable(true, dispatch); -} - +} \ No newline at end of file