@mseva/upyog-ui-module-asset 1.1.44-dev.1.4 → 1.1.44-dev.1.6
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 +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +39 -2
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
package/dist/index.modern.js
CHANGED
|
@@ -8163,7 +8163,20 @@ const configTLApproverApplication = ({
|
|
|
8163
8163
|
populators: {
|
|
8164
8164
|
name: "comments"
|
|
8165
8165
|
}
|
|
8166
|
+
}, ...(checkCondtions ? [{
|
|
8167
|
+
label: t("TL_FORWARD_NAME_LABEL"),
|
|
8168
|
+
type: "text",
|
|
8169
|
+
populators: {
|
|
8170
|
+
name: "name",
|
|
8171
|
+
placeholder: t("TL_FORWARD_NAME_PLACEHOLDER")
|
|
8172
|
+
}
|
|
8166
8173
|
}, {
|
|
8174
|
+
label: t("TL_FORWARD_DATE_LABEL"),
|
|
8175
|
+
type: "date",
|
|
8176
|
+
populators: {
|
|
8177
|
+
name: "date"
|
|
8178
|
+
}
|
|
8179
|
+
}] : []), {
|
|
8167
8180
|
label: t("TL_APPROVAL_CHECKLIST_BUTTON_UP_FILE"),
|
|
8168
8181
|
populators: /*#__PURE__*/React.createElement(UploadFile, {
|
|
8169
8182
|
id: "workflow-doc",
|
|
@@ -9281,11 +9294,19 @@ const ActionModal$1 = ({
|
|
|
9281
9294
|
})();
|
|
9282
9295
|
}, [file]);
|
|
9283
9296
|
function submit(data) {
|
|
9297
|
+
var _applicationData;
|
|
9284
9298
|
applicationData = {
|
|
9285
9299
|
...applicationData,
|
|
9286
9300
|
action: action === null || action === void 0 ? void 0 : action.action,
|
|
9287
9301
|
comment: data === null || data === void 0 ? void 0 : data.comments,
|
|
9288
9302
|
assignee: !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? null : [selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid],
|
|
9303
|
+
additionalDetails: {
|
|
9304
|
+
...(((_applicationData = applicationData) === null || _applicationData === void 0 ? void 0 : _applicationData.additionalDetails) || {}),
|
|
9305
|
+
...(data !== null && data !== void 0 && data.name || data !== null && data !== void 0 && data.date ? {
|
|
9306
|
+
forwardedBy: (data === null || data === void 0 ? void 0 : data.name) || "",
|
|
9307
|
+
forwardedDate: (data === null || data === void 0 ? void 0 : data.date) || ""
|
|
9308
|
+
} : {})
|
|
9309
|
+
},
|
|
9289
9310
|
wfDocuments: uploadedFile ? [{
|
|
9290
9311
|
documentType: (action === null || action === void 0 ? void 0 : action.action) + " DOC",
|
|
9291
9312
|
fileName: file === null || file === void 0 ? void 0 : file.name,
|
|
@@ -15858,6 +15879,22 @@ function ApplicationDetailsContent({
|
|
|
15858
15879
|
if (isWSModule) {
|
|
15859
15880
|
return;
|
|
15860
15881
|
}
|
|
15882
|
+
if (moduleCode === "TL") {
|
|
15883
|
+
const appNo = applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationNumber;
|
|
15884
|
+
if (!appNo) return;
|
|
15885
|
+
Digit.PaymentService.recieptSearch(tenantId, "TL", {
|
|
15886
|
+
consumerCodes: appNo
|
|
15887
|
+
}).then(response => {
|
|
15888
|
+
var _response$Payments;
|
|
15889
|
+
console.log("TL Payment History response:", response);
|
|
15890
|
+
if ((response === null || response === void 0 ? void 0 : (_response$Payments = response.Payments) === null || _response$Payments === void 0 ? void 0 : _response$Payments.length) > 0) {
|
|
15891
|
+
setPayments(response.Payments);
|
|
15892
|
+
}
|
|
15893
|
+
}).catch(error => {
|
|
15894
|
+
console.error("TL Payment search error:", error);
|
|
15895
|
+
});
|
|
15896
|
+
return;
|
|
15897
|
+
}
|
|
15861
15898
|
if (!propertyId) {
|
|
15862
15899
|
return;
|
|
15863
15900
|
}
|
|
@@ -15886,7 +15923,7 @@ function ApplicationDetailsContent({
|
|
|
15886
15923
|
} catch (error) {
|
|
15887
15924
|
console.error("❌ Payment search error for PT/BPREG:", error);
|
|
15888
15925
|
}
|
|
15889
|
-
}, [moduleCode, propertyId, tenantId]);
|
|
15926
|
+
}, [moduleCode, propertyId, tenantId, applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationNumber]);
|
|
15890
15927
|
return /*#__PURE__*/React.createElement(Card, {
|
|
15891
15928
|
style: {
|
|
15892
15929
|
position: "relative"
|
|
@@ -16221,7 +16258,7 @@ function ApplicationDetailsToast({
|
|
|
16221
16258
|
label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$error7 = showToast.error) === null || _showToast$error7 === void 0 ? void 0 : _showToast$error7.message : t("TL_TL_CANCELLED_MESSAGE_HEAD");
|
|
16222
16259
|
break;
|
|
16223
16260
|
default:
|
|
16224
|
-
label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$error8 = showToast.error) === null || _showToast$error8 === void 0 ? void 0 : _showToast$error8.message : t(`ES_${businessService}_${showToast === null || showToast === void 0 ? void 0 : (_showToast$action2 = showToast.action) === null || _showToast$action2 === void 0 ? void 0 : _showToast$action2.action}_UPDATE_SUCCESS`);
|
|
16261
|
+
label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? (showToast === null || showToast === void 0 ? void 0 : (_showToast$error8 = showToast.error) === null || _showToast$error8 === void 0 ? void 0 : _showToast$error8.message) || (showToast === null || showToast === void 0 ? void 0 : showToast.label) : (showToast === null || showToast === void 0 ? void 0 : showToast.label) || t(`ES_${businessService}_${showToast === null || showToast === void 0 ? void 0 : (_showToast$action2 = showToast.action) === null || _showToast$action2 === void 0 ? void 0 : _showToast$action2.action}_UPDATE_SUCCESS`);
|
|
16225
16262
|
}
|
|
16226
16263
|
return /*#__PURE__*/React.createElement(React.Fragment, null, showToast && /*#__PURE__*/React.createElement(Toast, {
|
|
16227
16264
|
error: showToast.key === "error",
|