@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.modern.js
CHANGED
|
@@ -9872,7 +9872,7 @@ const WSCalculation = _ref => {
|
|
|
9872
9872
|
});
|
|
9873
9873
|
};
|
|
9874
9874
|
const RenderCalculationDetails = _ref2 => {
|
|
9875
|
-
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;
|
|
9875
|
+
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;
|
|
9876
9876
|
let data = _ref2.data;
|
|
9877
9877
|
if (!data) return null;
|
|
9878
9878
|
const calc = (_data$Calculation = data.Calculation) === null || _data$Calculation === void 0 ? void 0 : _data$Calculation[0];
|
|
@@ -10095,9 +10095,33 @@ const WSCalculation = _ref => {
|
|
|
10095
10095
|
className: "ws-calc-row"
|
|
10096
10096
|
}, /*#__PURE__*/React.createElement("span", {
|
|
10097
10097
|
className: "ws-calc-row-label"
|
|
10098
|
-
}, t("
|
|
10098
|
+
}, t("WS_COLONY_REBATE"), " (", infraDetail.rebatePercentage || 0, "%)"), /*#__PURE__*/React.createElement("span", {
|
|
10099
10099
|
className: "ws-calc-row-value-red"
|
|
10100
|
-
}, "- \u20B9 ", ((_infraDetail$rebateAm = infraDetail.rebateAmount) === null || _infraDetail$rebateAm === void 0 ? void 0 : _infraDetail$rebateAm.toLocaleString("en-IN")) || 0)), /*#__PURE__*/React.createElement("div", {
|
|
10100
|
+
}, "- \u20B9 ", ((_infraDetail$rebateAm = infraDetail.rebateAmount) === null || _infraDetail$rebateAm === void 0 ? void 0 : _infraDetail$rebateAm.toLocaleString("en-IN")) || 0)), infraDetail.institutionalRebateApplied && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
10101
|
+
className: "ws-calc-row"
|
|
10102
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
10103
|
+
className: "ws-calc-row-label"
|
|
10104
|
+
}, t("WS_INSTITUTIONAL_REBATE"), " (", infraDetail.institutionalRebatePercentage || 0, "%)"), /*#__PURE__*/React.createElement("span", {
|
|
10105
|
+
className: "ws-calc-row-value-red"
|
|
10106
|
+
}, "- \u20B9 ", ((_infraDetail$institut = infraDetail.institutionalRebateAmount) === null || _infraDetail$institut === void 0 ? void 0 : _infraDetail$institut.toLocaleString("en-IN")) || 0)), /*#__PURE__*/React.createElement("div", {
|
|
10107
|
+
className: "ws-calc-row"
|
|
10108
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
10109
|
+
className: "ws-calc-row-label"
|
|
10110
|
+
}, t("WS_INSTITUTIONAL_REBATE_REASON")), /*#__PURE__*/React.createElement("span", {
|
|
10111
|
+
className: "ws-calc-row-value"
|
|
10112
|
+
}, t(infraDetail.institutionalRebateReason) || "-"))), infraDetail.dwellingRebateApplied && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
10113
|
+
className: "ws-calc-row"
|
|
10114
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
10115
|
+
className: "ws-calc-row-label"
|
|
10116
|
+
}, t("WS_DWELLING_REBATE"), " (", infraDetail.dwellingRebatePercentage || 0, "%)"), /*#__PURE__*/React.createElement("span", {
|
|
10117
|
+
className: "ws-calc-row-value-red"
|
|
10118
|
+
}, "- \u20B9 ", ((_infraDetail$dwelling = infraDetail.dwellingRebateAmount) === null || _infraDetail$dwelling === void 0 ? void 0 : _infraDetail$dwelling.toLocaleString("en-IN")) || 0)), /*#__PURE__*/React.createElement("div", {
|
|
10119
|
+
className: "ws-calc-row"
|
|
10120
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
10121
|
+
className: "ws-calc-row-label"
|
|
10122
|
+
}, t("WS_DWELLING_REBATE_REASON")), /*#__PURE__*/React.createElement("span", {
|
|
10123
|
+
className: "ws-calc-row-value"
|
|
10124
|
+
}, t(infraDetail.dwellingRebateReason) || "-"))), /*#__PURE__*/React.createElement("div", {
|
|
10101
10125
|
className: "ws-calc-highlight-green"
|
|
10102
10126
|
}, /*#__PURE__*/React.createElement("span", {
|
|
10103
10127
|
className: "ws-calc-highlight-green-label"
|
|
@@ -44463,7 +44487,7 @@ const DueVerification = _ref => {
|
|
|
44463
44487
|
});
|
|
44464
44488
|
}, [applicationData]);
|
|
44465
44489
|
const isPendingApproval = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_FIELD_INSPECTION";
|
|
44466
|
-
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);
|
|
44490
|
+
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);
|
|
44467
44491
|
const columns = useMemo(() => {
|
|
44468
44492
|
const baseColumns = [{
|
|
44469
44493
|
Header: t("K No."),
|
|
@@ -44668,7 +44692,7 @@ const InspectionInformation = _ref => {
|
|
|
44668
44692
|
if (!applicationData.inspectionInformation) applicationData.inspectionInformation = {};
|
|
44669
44693
|
applicationData.inspectionInformation.inspectorName = val;
|
|
44670
44694
|
};
|
|
44671
|
-
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);
|
|
44695
|
+
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);
|
|
44672
44696
|
return /*#__PURE__*/React.createElement("div", {
|
|
44673
44697
|
style: {
|
|
44674
44698
|
marginBottom: "20px"
|
|
@@ -46059,26 +46083,24 @@ const ApplicationDetails$1 = () => {
|
|
|
46059
46083
|
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);
|
|
46060
46084
|
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) {
|
|
46061
46085
|
workflowDetails.data.actionState.nextActions = workflowDetails.data.actionState.nextActions.filter(action => {
|
|
46062
|
-
if (action.action
|
|
46063
|
-
return
|
|
46086
|
+
if (action.action === "VERIFY_AND_FORWARD_TO_AE") {
|
|
46087
|
+
return plotArea > 200;
|
|
46064
46088
|
}
|
|
46065
|
-
if (
|
|
46066
|
-
return
|
|
46089
|
+
if (action.action === "VERIFY_AND_FORWARD_TO_ASO") {
|
|
46090
|
+
return plotArea <= 200;
|
|
46067
46091
|
}
|
|
46068
|
-
return
|
|
46092
|
+
return true;
|
|
46069
46093
|
});
|
|
46070
46094
|
}
|
|
46071
46095
|
if (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data3 = workflowDetails.data) !== null && _workflowDetails$data3 !== void 0 && _workflowDetails$data3.nextActions) {
|
|
46072
46096
|
workflowDetails.data.nextActions = workflowDetails.data.nextActions.filter(action => {
|
|
46073
|
-
|
|
46074
|
-
|
|
46075
|
-
return true;
|
|
46097
|
+
if (action.action === "VERIFY_AND_FORWARD_TO_AE") {
|
|
46098
|
+
return plotArea > 200;
|
|
46076
46099
|
}
|
|
46077
|
-
|
|
46078
|
-
|
|
46079
|
-
return targetStateCode === "PENDING_FOR_AE_APPROVAL";
|
|
46100
|
+
if (action.action === "VERIFY_AND_FORWARD_TO_ASO") {
|
|
46101
|
+
return plotArea <= 200;
|
|
46080
46102
|
}
|
|
46081
|
-
return
|
|
46103
|
+
return true;
|
|
46082
46104
|
});
|
|
46083
46105
|
}
|
|
46084
46106
|
}
|