@mseva/digit-ui-module-rentandlease 1.0.8 → 1.0.10
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 +187 -72
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
package/dist/index.modern.js
CHANGED
|
@@ -6189,7 +6189,6 @@ const downloadAndPrintReciept = async (bussinessService, consumerCode, mode) =>
|
|
|
6189
6189
|
consumerCodes: consumerCode
|
|
6190
6190
|
});
|
|
6191
6191
|
const payments = data === null || data === void 0 ? void 0 : data.Payments[0];
|
|
6192
|
-
console.log("payments", payments);
|
|
6193
6192
|
let response = null;
|
|
6194
6193
|
if (payments !== null && payments !== void 0 && payments.fileStoreId) {
|
|
6195
6194
|
response = {
|
|
@@ -6220,6 +6219,90 @@ const pdfDownloadLink = (documents = {}, fileStoreId = "", format = "") => {
|
|
|
6220
6219
|
});
|
|
6221
6220
|
return fileURL;
|
|
6222
6221
|
};
|
|
6222
|
+
const capitalize = text => text.substr(0, 1).toUpperCase() + text.substr(1);
|
|
6223
|
+
const ulbCamel = ulb => ulb.toLowerCase().split(" ").map(capitalize).join(" ");
|
|
6224
|
+
const getAcknowledgementData = async (application, tenantInfo, t) => {
|
|
6225
|
+
var _application$OwnerInf, _application$addition, _application$addition2, _application$addition3, _application$addition4, _application$addition5, _application$addition6, _application$addition7, _application$addition8, _application$addition9, _application$Document, _application$addition0, _tenantInfo$city;
|
|
6226
|
+
console.log("application in getAcknowledgement", application);
|
|
6227
|
+
const details = [];
|
|
6228
|
+
application === null || application === void 0 ? void 0 : (_application$OwnerInf = application.OwnerInfo) === null || _application$OwnerInf === void 0 ? void 0 : _application$OwnerInf.forEach((owner, index) => {
|
|
6229
|
+
var _owner$permanentAddre, _owner$permanentAddre2, _owner$correspondence, _owner$correspondence2;
|
|
6230
|
+
details.push({
|
|
6231
|
+
title: `Owner ${index + 1} Details`,
|
|
6232
|
+
values: [{
|
|
6233
|
+
title: t("CORE_COMMON_NAME"),
|
|
6234
|
+
value: (owner === null || owner === void 0 ? void 0 : owner.name) || t("CS_NA")
|
|
6235
|
+
}, {
|
|
6236
|
+
title: t("CORE_COMMON_PROFILE_MOBILE_NUMBER"),
|
|
6237
|
+
value: (owner === null || owner === void 0 ? void 0 : owner.mobileNo) || t("CS_NA")
|
|
6238
|
+
}, {
|
|
6239
|
+
title: t("CORE_EMAIL_ID"),
|
|
6240
|
+
value: (owner === null || owner === void 0 ? void 0 : owner.emailId) || t("CS_NA")
|
|
6241
|
+
}, {
|
|
6242
|
+
title: t("Permanent Address"),
|
|
6243
|
+
value: `${(owner === null || owner === void 0 ? void 0 : (_owner$permanentAddre = owner.permanentAddress) === null || _owner$permanentAddre === void 0 ? void 0 : _owner$permanentAddre.addressId) || t("CS_NA")} , ${(owner === null || owner === void 0 ? void 0 : (_owner$permanentAddre2 = owner.permanentAddress) === null || _owner$permanentAddre2 === void 0 ? void 0 : _owner$permanentAddre2.pincode) || t("CS_NA")}`
|
|
6244
|
+
}, {
|
|
6245
|
+
title: t("Corresspondence Address"),
|
|
6246
|
+
value: `${(owner === null || owner === void 0 ? void 0 : (_owner$correspondence = owner.correspondenceAddress) === null || _owner$correspondence === void 0 ? void 0 : _owner$correspondence.addressId) || t("CS_NA")} , ${(owner === null || owner === void 0 ? void 0 : (_owner$correspondence2 = owner.correspondenceAddress) === null || _owner$correspondence2 === void 0 ? void 0 : _owner$correspondence2.pincode) || t("CS_NA")}`
|
|
6247
|
+
}]
|
|
6248
|
+
});
|
|
6249
|
+
});
|
|
6250
|
+
details.push({
|
|
6251
|
+
title: t("PT_PROPERTY_DETAILS"),
|
|
6252
|
+
values: [{
|
|
6253
|
+
title: t("PROPERTY_ID"),
|
|
6254
|
+
value: t(application === null || application === void 0 ? void 0 : (_application$addition = application.additionalDetails) === null || _application$addition === void 0 ? void 0 : _application$addition.propertyId) || "NA"
|
|
6255
|
+
}, {
|
|
6256
|
+
title: t("PT_ACK_LOCALIZATION_PROPERTY_ADDRESS"),
|
|
6257
|
+
value: (application === null || application === void 0 ? void 0 : (_application$addition2 = application.additionalDetails) === null || _application$addition2 === void 0 ? void 0 : _application$addition2.address) || "NA"
|
|
6258
|
+
}, {
|
|
6259
|
+
title: t("Allotment Type"),
|
|
6260
|
+
value: (application === null || application === void 0 ? void 0 : (_application$addition3 = application.additionalDetails) === null || _application$addition3 === void 0 ? void 0 : _application$addition3.allotmentType) || "NA"
|
|
6261
|
+
}, {
|
|
6262
|
+
title: t("Property Name"),
|
|
6263
|
+
value: (application === null || application === void 0 ? void 0 : (_application$addition4 = application.additionalDetails) === null || _application$addition4 === void 0 ? void 0 : _application$addition4.propertyName) || "NA"
|
|
6264
|
+
}, {
|
|
6265
|
+
title: t("Property Area"),
|
|
6266
|
+
value: `${(application === null || application === void 0 ? void 0 : (_application$addition5 = application.additionalDetails) === null || _application$addition5 === void 0 ? void 0 : _application$addition5.propertySizeOrArea) || "NA"} sq. meters`
|
|
6267
|
+
}, {
|
|
6268
|
+
title: t("PDF_STATIC_LABEL_WS_CONSOLIDATED_ACKNOWELDGMENT_PROPERTY_TYPE"),
|
|
6269
|
+
value: (application === null || application === void 0 ? void 0 : (_application$addition6 = application.additionalDetails) === null || _application$addition6 === void 0 ? void 0 : _application$addition6.propertyType) || "NA"
|
|
6270
|
+
}, {
|
|
6271
|
+
title: t("Location Type"),
|
|
6272
|
+
value: (application === null || application === void 0 ? void 0 : (_application$addition7 = application.additionalDetails) === null || _application$addition7 === void 0 ? void 0 : _application$addition7.locationType) || "NA"
|
|
6273
|
+
}, {
|
|
6274
|
+
title: t("Security Deposit"),
|
|
6275
|
+
value: `Rs. ${(application === null || application === void 0 ? void 0 : (_application$addition8 = application.additionalDetails) === null || _application$addition8 === void 0 ? void 0 : _application$addition8.securityDeposit) || "NA"}`
|
|
6276
|
+
}, {
|
|
6277
|
+
title: t("Base Rent"),
|
|
6278
|
+
value: `Rs. ${(application === null || application === void 0 ? void 0 : (_application$addition9 = application.additionalDetails) === null || _application$addition9 === void 0 ? void 0 : _application$addition9.baseRent) || "NA"}`
|
|
6279
|
+
}]
|
|
6280
|
+
});
|
|
6281
|
+
const docDetails = application === null || application === void 0 ? void 0 : (_application$Document = application.Document) === null || _application$Document === void 0 ? void 0 : _application$Document.map((doc, index) => ({
|
|
6282
|
+
title: t(`${doc.documentType}`) || "NA",
|
|
6283
|
+
value: " ",
|
|
6284
|
+
link: doc.fileStoreId ? Digit.Utils.getFileUrl(doc.fileStoreId) : ""
|
|
6285
|
+
}));
|
|
6286
|
+
details.push({
|
|
6287
|
+
title: t("BPA_APPLICATION_DOCUMENTS"),
|
|
6288
|
+
values: docDetails !== null && docDetails !== void 0 && docDetails.length ? docDetails : [{
|
|
6289
|
+
title: t("CS_NO_DOCUMENTS_UPLOADED"),
|
|
6290
|
+
value: "NA"
|
|
6291
|
+
}]
|
|
6292
|
+
});
|
|
6293
|
+
const imageURL = application === null || application === void 0 ? void 0 : (_application$addition0 = application.additionalDetails) === null || _application$addition0 === void 0 ? void 0 : _application$addition0.propertyImage;
|
|
6294
|
+
return {
|
|
6295
|
+
t: t,
|
|
6296
|
+
tenantId: tenantInfo === null || tenantInfo === void 0 ? void 0 : tenantInfo.code,
|
|
6297
|
+
name: `${t(tenantInfo === null || tenantInfo === void 0 ? void 0 : tenantInfo.i18nKey)} ${ulbCamel(t(`ULBGRADE_${tenantInfo === null || tenantInfo === void 0 ? void 0 : (_tenantInfo$city = tenantInfo.city) === null || _tenantInfo$city === void 0 ? void 0 : _tenantInfo$city.ulbGrade.toUpperCase().replace(" ", "_").replace(".", "_")}`))}`,
|
|
6298
|
+
email: tenantInfo === null || tenantInfo === void 0 ? void 0 : tenantInfo.emailId,
|
|
6299
|
+
phoneNumber: tenantInfo === null || tenantInfo === void 0 ? void 0 : tenantInfo.contactNumber,
|
|
6300
|
+
heading: t("Acknowledgment letter for Rent and Lease Services"),
|
|
6301
|
+
applicationNumber: (application === null || application === void 0 ? void 0 : application.applicationNumber) || "NA",
|
|
6302
|
+
details,
|
|
6303
|
+
imageURL
|
|
6304
|
+
};
|
|
6305
|
+
};
|
|
6223
6306
|
|
|
6224
6307
|
const configMCollectRejectApplication = ({
|
|
6225
6308
|
t,
|
|
@@ -9239,6 +9322,13 @@ const RALApplicationDetails = () => {
|
|
|
9239
9322
|
} = useParams();
|
|
9240
9323
|
const [loader, setLoader] = useState(false);
|
|
9241
9324
|
const [applicationData, setApplicationData] = useState();
|
|
9325
|
+
const [showOptions, setShowOptions] = useState(false);
|
|
9326
|
+
const {
|
|
9327
|
+
data: storeData
|
|
9328
|
+
} = Digit.Hooks.useStore.getInitData();
|
|
9329
|
+
const {
|
|
9330
|
+
tenants
|
|
9331
|
+
} = storeData || {};
|
|
9242
9332
|
console.log("applicationData", applicationData);
|
|
9243
9333
|
const fetchApplications = async filters => {
|
|
9244
9334
|
setLoader(true);
|
|
@@ -9248,14 +9338,86 @@ const RALApplicationDetails = () => {
|
|
|
9248
9338
|
tenantId,
|
|
9249
9339
|
filters
|
|
9250
9340
|
});
|
|
9251
|
-
console.log("search ", responseData);
|
|
9252
9341
|
setApplicationData(responseData === null || responseData === void 0 ? void 0 : (_responseData$Allotme = responseData.AllotmentDetails) === null || _responseData$Allotme === void 0 ? void 0 : _responseData$Allotme[0]);
|
|
9342
|
+
} catch (error) {} finally {
|
|
9343
|
+
setLoader(false);
|
|
9344
|
+
}
|
|
9345
|
+
};
|
|
9346
|
+
const {
|
|
9347
|
+
data: reciept_data,
|
|
9348
|
+
isLoading: recieptDataLoading
|
|
9349
|
+
} = Digit.Hooks.useRecieptSearch({
|
|
9350
|
+
tenantId: tenantId,
|
|
9351
|
+
businessService: "rl-services",
|
|
9352
|
+
consumerCodes: acknowledgementIds,
|
|
9353
|
+
isEmployee: false
|
|
9354
|
+
}, {
|
|
9355
|
+
enabled: acknowledgementIds ? true : false
|
|
9356
|
+
});
|
|
9357
|
+
const getAcknowledgement = async () => {
|
|
9358
|
+
setLoader(true);
|
|
9359
|
+
try {
|
|
9360
|
+
const applications = applicationData;
|
|
9361
|
+
const tenantInfo = tenants.find(tenant => tenant.code === tenantId);
|
|
9362
|
+
const acknowldgementDataAPI = await getAcknowledgementData({
|
|
9363
|
+
...applications
|
|
9364
|
+
}, tenantInfo, t);
|
|
9365
|
+
setTimeout(() => {
|
|
9366
|
+
Digit.Utils.pdf.generateFormatted(acknowldgementDataAPI);
|
|
9367
|
+
setLoader(false);
|
|
9368
|
+
}, 0);
|
|
9253
9369
|
} catch (error) {
|
|
9254
|
-
console.
|
|
9255
|
-
} finally {
|
|
9370
|
+
console.error("Error generating acknowledgement:", error);
|
|
9256
9371
|
setLoader(false);
|
|
9257
9372
|
}
|
|
9258
9373
|
};
|
|
9374
|
+
const dowloadOptions = [];
|
|
9375
|
+
dowloadOptions.push({
|
|
9376
|
+
label: t("CHB_DOWNLOAD_ACK_FORM"),
|
|
9377
|
+
onClick: () => getAcknowledgement()
|
|
9378
|
+
});
|
|
9379
|
+
async function getRecieptSearch({
|
|
9380
|
+
tenantId,
|
|
9381
|
+
payments,
|
|
9382
|
+
...params
|
|
9383
|
+
}) {
|
|
9384
|
+
setLoader(true);
|
|
9385
|
+
try {
|
|
9386
|
+
var _response;
|
|
9387
|
+
let response = null;
|
|
9388
|
+
if (payments !== null && payments !== void 0 && payments.fileStoreId) {
|
|
9389
|
+
response = {
|
|
9390
|
+
filestoreIds: [payments === null || payments === void 0 ? void 0 : payments.fileStoreId]
|
|
9391
|
+
};
|
|
9392
|
+
} else {
|
|
9393
|
+
response = await Digit.PaymentService.generatePdf(tenantId, {
|
|
9394
|
+
Payments: [{
|
|
9395
|
+
...payments
|
|
9396
|
+
}]
|
|
9397
|
+
}, "rentandlease-receipt");
|
|
9398
|
+
}
|
|
9399
|
+
const fileStore = await Digit.PaymentService.printReciept(tenantId, {
|
|
9400
|
+
fileStoreIds: response.filestoreIds[0]
|
|
9401
|
+
});
|
|
9402
|
+
window.open(fileStore[(_response = response) === null || _response === void 0 ? void 0 : _response.filestoreIds[0]], "_blank");
|
|
9403
|
+
setLoader(false);
|
|
9404
|
+
} catch (error) {
|
|
9405
|
+
console.error(error);
|
|
9406
|
+
setLoader(false);
|
|
9407
|
+
}
|
|
9408
|
+
}
|
|
9409
|
+
if (reciept_data && (reciept_data === null || reciept_data === void 0 ? void 0 : reciept_data.Payments.length) > 0 && !recieptDataLoading) {
|
|
9410
|
+
dowloadOptions.push({
|
|
9411
|
+
label: t("PTR_FEE_RECIEPT"),
|
|
9412
|
+
onClick: () => {
|
|
9413
|
+
var _reciept_data$Payment;
|
|
9414
|
+
return getRecieptSearch({
|
|
9415
|
+
tenantId: reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment = reciept_data.Payments[0]) === null || _reciept_data$Payment === void 0 ? void 0 : _reciept_data$Payment.tenantId,
|
|
9416
|
+
payments: reciept_data === null || reciept_data === void 0 ? void 0 : reciept_data.Payments[0]
|
|
9417
|
+
});
|
|
9418
|
+
}
|
|
9419
|
+
});
|
|
9420
|
+
}
|
|
9259
9421
|
useEffect(() => {
|
|
9260
9422
|
if (acknowledgementIds) {
|
|
9261
9423
|
const filters = {
|
|
@@ -9270,7 +9432,6 @@ const RALApplicationDetails = () => {
|
|
|
9270
9432
|
moduleCode: "RENT_N_LEASE_NEW",
|
|
9271
9433
|
role: "EMPLOYEE"
|
|
9272
9434
|
});
|
|
9273
|
-
console.log("workflowDetails", workflowDetails);
|
|
9274
9435
|
const propertyDetails = applicationData !== null && applicationData !== void 0 && applicationData.additionalDetails ? applicationData.additionalDetails : {};
|
|
9275
9436
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
9276
9437
|
className: "cardHeaderWithOptions",
|
|
@@ -9282,18 +9443,23 @@ const RALApplicationDetails = () => {
|
|
|
9282
9443
|
styles: {
|
|
9283
9444
|
fontSize: "32px"
|
|
9284
9445
|
}
|
|
9285
|
-
}, t("RENT_LEASE_APPLICATION_DETAILS"))
|
|
9446
|
+
}, t("RENT_LEASE_APPLICATION_DETAILS")), dowloadOptions && dowloadOptions.length > 0 && /*#__PURE__*/React.createElement(MultiLink, {
|
|
9447
|
+
className: "multilinkWrapper",
|
|
9448
|
+
onHeadClick: () => setShowOptions(!showOptions),
|
|
9449
|
+
displayOptions: showOptions,
|
|
9450
|
+
options: dowloadOptions
|
|
9451
|
+
})), /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
9286
9452
|
style: {
|
|
9287
9453
|
fontSize: "24px"
|
|
9288
9454
|
}
|
|
9289
9455
|
}, t("RENT_LEASE_OWNER_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, null, applicationData !== null && applicationData !== void 0 && (_applicationData$Owne = applicationData.OwnerInfo) !== null && _applicationData$Owne !== void 0 && _applicationData$Owne.length ? applicationData.OwnerInfo.map((owner, index) => {
|
|
9290
9456
|
var _owner$correspondence, _owner$permanentAddre;
|
|
9291
9457
|
const multipleOwners = applicationData.OwnerInfo.length > 1;
|
|
9292
|
-
const ownerLabelPrefix = multipleOwners ? `${t("
|
|
9458
|
+
const ownerLabelPrefix = multipleOwners ? `${t("RAL_OWNER")} ${index + 1}` : t("RAL_OWNER");
|
|
9293
9459
|
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
9294
9460
|
key: owner.ownerId || index
|
|
9295
9461
|
}, /*#__PURE__*/React.createElement(Row, {
|
|
9296
|
-
label: `${ownerLabelPrefix} ${t("
|
|
9462
|
+
label: `${ownerLabelPrefix} ${t("PT_OWNERSHIP_INFO_NAME")}`,
|
|
9297
9463
|
text: (owner === null || owner === void 0 ? void 0 : owner.name) || t("CS_NA")
|
|
9298
9464
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
9299
9465
|
label: `${ownerLabelPrefix} ${t("CORE_COMMON_PROFILE_EMAIL")}`,
|
|
@@ -9322,7 +9488,7 @@ const RALApplicationDetails = () => {
|
|
|
9322
9488
|
label: t("WS_PROPERTY_ADDRESS_LABEL"),
|
|
9323
9489
|
text: (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.address) || t("CS_NA")
|
|
9324
9490
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
9325
|
-
label: t("
|
|
9491
|
+
label: t("RAL_PROPERTY_AMOUNT"),
|
|
9326
9492
|
text: (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.baseRent) || t("CS_NA")
|
|
9327
9493
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
9328
9494
|
label: t("SECURITY_DEPOSIT"),
|
|
@@ -9331,7 +9497,7 @@ const RALApplicationDetails = () => {
|
|
|
9331
9497
|
label: t("PROPERTY_SIZE"),
|
|
9332
9498
|
text: (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.propertySizeOrArea) || t("CS_NA")
|
|
9333
9499
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
9334
|
-
label: t("
|
|
9500
|
+
label: t("RENT_LEASE_LOCATION_TYPE"),
|
|
9335
9501
|
text: (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.locationType) || t("CS_NA")
|
|
9336
9502
|
})), /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
9337
9503
|
style: {
|
|
@@ -10829,7 +10995,6 @@ const SearchApplication = ({
|
|
|
10829
10995
|
} = useForm({
|
|
10830
10996
|
defaultValues: searchParams
|
|
10831
10997
|
});
|
|
10832
|
-
console.log('searchFields', searchFields);
|
|
10833
10998
|
const mobileView = innerWidth <= 640;
|
|
10834
10999
|
const onSubmitInput = data => {
|
|
10835
11000
|
if (!data.mobileNumber) {
|
|
@@ -10962,8 +11127,6 @@ const DesktopInbox = ({
|
|
|
10962
11127
|
data,
|
|
10963
11128
|
useNewInboxAPI
|
|
10964
11129
|
} = props;
|
|
10965
|
-
console.log("data", data);
|
|
10966
|
-
console.log("props", props);
|
|
10967
11130
|
const {
|
|
10968
11131
|
t
|
|
10969
11132
|
} = useTranslation();
|
|
@@ -10974,8 +11137,6 @@ const DesktopInbox = ({
|
|
|
10974
11137
|
const [EmptyInboxComp, setEmptyInboxComp] = useState(() => {
|
|
10975
11138
|
var _Digit$ComponentRegis2;
|
|
10976
11139
|
const com = (_Digit$ComponentRegis2 = Digit.ComponentRegistryService) === null || _Digit$ComponentRegis2 === void 0 ? void 0 : _Digit$ComponentRegis2.getComponent(props.EmptyResultInboxComp);
|
|
10977
|
-
console.log("DesktopInbox - EmptyResultInboxComp prop:", props.EmptyResultInboxComp);
|
|
10978
|
-
console.log("DesktopInbox - Resolved Component:", com);
|
|
10979
11140
|
return com;
|
|
10980
11141
|
});
|
|
10981
11142
|
const GetCell = value => /*#__PURE__*/React.createElement("span", {
|
|
@@ -10990,7 +11151,6 @@ const DesktopInbox = ({
|
|
|
10990
11151
|
row
|
|
10991
11152
|
}) => {
|
|
10992
11153
|
var _row$original, _row$original$searchD, _row$original2, _row$original2$search, _row$original3, _row$original3$search;
|
|
10993
|
-
console.log("row", row);
|
|
10994
11154
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
|
|
10995
11155
|
className: "link"
|
|
10996
11156
|
}, /*#__PURE__*/React.createElement(Link, {
|
|
@@ -11528,7 +11688,6 @@ const Inbox = ({
|
|
|
11528
11688
|
refetchOnMount: "always"
|
|
11529
11689
|
}
|
|
11530
11690
|
});
|
|
11531
|
-
console.log("dataXXXXXX", data);
|
|
11532
11691
|
useEffect(() => {
|
|
11533
11692
|
var _data$challans2;
|
|
11534
11693
|
async function fetchBills() {
|
|
@@ -11799,8 +11958,6 @@ const RALModal = ({
|
|
|
11799
11958
|
const [selectedFinancialYear, setSelectedFinancialYear] = useState(null);
|
|
11800
11959
|
const [formErrors, setFormErrors] = useState({});
|
|
11801
11960
|
const allRolesNew = [...new Set(getEmployees === null || getEmployees === void 0 ? void 0 : getEmployees.flatMap(a => a.roles))];
|
|
11802
|
-
console.log("action123", action);
|
|
11803
|
-
console.log("allRolesNew", allRolesNew);
|
|
11804
11961
|
const {
|
|
11805
11962
|
data: approverData,
|
|
11806
11963
|
isLoading: PTALoading
|
|
@@ -11977,7 +12134,6 @@ const RALApplicationDetails$1 = () => {
|
|
|
11977
12134
|
const [error, setError] = useState(null);
|
|
11978
12135
|
const history = useHistory();
|
|
11979
12136
|
const [getWorkflowService, setWorkflowService] = useState([]);
|
|
11980
|
-
console.log("applicationData", applicationData);
|
|
11981
12137
|
const isCitizen = window.location.href.includes("citizen");
|
|
11982
12138
|
const fetchApplications = async filters => {
|
|
11983
12139
|
setLoader(true);
|
|
@@ -11987,7 +12143,6 @@ const RALApplicationDetails$1 = () => {
|
|
|
11987
12143
|
tenantId,
|
|
11988
12144
|
filters
|
|
11989
12145
|
});
|
|
11990
|
-
console.log("search ", responseData);
|
|
11991
12146
|
setApplicationData(responseData === null || responseData === void 0 ? void 0 : (_responseData$Allotme = responseData.AllotmentDetails) === null || _responseData$Allotme === void 0 ? void 0 : _responseData$Allotme[0]);
|
|
11992
12147
|
} catch (error) {
|
|
11993
12148
|
console.log("error", error);
|
|
@@ -12009,7 +12164,6 @@ const RALApplicationDetails$1 = () => {
|
|
|
12009
12164
|
moduleCode: "RENT_N_LEASE_NEW",
|
|
12010
12165
|
role: "EMPLOYEE"
|
|
12011
12166
|
});
|
|
12012
|
-
console.log("workflowDetails", workflowDetails);
|
|
12013
12167
|
const propertyDetails = applicationData !== null && applicationData !== void 0 && applicationData.additionalDetails ? applicationData.additionalDetails : {};
|
|
12014
12168
|
const showNextActions = nextActions => {
|
|
12015
12169
|
var _nextAction;
|
|
@@ -12068,6 +12222,7 @@ const RALApplicationDetails$1 = () => {
|
|
|
12068
12222
|
return (_e$roles2 = e.roles) === null || _e$roles2 === void 0 ? void 0 : _e$roles2.includes(role);
|
|
12069
12223
|
})) || !e.roles;
|
|
12070
12224
|
}));
|
|
12225
|
+
console.log('actions', actions);
|
|
12071
12226
|
const closeToast = () => {
|
|
12072
12227
|
setShowToast(null);
|
|
12073
12228
|
};
|
|
@@ -12081,14 +12236,11 @@ const RALApplicationDetails$1 = () => {
|
|
|
12081
12236
|
const payload = {
|
|
12082
12237
|
action: [action]
|
|
12083
12238
|
};
|
|
12084
|
-
console.log("action", action);
|
|
12085
12239
|
const filterNexState = (_ref = (action === null || action === void 0 ? void 0 : action.actions) ?? (action === null || action === void 0 ? void 0 : (_action$state = action.state) === null || _action$state === void 0 ? void 0 : _action$state.actions)) === null || _ref === void 0 ? void 0 : _ref.filter(item => item.action === (action === null || action === void 0 ? void 0 : action.action));
|
|
12086
|
-
console.log("filterNexState", filterNexState);
|
|
12087
12240
|
const filterRoles = getWorkflowService === null || getWorkflowService === void 0 ? void 0 : getWorkflowService.filter(item => {
|
|
12088
12241
|
var _filterNexState$;
|
|
12089
12242
|
return (item === null || item === void 0 ? void 0 : item.uuid) == ((_filterNexState$ = filterNexState[0]) === null || _filterNexState$ === void 0 ? void 0 : _filterNexState$.nextState);
|
|
12090
12243
|
});
|
|
12091
|
-
console.log("filterRoles", filterRoles);
|
|
12092
12244
|
setEmployees(filterRoles === null || filterRoles === void 0 ? void 0 : (_filterRoles$ = filterRoles[0]) === null || _filterRoles$ === void 0 ? void 0 : _filterRoles$.actions);
|
|
12093
12245
|
if ((action === null || action === void 0 ? void 0 : action.action) == "APPLY") {
|
|
12094
12246
|
submitAction(payload);
|
|
@@ -12121,7 +12273,6 @@ const RALApplicationDetails$1 = () => {
|
|
|
12121
12273
|
var _data$Licenses;
|
|
12122
12274
|
filtData = data === null || data === void 0 ? void 0 : (_data$Licenses = data.Licenses) === null || _data$Licenses === void 0 ? void 0 : _data$Licenses[0];
|
|
12123
12275
|
}
|
|
12124
|
-
console.log("filtData", filtData);
|
|
12125
12276
|
updatedApplicant.workflow = {
|
|
12126
12277
|
action: filtData.action,
|
|
12127
12278
|
assignes: filtData.action === "SENDBACKTOCITIZEN" ? [applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$audi = applicationData.auditDetails) === null || _applicationData$audi === void 0 ? void 0 : _applicationData$audi.createdBy] : (_filtData = filtData) === null || _filtData === void 0 ? void 0 : _filtData.assignee,
|
|
@@ -12190,11 +12341,11 @@ const RALApplicationDetails$1 = () => {
|
|
|
12190
12341
|
}, t("RENT_LEASE_OWNER_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, null, applicationData !== null && applicationData !== void 0 && (_applicationData$Owne = applicationData.OwnerInfo) !== null && _applicationData$Owne !== void 0 && _applicationData$Owne.length ? applicationData.OwnerInfo.map((owner, index) => {
|
|
12191
12342
|
var _owner$correspondence, _owner$permanentAddre;
|
|
12192
12343
|
const multipleOwners = applicationData.OwnerInfo.length > 1;
|
|
12193
|
-
const ownerLabelPrefix = multipleOwners ? `${t("
|
|
12344
|
+
const ownerLabelPrefix = multipleOwners ? `${t("RAL_OWNER")} ${index + 1}` : t("RAL_OWNER");
|
|
12194
12345
|
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
12195
12346
|
key: owner.ownerId || index
|
|
12196
12347
|
}, /*#__PURE__*/React.createElement(Row, {
|
|
12197
|
-
label: `${ownerLabelPrefix} ${t("
|
|
12348
|
+
label: `${ownerLabelPrefix} ${t("PT_OWNERSHIP_INFO_NAME")}`,
|
|
12198
12349
|
text: (owner === null || owner === void 0 ? void 0 : owner.name) || t("CS_NA")
|
|
12199
12350
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
12200
12351
|
label: `${ownerLabelPrefix} ${t("CORE_COMMON_PROFILE_EMAIL")}`,
|
|
@@ -12223,7 +12374,7 @@ const RALApplicationDetails$1 = () => {
|
|
|
12223
12374
|
label: t("WS_PROPERTY_ADDRESS_LABEL"),
|
|
12224
12375
|
text: (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.address) || t("CS_NA")
|
|
12225
12376
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
12226
|
-
label: t("
|
|
12377
|
+
label: t("RAL_PROPERTY_AMOUNT"),
|
|
12227
12378
|
text: (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.baseRent) || t("CS_NA")
|
|
12228
12379
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
12229
12380
|
label: t("SECURITY_DEPOSIT"),
|
|
@@ -12232,7 +12383,7 @@ const RALApplicationDetails$1 = () => {
|
|
|
12232
12383
|
label: t("PROPERTY_SIZE"),
|
|
12233
12384
|
text: (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.propertySizeOrArea) || t("CS_NA")
|
|
12234
12385
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
12235
|
-
label: t("
|
|
12386
|
+
label: t("RENT_LEASE_LOCATION_TYPE"),
|
|
12236
12387
|
text: (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.locationType) || t("CS_NA")
|
|
12237
12388
|
})), /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
12238
12389
|
style: {
|
|
@@ -12305,7 +12456,6 @@ const EmployeeApp = ({
|
|
|
12305
12456
|
t
|
|
12306
12457
|
} = useTranslation();
|
|
12307
12458
|
const location = useLocation();
|
|
12308
|
-
console.log("her here here here");
|
|
12309
12459
|
const inboxInitialState = {
|
|
12310
12460
|
searchParams: {
|
|
12311
12461
|
uuid: {
|
|
@@ -12605,7 +12755,6 @@ const NewChallan = ({
|
|
|
12605
12755
|
if (url.includes("modify-challan")) {
|
|
12606
12756
|
isEdit = true;
|
|
12607
12757
|
}
|
|
12608
|
-
console.log("here", ChallanData);
|
|
12609
12758
|
const [canSubmit, setSubmitValve] = useState(false);
|
|
12610
12759
|
const defaultValues = {};
|
|
12611
12760
|
const history = useHistory();
|
|
@@ -12631,7 +12780,6 @@ const NewChallan = ({
|
|
|
12631
12780
|
lastModTime
|
|
12632
12781
|
}) : {};
|
|
12633
12782
|
useEffect(() => {
|
|
12634
|
-
console.log("isEdit", isEdit, fetchBillData);
|
|
12635
12783
|
if (isEdit) {
|
|
12636
12784
|
let formdata = getformDataforEdit(ChallanData);
|
|
12637
12785
|
setdefaultUpdatedValue(true);
|
|
@@ -12983,7 +13131,6 @@ const SearchReceipt = () => {
|
|
|
12983
13131
|
var _data$businessService;
|
|
12984
13132
|
setIsLoading(true);
|
|
12985
13133
|
setHasSearched(true);
|
|
12986
|
-
console.log("data is here==========", data);
|
|
12987
13134
|
const businessService = data === null || data === void 0 ? void 0 : (_data$businessService = data.businessServices) === null || _data$businessService === void 0 ? void 0 : _data$businessService.code;
|
|
12988
13135
|
const filteredData = Object.entries(data).reduce((acc, [key, value]) => {
|
|
12989
13136
|
if (value !== null && value !== undefined && !(typeof value === "string" && value.trim() === "") && !(Array.isArray(value) && value.length === 0)) {
|
|
@@ -12993,19 +13140,16 @@ const SearchReceipt = () => {
|
|
|
12993
13140
|
}, {});
|
|
12994
13141
|
try {
|
|
12995
13142
|
const response = await Digit.ChallanGenerationService.recieptSearch(tenantId, businessService, filteredData);
|
|
12996
|
-
console.log("✅ recieptSearch response", response === null || response === void 0 ? void 0 : response.Payments);
|
|
12997
13143
|
setTableData(response === null || response === void 0 ? void 0 : response.Payments);
|
|
12998
13144
|
setIsLoading(false);
|
|
12999
13145
|
} catch (error) {
|
|
13000
13146
|
setIsLoading(false);
|
|
13001
|
-
console.log("error", error);
|
|
13002
13147
|
}
|
|
13003
13148
|
};
|
|
13004
13149
|
const closeToast = () => {
|
|
13005
13150
|
setShowToast(null);
|
|
13006
13151
|
};
|
|
13007
13152
|
const downloadPDF = async rowData => {
|
|
13008
|
-
console.log("generating pdf here==========");
|
|
13009
13153
|
setIsLoading(true);
|
|
13010
13154
|
try {
|
|
13011
13155
|
var _response$filestoreId;
|
|
@@ -13016,20 +13160,16 @@ const SearchReceipt = () => {
|
|
|
13016
13160
|
}, "consolidatedreceiptold");
|
|
13017
13161
|
setIsLoading(false);
|
|
13018
13162
|
fileFetch(response === null || response === void 0 ? void 0 : (_response$filestoreId = response.filestoreIds) === null || _response$filestoreId === void 0 ? void 0 : _response$filestoreId[0]);
|
|
13019
|
-
console.log("✅ generating pdf response", response);
|
|
13020
13163
|
} catch (error) {
|
|
13021
13164
|
setIsLoading(false);
|
|
13022
|
-
console.log("error", error);
|
|
13023
13165
|
}
|
|
13024
13166
|
};
|
|
13025
13167
|
const fileFetch = async fileStoreId => {
|
|
13026
13168
|
setIsLoading(true);
|
|
13027
|
-
console.log("fetching file here==========");
|
|
13028
13169
|
try {
|
|
13029
13170
|
var _response$fileStoreId, _response$fileStoreId2;
|
|
13030
13171
|
const response = await Digit.ChallanGenerationService.file_fetch(tenantId, fileStoreId);
|
|
13031
13172
|
setIsLoading(false);
|
|
13032
|
-
console.log("✅ fetching file response", response);
|
|
13033
13173
|
const fileUrl = (response === null || response === void 0 ? void 0 : response[fileStoreId]) || (response === null || response === void 0 ? void 0 : (_response$fileStoreId = response.fileStoreIds) === null || _response$fileStoreId === void 0 ? void 0 : (_response$fileStoreId2 = _response$fileStoreId[0]) === null || _response$fileStoreId2 === void 0 ? void 0 : _response$fileStoreId2.url);
|
|
13034
13174
|
if (fileUrl) {
|
|
13035
13175
|
window.open(fileUrl, "_blank");
|
|
@@ -13278,7 +13418,6 @@ const SearchReceipt = () => {
|
|
|
13278
13418
|
};
|
|
13279
13419
|
|
|
13280
13420
|
const SearchChallan$2 = props => {
|
|
13281
|
-
console.log("props", props);
|
|
13282
13421
|
const {
|
|
13283
13422
|
t
|
|
13284
13423
|
} = useTranslation();
|
|
@@ -13325,7 +13464,6 @@ const SearchChallan$2 = props => {
|
|
|
13325
13464
|
});
|
|
13326
13465
|
return;
|
|
13327
13466
|
}
|
|
13328
|
-
console.log("data is here==========", data);
|
|
13329
13467
|
setIsLoading(true);
|
|
13330
13468
|
const businessServiceData = data === null || data === void 0 ? void 0 : (_data$businessService = data.businessService) === null || _data$businessService === void 0 ? void 0 : _data$businessService.code;
|
|
13331
13469
|
const filters = Object.entries(data).reduce((acc, [key, value]) => {
|
|
@@ -13334,18 +13472,15 @@ const SearchChallan$2 = props => {
|
|
|
13334
13472
|
}
|
|
13335
13473
|
return acc;
|
|
13336
13474
|
}, {});
|
|
13337
|
-
console.log("filters", filters);
|
|
13338
13475
|
try {
|
|
13339
13476
|
const response = await Digit.ChallanGenerationService.search({
|
|
13340
13477
|
tenantId,
|
|
13341
13478
|
filters
|
|
13342
13479
|
});
|
|
13343
|
-
console.log("✅ recieptSearch response", response === null || response === void 0 ? void 0 : response.challans);
|
|
13344
13480
|
setTableData(response === null || response === void 0 ? void 0 : response.challans);
|
|
13345
13481
|
setIsLoading(false);
|
|
13346
13482
|
} catch (error) {
|
|
13347
13483
|
setIsLoading(false);
|
|
13348
|
-
console.log("error", error);
|
|
13349
13484
|
}
|
|
13350
13485
|
};
|
|
13351
13486
|
const closeToast = () => {
|
|
@@ -13599,7 +13734,6 @@ const SearchBill = () => {
|
|
|
13599
13734
|
var _data$businesService;
|
|
13600
13735
|
setIsLoading(true);
|
|
13601
13736
|
setHasSearched(true);
|
|
13602
|
-
console.log("data is here==========", data);
|
|
13603
13737
|
const businessServiceData = data === null || data === void 0 ? void 0 : (_data$businesService = data.businesService) === null || _data$businesService === void 0 ? void 0 : _data$businesService.code;
|
|
13604
13738
|
delete data["ULB"];
|
|
13605
13739
|
data["url"] = "egov-searcher/bill-genie/mcollectbills/_get";
|
|
@@ -13609,15 +13743,12 @@ const SearchBill = () => {
|
|
|
13609
13743
|
}
|
|
13610
13744
|
return acc;
|
|
13611
13745
|
}, {});
|
|
13612
|
-
console.log("filteredData", filteredData);
|
|
13613
13746
|
try {
|
|
13614
13747
|
const response = await Digit.ChallanGenerationService.search_bill(tenantId, filteredData);
|
|
13615
|
-
console.log("response", response === null || response === void 0 ? void 0 : response.Bills);
|
|
13616
13748
|
setTableData(response === null || response === void 0 ? void 0 : response.Bills);
|
|
13617
13749
|
setIsLoading(false);
|
|
13618
13750
|
} catch (error) {
|
|
13619
13751
|
setIsLoading(false);
|
|
13620
|
-
console.log("error", error);
|
|
13621
13752
|
}
|
|
13622
13753
|
};
|
|
13623
13754
|
const closeToast = () => {
|
|
@@ -14800,7 +14931,6 @@ const RentAndLeasePropertyDetails = ({
|
|
|
14800
14931
|
const {
|
|
14801
14932
|
data: mdmsPropertyData
|
|
14802
14933
|
} = Digit.Hooks.rentandlease.useRALPropertyMDMS(tenantId);
|
|
14803
|
-
console.log("mdmsPropertyData", mdmsPropertyData);
|
|
14804
14934
|
const {
|
|
14805
14935
|
triggerLoader
|
|
14806
14936
|
} = config === null || config === void 0 ? void 0 : config.currStepConfig[0];
|
|
@@ -14865,7 +14995,6 @@ const RentAndLeasePropertyDetails = ({
|
|
|
14865
14995
|
const selectedPropertySpecific = watch("propertySpecific");
|
|
14866
14996
|
const selectedLocationType = watch("locationType");
|
|
14867
14997
|
const [filteredProperties, setFilteredProperties] = useState([]);
|
|
14868
|
-
console.log("filteredProperties", filteredProperties);
|
|
14869
14998
|
useEffect(() => {
|
|
14870
14999
|
if (mdmsPropertyData) {
|
|
14871
15000
|
let properties = mdmsPropertyData;
|
|
@@ -15301,7 +15430,6 @@ const RentAndLeaseCitizenDetails = ({
|
|
|
15301
15430
|
code: "MULTIPLE",
|
|
15302
15431
|
name: t("RAL_MULTIPLE")
|
|
15303
15432
|
}];
|
|
15304
|
-
console.log("currentStepDataInSec", currentStepData);
|
|
15305
15433
|
const {
|
|
15306
15434
|
control,
|
|
15307
15435
|
handleSubmit,
|
|
@@ -15369,7 +15497,6 @@ const RentAndLeaseCitizenDetails = ({
|
|
|
15369
15497
|
};
|
|
15370
15498
|
const onSubmit = async data => {
|
|
15371
15499
|
var _currentStepData$Crea, _currentStepData$Crea2;
|
|
15372
|
-
console.log("dataInSubmit", data);
|
|
15373
15500
|
if (validateStep) {
|
|
15374
15501
|
var _Object$keys;
|
|
15375
15502
|
const validationErrors = validateStep(data);
|
|
@@ -15391,7 +15518,6 @@ const RentAndLeaseCitizenDetails = ({
|
|
|
15391
15518
|
goNext(data);
|
|
15392
15519
|
return;
|
|
15393
15520
|
}
|
|
15394
|
-
console.log('payload', payload);
|
|
15395
15521
|
triggerLoader(true);
|
|
15396
15522
|
try {
|
|
15397
15523
|
var _response$responseInf;
|
|
@@ -15400,7 +15526,6 @@ const RentAndLeaseCitizenDetails = ({
|
|
|
15400
15526
|
}, tenantId);
|
|
15401
15527
|
const status = response === null || response === void 0 ? void 0 : (_response$responseInf = response.responseInfo) === null || _response$responseInf === void 0 ? void 0 : _response$responseInf.status;
|
|
15402
15528
|
const isSuccess = typeof status === "string" && status.toLowerCase() === "successful";
|
|
15403
|
-
console.log("isSuccess", isSuccess);
|
|
15404
15529
|
if (isSuccess) {
|
|
15405
15530
|
const appData = Array.isArray(response === null || response === void 0 ? void 0 : response.allotment) ? response.allotment[0] : response === null || response === void 0 ? void 0 : response.allotment;
|
|
15406
15531
|
dispatch(UPDATE_RENTANDLEASE_NEW_APPLICATION_FORM("CreatedResponse", appData || response));
|
|
@@ -15438,7 +15563,6 @@ const RentAndLeaseCitizenDetails = ({
|
|
|
15438
15563
|
userType: "CITIZEN"
|
|
15439
15564
|
}, {});
|
|
15440
15565
|
const user = (userData === null || userData === void 0 ? void 0 : (_userData$user = userData.user) === null || _userData$user === void 0 ? void 0 : _userData$user[0]) || {};
|
|
15441
|
-
console.log("user", user);
|
|
15442
15566
|
setValue(`applicants.${index}.name`, user.name || "", {
|
|
15443
15567
|
shouldValidate: true
|
|
15444
15568
|
});
|
|
@@ -15500,7 +15624,6 @@ const RentAndLeaseCitizenDetails = ({
|
|
|
15500
15624
|
useEffect(() => {
|
|
15501
15625
|
var _currentStepData$appl, _currentStepData$appl2;
|
|
15502
15626
|
const applicantsData = (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$appl = currentStepData.applicantDetails) === null || _currentStepData$appl === void 0 ? void 0 : _currentStepData$appl.applicants) || [];
|
|
15503
|
-
console.log("applicantsData", applicantsData);
|
|
15504
15627
|
const ownershipTypeData = (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$appl2 = currentStepData.applicantDetails) === null || _currentStepData$appl2 === void 0 ? void 0 : _currentStepData$appl2.ownershipType) || "";
|
|
15505
15628
|
if (Array.isArray(applicantsData) && applicantsData.length > 0) {
|
|
15506
15629
|
reset({
|
|
@@ -15807,7 +15930,7 @@ const NewRentAndLeaseStepFormThree = ({
|
|
|
15807
15930
|
function goNext(finaldata) {
|
|
15808
15931
|
const missingFields = validation(finaldata);
|
|
15809
15932
|
if (missingFields.length > 0) {
|
|
15810
|
-
triggerToast(`${t(
|
|
15933
|
+
triggerToast(`${t(missingFields[0].replace(/\./g, "_").toUpperCase())} is required`, true);
|
|
15811
15934
|
return;
|
|
15812
15935
|
}
|
|
15813
15936
|
onGoNext();
|
|
@@ -15848,7 +15971,7 @@ const NewRentAndLeaseStepFormFour = ({
|
|
|
15848
15971
|
onBackClick,
|
|
15849
15972
|
t: tProp
|
|
15850
15973
|
}) => {
|
|
15851
|
-
var _currentStepData$Crea, _currentStepData$Crea2, _currentStepData$docu, _currentStepData$docu2,
|
|
15974
|
+
var _currentStepData$Crea, _currentStepData$Crea2, _currentStepData$docu, _currentStepData$docu2, _user$info, _user$info$roles, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5;
|
|
15852
15975
|
const dispatch = useDispatch();
|
|
15853
15976
|
const {
|
|
15854
15977
|
t: tHook
|
|
@@ -15864,11 +15987,9 @@ const NewRentAndLeaseStepFormFour = ({
|
|
|
15864
15987
|
return ((_state$rentAndLease = state.rentAndLease) === null || _state$rentAndLease === void 0 ? void 0 : (_state$rentAndLease$R = _state$rentAndLease.RentAndLeaseNewApplicationFormReducer) === null || _state$rentAndLease$R === void 0 ? void 0 : _state$rentAndLease$R.formData) || {};
|
|
15865
15988
|
});
|
|
15866
15989
|
const applicationNumber = currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Crea = currentStepData.CreatedResponse) === null || _currentStepData$Crea === void 0 ? void 0 : (_currentStepData$Crea2 = _currentStepData$Crea.AllotmentDetails) === null || _currentStepData$Crea2 === void 0 ? void 0 : _currentStepData$Crea2.applicationNumber;
|
|
15867
|
-
console.log("currentStepDataINFourth", currentStepData);
|
|
15868
15990
|
const updatedApplicantDetails = (currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.applicantDetails) || {};
|
|
15869
15991
|
const updatedPropertyDetails = (currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.propertyDetails) || {};
|
|
15870
15992
|
const updatedDocuments = (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$docu = currentStepData.documents) === null || _currentStepData$docu === void 0 ? void 0 : (_currentStepData$docu2 = _currentStepData$docu.documents) === null || _currentStepData$docu2 === void 0 ? void 0 : _currentStepData$docu2.documents) || [];
|
|
15871
|
-
console.log("updatedDocuments", updatedDocuments);
|
|
15872
15993
|
const onGoToRentAndLease = () => {
|
|
15873
15994
|
history.push(`/digit-ui/employee/rentandlease/inbox`);
|
|
15874
15995
|
};
|
|
@@ -15902,7 +16023,6 @@ const NewRentAndLeaseStepFormFour = ({
|
|
|
15902
16023
|
}
|
|
15903
16024
|
try {
|
|
15904
16025
|
const res = await onSubmit(currentStepData, selectedAction);
|
|
15905
|
-
console.log("res", res);
|
|
15906
16026
|
if (res !== null && res !== void 0 && res.isSuccess) {
|
|
15907
16027
|
var _res$response, _res$response$Allotme, _res$response$Allotme2, _res$response2, _res$response2$Allotm;
|
|
15908
16028
|
const action = res === null || res === void 0 ? void 0 : (_res$response = res.response) === null || _res$response === void 0 ? void 0 : (_res$response$Allotme = _res$response.AllotmentDetails) === null || _res$response$Allotme === void 0 ? void 0 : (_res$response$Allotme2 = _res$response$Allotme.workflow) === null || _res$response$Allotme2 === void 0 ? void 0 : _res$response$Allotme2.action;
|
|
@@ -15935,7 +16055,6 @@ const NewRentAndLeaseStepFormFour = ({
|
|
|
15935
16055
|
const {
|
|
15936
16056
|
CreatedResponse
|
|
15937
16057
|
} = data;
|
|
15938
|
-
console.log("CreatedResponse", CreatedResponse);
|
|
15939
16058
|
const {
|
|
15940
16059
|
workflow: existingWorkflow
|
|
15941
16060
|
} = CreatedResponse || {};
|
|
@@ -16037,7 +16156,6 @@ const NewRentAndLeaseStepFormFour = ({
|
|
|
16037
16156
|
const response = await Digit.RentAndLeaseService.update({
|
|
16038
16157
|
AllotmentDetails: formData
|
|
16039
16158
|
}, tenantId);
|
|
16040
|
-
console.log("Update Response", response);
|
|
16041
16159
|
if (response !== null && response !== void 0 && response.AllotmentDetails && (response === null || response === void 0 ? void 0 : response.AllotmentDetails.length) > 0) {
|
|
16042
16160
|
return {
|
|
16043
16161
|
isSuccess: true,
|
|
@@ -16068,13 +16186,11 @@ const NewRentAndLeaseStepFormFour = ({
|
|
|
16068
16186
|
};
|
|
16069
16187
|
Digit.Hooks.useClickOutside(menuRef, closeMenu, displayMenu);
|
|
16070
16188
|
const businessService = "RENT_N_LEASE_NEW";
|
|
16071
|
-
console.log(currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Crea3 = currentStepData.CreatedResponse) === null || _currentStepData$Crea3 === void 0 ? void 0 : (_currentStepData$Crea4 = _currentStepData$Crea3.AllotmentDetails) === null || _currentStepData$Crea4 === void 0 ? void 0 : _currentStepData$Crea4.applicationNumber, " currentStepData?.CreatedResponse?.AllotmentDetails?.applicationNumber");
|
|
16072
16189
|
const workflowDetails = Digit.Hooks.useWorkflowDetails({
|
|
16073
16190
|
tenantId,
|
|
16074
16191
|
id: applicationNumber,
|
|
16075
16192
|
moduleCode: businessService
|
|
16076
16193
|
});
|
|
16077
|
-
console.log("workflowDetails", workflowDetails);
|
|
16078
16194
|
const userRoles = user === null || user === void 0 ? void 0 : (_user$info = user.info) === null || _user$info === void 0 ? void 0 : (_user$info$roles = _user$info.roles) === null || _user$info$roles === void 0 ? void 0 : _user$info$roles.map(e => e.code);
|
|
16079
16195
|
let actions = (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : (_workflowDetails$data2 = _workflowDetails$data.actionState) === null || _workflowDetails$data2 === void 0 ? void 0 : (_workflowDetails$data3 = _workflowDetails$data2.nextActions) === null || _workflowDetails$data3 === void 0 ? void 0 : _workflowDetails$data3.filter(e => {
|
|
16080
16196
|
return (userRoles === null || userRoles === void 0 ? void 0 : userRoles.some(role => {
|
|
@@ -16090,7 +16206,6 @@ const NewRentAndLeaseStepFormFour = ({
|
|
|
16090
16206
|
function onActionSelect(action) {
|
|
16091
16207
|
goNext(action);
|
|
16092
16208
|
}
|
|
16093
|
-
console.log("actions", actions);
|
|
16094
16209
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FormComposer$1, {
|
|
16095
16210
|
defaultValues: currentStepData,
|
|
16096
16211
|
config: config.currStepConfig,
|
|
@@ -16133,7 +16248,6 @@ const RentAndLeaseSelectProofIdentity = ({
|
|
|
16133
16248
|
var _formData$documents;
|
|
16134
16249
|
const stateId = Digit.ULBService.getStateId();
|
|
16135
16250
|
const [formErrors, setFormErrors] = useState({});
|
|
16136
|
-
console.log("formErrors", formErrors);
|
|
16137
16251
|
const {
|
|
16138
16252
|
triggerToast
|
|
16139
16253
|
} = config;
|
|
@@ -16372,7 +16486,6 @@ function RentAndLeaseSummary({
|
|
|
16372
16486
|
});
|
|
16373
16487
|
const applicantDetails = Array.isArray(formData === null || formData === void 0 ? void 0 : (_formData$applicantDe = formData.applicantDetails) === null || _formData$applicantDe === void 0 ? void 0 : _formData$applicantDe.applicants) ? (_formData$applicantDe2 = formData.applicantDetails) === null || _formData$applicantDe2 === void 0 ? void 0 : _formData$applicantDe2.applicants : formData !== null && formData !== void 0 && (_formData$applicantDe3 = formData.applicantDetails) !== null && _formData$applicantDe3 !== void 0 && _formData$applicantDe3.applicants ? [(_formData$applicantDe4 = formData.applicantDetails) === null || _formData$applicantDe4 === void 0 ? void 0 : _formData$applicantDe4.applicants] : [];
|
|
16374
16488
|
const property = (formData === null || formData === void 0 ? void 0 : formData.propertyDetails) || {};
|
|
16375
|
-
console.log("property", property);
|
|
16376
16489
|
const docs = (formData === null || formData === void 0 ? void 0 : (_formData$documents = formData.documents) === null || _formData$documents === void 0 ? void 0 : (_formData$documents$d = _formData$documents.documents) === null || _formData$documents$d === void 0 ? void 0 : _formData$documents$d.documents) || [];
|
|
16377
16490
|
const sectionStyle = {
|
|
16378
16491
|
backgroundColor: "#ffffff",
|
|
@@ -16390,7 +16503,8 @@ function RentAndLeaseSummary({
|
|
|
16390
16503
|
};
|
|
16391
16504
|
const headingStyle = {
|
|
16392
16505
|
fontSize: "1.25rem",
|
|
16393
|
-
color: "#
|
|
16506
|
+
color: "#0d43a7",
|
|
16507
|
+
fontWeight: "500",
|
|
16394
16508
|
margin: 0
|
|
16395
16509
|
};
|
|
16396
16510
|
const labelFieldPairStyle = {
|
|
@@ -16416,6 +16530,7 @@ function RentAndLeaseSummary({
|
|
|
16416
16530
|
borderRadius: "6px"
|
|
16417
16531
|
};
|
|
16418
16532
|
const boldLabelStyle = {
|
|
16533
|
+
width: "100%",
|
|
16419
16534
|
fontWeight: "600",
|
|
16420
16535
|
color: "#333"
|
|
16421
16536
|
};
|
|
@@ -16427,7 +16542,7 @@ function RentAndLeaseSummary({
|
|
|
16427
16542
|
gap: "0.5rem",
|
|
16428
16543
|
alignItems: "center"
|
|
16429
16544
|
}
|
|
16430
|
-
}, /*#__PURE__*/React.createElement(
|
|
16545
|
+
}, /*#__PURE__*/React.createElement("h2", {
|
|
16431
16546
|
style: boldLabelStyle
|
|
16432
16547
|
}, label)), /*#__PURE__*/React.createElement("div", {
|
|
16433
16548
|
style: {
|