@djb25/digit-ui-module-ws 1.0.57 → 1.0.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +39 -17
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +39 -17
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9875,7 +9875,7 @@ const WSCalculation = _ref => {
|
|
|
9875
9875
|
});
|
|
9876
9876
|
};
|
|
9877
9877
|
const RenderCalculationDetails = _ref2 => {
|
|
9878
|
-
var _data$Calculation, _calc$calculationDeta, _calc$calculationDeta2, _calc$calculationDeta3, _waterDemandDetail$co, _waterDemandDetail$co2, _waterDemandDetail$co3, _waterDemandDetail$co4, _waterDemandDetail$co5, _waterDemandDetail$co6, _waterDemandDetail$co7, _waterDemandDetail$co8, _waterDemandDetail$co9, _waterDemandDetail$co0, _waterDemandDetail$co1, _waterDemandDetail$co10, _waterDemandDetail$co11, _waterDemandDetail$co12, _waterDemandDetail$co13, _waterDemandDetail$co14, _waterDemandDetail$co15, _waterDemandDetail$co16, _infraDetail$waterCom, _infraDetail$sewerCom, _infraDetail$grossIFC, _infraDetail$rebateAm, _infraDetail$netIFC;
|
|
9878
|
+
var _data$Calculation, _calc$calculationDeta, _calc$calculationDeta2, _calc$calculationDeta3, _waterDemandDetail$co, _waterDemandDetail$co2, _waterDemandDetail$co3, _waterDemandDetail$co4, _waterDemandDetail$co5, _waterDemandDetail$co6, _waterDemandDetail$co7, _waterDemandDetail$co8, _waterDemandDetail$co9, _waterDemandDetail$co0, _waterDemandDetail$co1, _waterDemandDetail$co10, _waterDemandDetail$co11, _waterDemandDetail$co12, _waterDemandDetail$co13, _waterDemandDetail$co14, _waterDemandDetail$co15, _waterDemandDetail$co16, _infraDetail$waterCom, _infraDetail$sewerCom, _infraDetail$grossIFC, _infraDetail$rebateAm, _infraDetail$institut, _infraDetail$dwelling, _infraDetail$netIFC;
|
|
9879
9879
|
let data = _ref2.data;
|
|
9880
9880
|
if (!data) return null;
|
|
9881
9881
|
const calc = (_data$Calculation = data.Calculation) === null || _data$Calculation === void 0 ? void 0 : _data$Calculation[0];
|
|
@@ -10098,9 +10098,33 @@ const WSCalculation = _ref => {
|
|
|
10098
10098
|
className: "ws-calc-row"
|
|
10099
10099
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
10100
10100
|
className: "ws-calc-row-label"
|
|
10101
|
-
}, t("
|
|
10101
|
+
}, t("WS_COLONY_REBATE"), " (", infraDetail.rebatePercentage || 0, "%)"), /*#__PURE__*/React__default.createElement("span", {
|
|
10102
10102
|
className: "ws-calc-row-value-red"
|
|
10103
|
-
}, "- \u20B9 ", ((_infraDetail$rebateAm = infraDetail.rebateAmount) === null || _infraDetail$rebateAm === void 0 ? void 0 : _infraDetail$rebateAm.toLocaleString("en-IN")) || 0)), /*#__PURE__*/React__default.createElement("div", {
|
|
10103
|
+
}, "- \u20B9 ", ((_infraDetail$rebateAm = infraDetail.rebateAmount) === null || _infraDetail$rebateAm === void 0 ? void 0 : _infraDetail$rebateAm.toLocaleString("en-IN")) || 0)), infraDetail.institutionalRebateApplied && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
10104
|
+
className: "ws-calc-row"
|
|
10105
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
10106
|
+
className: "ws-calc-row-label"
|
|
10107
|
+
}, t("WS_INSTITUTIONAL_REBATE"), " (", infraDetail.institutionalRebatePercentage || 0, "%)"), /*#__PURE__*/React__default.createElement("span", {
|
|
10108
|
+
className: "ws-calc-row-value-red"
|
|
10109
|
+
}, "- \u20B9 ", ((_infraDetail$institut = infraDetail.institutionalRebateAmount) === null || _infraDetail$institut === void 0 ? void 0 : _infraDetail$institut.toLocaleString("en-IN")) || 0)), /*#__PURE__*/React__default.createElement("div", {
|
|
10110
|
+
className: "ws-calc-row"
|
|
10111
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
10112
|
+
className: "ws-calc-row-label"
|
|
10113
|
+
}, t("WS_INSTITUTIONAL_REBATE_REASON")), /*#__PURE__*/React__default.createElement("span", {
|
|
10114
|
+
className: "ws-calc-row-value"
|
|
10115
|
+
}, t(infraDetail.institutionalRebateReason) || "-"))), infraDetail.dwellingRebateApplied && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
10116
|
+
className: "ws-calc-row"
|
|
10117
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
10118
|
+
className: "ws-calc-row-label"
|
|
10119
|
+
}, t("WS_DWELLING_REBATE"), " (", infraDetail.dwellingRebatePercentage || 0, "%)"), /*#__PURE__*/React__default.createElement("span", {
|
|
10120
|
+
className: "ws-calc-row-value-red"
|
|
10121
|
+
}, "- \u20B9 ", ((_infraDetail$dwelling = infraDetail.dwellingRebateAmount) === null || _infraDetail$dwelling === void 0 ? void 0 : _infraDetail$dwelling.toLocaleString("en-IN")) || 0)), /*#__PURE__*/React__default.createElement("div", {
|
|
10122
|
+
className: "ws-calc-row"
|
|
10123
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
10124
|
+
className: "ws-calc-row-label"
|
|
10125
|
+
}, t("WS_DWELLING_REBATE_REASON")), /*#__PURE__*/React__default.createElement("span", {
|
|
10126
|
+
className: "ws-calc-row-value"
|
|
10127
|
+
}, t(infraDetail.dwellingRebateReason) || "-"))), /*#__PURE__*/React__default.createElement("div", {
|
|
10104
10128
|
className: "ws-calc-highlight-green"
|
|
10105
10129
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
10106
10130
|
className: "ws-calc-highlight-green-label"
|
|
@@ -44466,7 +44490,7 @@ const DueVerification = _ref => {
|
|
|
44466
44490
|
});
|
|
44467
44491
|
}, [applicationData]);
|
|
44468
44492
|
const isPendingApproval = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_FIELD_INSPECTION";
|
|
44469
|
-
const isActivation = ["PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT", "PENDING_FOR_CONNECTION_ACTIVATION"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus);
|
|
44493
|
+
const isActivation = ["PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT", "PENDING_FOR_CONNECTION_ACTIVATION", "CONNECTION_ACTIVATED"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus);
|
|
44470
44494
|
const columns = React.useMemo(() => {
|
|
44471
44495
|
const baseColumns = [{
|
|
44472
44496
|
Header: t("K No."),
|
|
@@ -44671,7 +44695,7 @@ const InspectionInformation = _ref => {
|
|
|
44671
44695
|
if (!applicationData.inspectionInformation) applicationData.inspectionInformation = {};
|
|
44672
44696
|
applicationData.inspectionInformation.inspectorName = val;
|
|
44673
44697
|
};
|
|
44674
|
-
const readOnly = ["PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT", "PENDING_FOR_CONNECTION_ACTIVATION"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus);
|
|
44698
|
+
const readOnly = ["PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT", "PENDING_FOR_CONNECTION_ACTIVATION", "CONNECTION_ACTIVATED"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus);
|
|
44675
44699
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
44676
44700
|
style: {
|
|
44677
44701
|
marginBottom: "20px"
|
|
@@ -46062,26 +46086,24 @@ const ApplicationDetails$1 = () => {
|
|
|
46062
46086
|
const plotArea = Number((_applicationDetails$p0 = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p1 = applicationDetails.propertyDetails) === null || _applicationDetails$p1 === void 0 ? void 0 : (_applicationDetails$p10 = _applicationDetails$p1.additionalDetails) === null || _applicationDetails$p10 === void 0 ? void 0 : _applicationDetails$p10.plotArea) != null ? _applicationDetails$p0 : 0);
|
|
46063
46087
|
if (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data = workflowDetails.data) !== null && _workflowDetails$data !== void 0 && (_workflowDetails$data2 = _workflowDetails$data.actionState) !== null && _workflowDetails$data2 !== void 0 && _workflowDetails$data2.nextActions) {
|
|
46064
46088
|
workflowDetails.data.actionState.nextActions = workflowDetails.data.actionState.nextActions.filter(action => {
|
|
46065
|
-
if (action.action
|
|
46066
|
-
return
|
|
46089
|
+
if (action.action === "VERIFY_AND_FORWARD_TO_AE") {
|
|
46090
|
+
return plotArea > 200;
|
|
46067
46091
|
}
|
|
46068
|
-
if (
|
|
46069
|
-
return
|
|
46092
|
+
if (action.action === "VERIFY_AND_FORWARD_TO_ASO") {
|
|
46093
|
+
return plotArea <= 200;
|
|
46070
46094
|
}
|
|
46071
|
-
return
|
|
46095
|
+
return true;
|
|
46072
46096
|
});
|
|
46073
46097
|
}
|
|
46074
46098
|
if (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data3 = workflowDetails.data) !== null && _workflowDetails$data3 !== void 0 && _workflowDetails$data3.nextActions) {
|
|
46075
46099
|
workflowDetails.data.nextActions = workflowDetails.data.nextActions.filter(action => {
|
|
46076
|
-
|
|
46077
|
-
|
|
46078
|
-
return true;
|
|
46100
|
+
if (action.action === "VERIFY_AND_FORWARD_TO_AE") {
|
|
46101
|
+
return plotArea > 200;
|
|
46079
46102
|
}
|
|
46080
|
-
|
|
46081
|
-
|
|
46082
|
-
return targetStateCode === "PENDING_FOR_AE_APPROVAL";
|
|
46103
|
+
if (action.action === "VERIFY_AND_FORWARD_TO_ASO") {
|
|
46104
|
+
return plotArea <= 200;
|
|
46083
46105
|
}
|
|
46084
|
-
return
|
|
46106
|
+
return true;
|
|
46085
46107
|
});
|
|
46086
46108
|
}
|
|
46087
46109
|
}
|