@mseva/digit-ui-module-sv 1.1.49-dev.1.6 → 1.1.49-dev.1.7

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.
@@ -12425,20 +12425,7 @@ const configTLApproverApplication = ({
12425
12425
  populators: {
12426
12426
  name: "comments"
12427
12427
  }
12428
- }, ...(checkCondtions ? [{
12429
- label: t("TL_FORWARD_NAME_LABEL"),
12430
- type: "text",
12431
- populators: {
12432
- name: "name",
12433
- placeholder: t("TL_FORWARD_NAME_PLACEHOLDER")
12434
- }
12435
12428
  }, {
12436
- label: t("TL_FORWARD_DATE_LABEL"),
12437
- type: "date",
12438
- populators: {
12439
- name: "date"
12440
- }
12441
- }] : []), {
12442
12429
  label: t("TL_APPROVAL_CHECKLIST_BUTTON_UP_FILE"),
12443
12430
  populators: /*#__PURE__*/React.createElement(UploadFile, {
12444
12431
  id: "workflow-doc",
@@ -13556,19 +13543,11 @@ const ActionModal$1 = ({
13556
13543
  })();
13557
13544
  }, [file]);
13558
13545
  function submit(data) {
13559
- var _applicationData;
13560
13546
  applicationData = {
13561
13547
  ...applicationData,
13562
13548
  action: action === null || action === void 0 ? void 0 : action.action,
13563
13549
  comment: data === null || data === void 0 ? void 0 : data.comments,
13564
13550
  assignee: !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? null : [selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid],
13565
- additionalDetails: {
13566
- ...(((_applicationData = applicationData) === null || _applicationData === void 0 ? void 0 : _applicationData.additionalDetails) || {}),
13567
- ...(data !== null && data !== void 0 && data.name || data !== null && data !== void 0 && data.date ? {
13568
- forwardedBy: (data === null || data === void 0 ? void 0 : data.name) || "",
13569
- forwardedDate: (data === null || data === void 0 ? void 0 : data.date) || ""
13570
- } : {})
13571
- },
13572
13551
  wfDocuments: uploadedFile ? [{
13573
13552
  documentType: (action === null || action === void 0 ? void 0 : action.action) + " DOC",
13574
13553
  fileName: file === null || file === void 0 ? void 0 : file.name,
@@ -20141,22 +20120,6 @@ function ApplicationDetailsContent({
20141
20120
  if (isWSModule) {
20142
20121
  return;
20143
20122
  }
20144
- if (moduleCode === "TL") {
20145
- const appNo = applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationNumber;
20146
- if (!appNo) return;
20147
- Digit.PaymentService.recieptSearch(tenantId, "TL", {
20148
- consumerCodes: appNo
20149
- }).then(response => {
20150
- var _response$Payments;
20151
- console.log("TL Payment History response:", response);
20152
- if ((response === null || response === void 0 ? void 0 : (_response$Payments = response.Payments) === null || _response$Payments === void 0 ? void 0 : _response$Payments.length) > 0) {
20153
- setPayments(response.Payments);
20154
- }
20155
- }).catch(error => {
20156
- console.error("TL Payment search error:", error);
20157
- });
20158
- return;
20159
- }
20160
20123
  if (!propertyId) {
20161
20124
  return;
20162
20125
  }
@@ -20185,7 +20148,7 @@ function ApplicationDetailsContent({
20185
20148
  } catch (error) {
20186
20149
  console.error("❌ Payment search error for PT/BPREG:", error);
20187
20150
  }
20188
- }, [moduleCode, propertyId, tenantId, applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationNumber]);
20151
+ }, [moduleCode, propertyId, tenantId]);
20189
20152
  return /*#__PURE__*/React.createElement(Card, {
20190
20153
  style: {
20191
20154
  position: "relative"
@@ -20520,7 +20483,7 @@ function ApplicationDetailsToast({
20520
20483
  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");
20521
20484
  break;
20522
20485
  default:
20523
- 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`);
20486
+ 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`);
20524
20487
  }
20525
20488
  return /*#__PURE__*/React.createElement(React.Fragment, null, showToast && /*#__PURE__*/React.createElement(Toast, {
20526
20489
  error: showToast.key === "error",