@mseva/digit-ui-module-rentandlease 1.0.10 → 1.0.11
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.map +1 -1
- package/dist/index.modern.js +72 -187
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
package/dist/index.modern.js
CHANGED
|
@@ -6189,6 +6189,7 @@ 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);
|
|
6192
6193
|
let response = null;
|
|
6193
6194
|
if (payments !== null && payments !== void 0 && payments.fileStoreId) {
|
|
6194
6195
|
response = {
|
|
@@ -6219,90 +6220,6 @@ const pdfDownloadLink = (documents = {}, fileStoreId = "", format = "") => {
|
|
|
6219
6220
|
});
|
|
6220
6221
|
return fileURL;
|
|
6221
6222
|
};
|
|
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
|
-
};
|
|
6306
6223
|
|
|
6307
6224
|
const configMCollectRejectApplication = ({
|
|
6308
6225
|
t,
|
|
@@ -9322,13 +9239,6 @@ const RALApplicationDetails = () => {
|
|
|
9322
9239
|
} = useParams();
|
|
9323
9240
|
const [loader, setLoader] = useState(false);
|
|
9324
9241
|
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 || {};
|
|
9332
9242
|
console.log("applicationData", applicationData);
|
|
9333
9243
|
const fetchApplications = async filters => {
|
|
9334
9244
|
setLoader(true);
|
|
@@ -9338,86 +9248,14 @@ const RALApplicationDetails = () => {
|
|
|
9338
9248
|
tenantId,
|
|
9339
9249
|
filters
|
|
9340
9250
|
});
|
|
9251
|
+
console.log("search ", responseData);
|
|
9341
9252
|
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);
|
|
9369
9253
|
} catch (error) {
|
|
9370
|
-
console.
|
|
9254
|
+
console.log("error", error);
|
|
9255
|
+
} finally {
|
|
9371
9256
|
setLoader(false);
|
|
9372
9257
|
}
|
|
9373
9258
|
};
|
|
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
|
-
}
|
|
9421
9259
|
useEffect(() => {
|
|
9422
9260
|
if (acknowledgementIds) {
|
|
9423
9261
|
const filters = {
|
|
@@ -9432,6 +9270,7 @@ const RALApplicationDetails = () => {
|
|
|
9432
9270
|
moduleCode: "RENT_N_LEASE_NEW",
|
|
9433
9271
|
role: "EMPLOYEE"
|
|
9434
9272
|
});
|
|
9273
|
+
console.log("workflowDetails", workflowDetails);
|
|
9435
9274
|
const propertyDetails = applicationData !== null && applicationData !== void 0 && applicationData.additionalDetails ? applicationData.additionalDetails : {};
|
|
9436
9275
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
9437
9276
|
className: "cardHeaderWithOptions",
|
|
@@ -9443,23 +9282,18 @@ const RALApplicationDetails = () => {
|
|
|
9443
9282
|
styles: {
|
|
9444
9283
|
fontSize: "32px"
|
|
9445
9284
|
}
|
|
9446
|
-
}, t("RENT_LEASE_APPLICATION_DETAILS")),
|
|
9447
|
-
className: "multilinkWrapper",
|
|
9448
|
-
onHeadClick: () => setShowOptions(!showOptions),
|
|
9449
|
-
displayOptions: showOptions,
|
|
9450
|
-
options: dowloadOptions
|
|
9451
|
-
})), /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
9285
|
+
}, t("RENT_LEASE_APPLICATION_DETAILS"))), /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
9452
9286
|
style: {
|
|
9453
9287
|
fontSize: "24px"
|
|
9454
9288
|
}
|
|
9455
9289
|
}, 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) => {
|
|
9456
9290
|
var _owner$correspondence, _owner$permanentAddre;
|
|
9457
9291
|
const multipleOwners = applicationData.OwnerInfo.length > 1;
|
|
9458
|
-
const ownerLabelPrefix = multipleOwners ? `${t("
|
|
9292
|
+
const ownerLabelPrefix = multipleOwners ? `${t("OWNER")} ${index + 1}` : t("OWNER");
|
|
9459
9293
|
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
9460
9294
|
key: owner.ownerId || index
|
|
9461
9295
|
}, /*#__PURE__*/React.createElement(Row, {
|
|
9462
|
-
label: `${ownerLabelPrefix} ${t("
|
|
9296
|
+
label: `${ownerLabelPrefix} ${t("ADS_APPLICANT_NAME")}`,
|
|
9463
9297
|
text: (owner === null || owner === void 0 ? void 0 : owner.name) || t("CS_NA")
|
|
9464
9298
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
9465
9299
|
label: `${ownerLabelPrefix} ${t("CORE_COMMON_PROFILE_EMAIL")}`,
|
|
@@ -9488,7 +9322,7 @@ const RALApplicationDetails = () => {
|
|
|
9488
9322
|
label: t("WS_PROPERTY_ADDRESS_LABEL"),
|
|
9489
9323
|
text: (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.address) || t("CS_NA")
|
|
9490
9324
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
9491
|
-
label: t("
|
|
9325
|
+
label: t("BASE_RENT"),
|
|
9492
9326
|
text: (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.baseRent) || t("CS_NA")
|
|
9493
9327
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
9494
9328
|
label: t("SECURITY_DEPOSIT"),
|
|
@@ -9497,7 +9331,7 @@ const RALApplicationDetails = () => {
|
|
|
9497
9331
|
label: t("PROPERTY_SIZE"),
|
|
9498
9332
|
text: (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.propertySizeOrArea) || t("CS_NA")
|
|
9499
9333
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
9500
|
-
label: t("
|
|
9334
|
+
label: t("LOCATION_TYPE"),
|
|
9501
9335
|
text: (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.locationType) || t("CS_NA")
|
|
9502
9336
|
})), /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
9503
9337
|
style: {
|
|
@@ -10995,6 +10829,7 @@ const SearchApplication = ({
|
|
|
10995
10829
|
} = useForm({
|
|
10996
10830
|
defaultValues: searchParams
|
|
10997
10831
|
});
|
|
10832
|
+
console.log('searchFields', searchFields);
|
|
10998
10833
|
const mobileView = innerWidth <= 640;
|
|
10999
10834
|
const onSubmitInput = data => {
|
|
11000
10835
|
if (!data.mobileNumber) {
|
|
@@ -11127,6 +10962,8 @@ const DesktopInbox = ({
|
|
|
11127
10962
|
data,
|
|
11128
10963
|
useNewInboxAPI
|
|
11129
10964
|
} = props;
|
|
10965
|
+
console.log("data", data);
|
|
10966
|
+
console.log("props", props);
|
|
11130
10967
|
const {
|
|
11131
10968
|
t
|
|
11132
10969
|
} = useTranslation();
|
|
@@ -11137,6 +10974,8 @@ const DesktopInbox = ({
|
|
|
11137
10974
|
const [EmptyInboxComp, setEmptyInboxComp] = useState(() => {
|
|
11138
10975
|
var _Digit$ComponentRegis2;
|
|
11139
10976
|
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);
|
|
11140
10979
|
return com;
|
|
11141
10980
|
});
|
|
11142
10981
|
const GetCell = value => /*#__PURE__*/React.createElement("span", {
|
|
@@ -11151,6 +10990,7 @@ const DesktopInbox = ({
|
|
|
11151
10990
|
row
|
|
11152
10991
|
}) => {
|
|
11153
10992
|
var _row$original, _row$original$searchD, _row$original2, _row$original2$search, _row$original3, _row$original3$search;
|
|
10993
|
+
console.log("row", row);
|
|
11154
10994
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
|
|
11155
10995
|
className: "link"
|
|
11156
10996
|
}, /*#__PURE__*/React.createElement(Link, {
|
|
@@ -11688,6 +11528,7 @@ const Inbox = ({
|
|
|
11688
11528
|
refetchOnMount: "always"
|
|
11689
11529
|
}
|
|
11690
11530
|
});
|
|
11531
|
+
console.log("dataXXXXXX", data);
|
|
11691
11532
|
useEffect(() => {
|
|
11692
11533
|
var _data$challans2;
|
|
11693
11534
|
async function fetchBills() {
|
|
@@ -11958,6 +11799,8 @@ const RALModal = ({
|
|
|
11958
11799
|
const [selectedFinancialYear, setSelectedFinancialYear] = useState(null);
|
|
11959
11800
|
const [formErrors, setFormErrors] = useState({});
|
|
11960
11801
|
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);
|
|
11961
11804
|
const {
|
|
11962
11805
|
data: approverData,
|
|
11963
11806
|
isLoading: PTALoading
|
|
@@ -12134,6 +11977,7 @@ const RALApplicationDetails$1 = () => {
|
|
|
12134
11977
|
const [error, setError] = useState(null);
|
|
12135
11978
|
const history = useHistory();
|
|
12136
11979
|
const [getWorkflowService, setWorkflowService] = useState([]);
|
|
11980
|
+
console.log("applicationData", applicationData);
|
|
12137
11981
|
const isCitizen = window.location.href.includes("citizen");
|
|
12138
11982
|
const fetchApplications = async filters => {
|
|
12139
11983
|
setLoader(true);
|
|
@@ -12143,6 +11987,7 @@ const RALApplicationDetails$1 = () => {
|
|
|
12143
11987
|
tenantId,
|
|
12144
11988
|
filters
|
|
12145
11989
|
});
|
|
11990
|
+
console.log("search ", responseData);
|
|
12146
11991
|
setApplicationData(responseData === null || responseData === void 0 ? void 0 : (_responseData$Allotme = responseData.AllotmentDetails) === null || _responseData$Allotme === void 0 ? void 0 : _responseData$Allotme[0]);
|
|
12147
11992
|
} catch (error) {
|
|
12148
11993
|
console.log("error", error);
|
|
@@ -12164,6 +12009,7 @@ const RALApplicationDetails$1 = () => {
|
|
|
12164
12009
|
moduleCode: "RENT_N_LEASE_NEW",
|
|
12165
12010
|
role: "EMPLOYEE"
|
|
12166
12011
|
});
|
|
12012
|
+
console.log("workflowDetails", workflowDetails);
|
|
12167
12013
|
const propertyDetails = applicationData !== null && applicationData !== void 0 && applicationData.additionalDetails ? applicationData.additionalDetails : {};
|
|
12168
12014
|
const showNextActions = nextActions => {
|
|
12169
12015
|
var _nextAction;
|
|
@@ -12222,7 +12068,6 @@ const RALApplicationDetails$1 = () => {
|
|
|
12222
12068
|
return (_e$roles2 = e.roles) === null || _e$roles2 === void 0 ? void 0 : _e$roles2.includes(role);
|
|
12223
12069
|
})) || !e.roles;
|
|
12224
12070
|
}));
|
|
12225
|
-
console.log('actions', actions);
|
|
12226
12071
|
const closeToast = () => {
|
|
12227
12072
|
setShowToast(null);
|
|
12228
12073
|
};
|
|
@@ -12236,11 +12081,14 @@ const RALApplicationDetails$1 = () => {
|
|
|
12236
12081
|
const payload = {
|
|
12237
12082
|
action: [action]
|
|
12238
12083
|
};
|
|
12084
|
+
console.log("action", action);
|
|
12239
12085
|
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);
|
|
12240
12087
|
const filterRoles = getWorkflowService === null || getWorkflowService === void 0 ? void 0 : getWorkflowService.filter(item => {
|
|
12241
12088
|
var _filterNexState$;
|
|
12242
12089
|
return (item === null || item === void 0 ? void 0 : item.uuid) == ((_filterNexState$ = filterNexState[0]) === null || _filterNexState$ === void 0 ? void 0 : _filterNexState$.nextState);
|
|
12243
12090
|
});
|
|
12091
|
+
console.log("filterRoles", filterRoles);
|
|
12244
12092
|
setEmployees(filterRoles === null || filterRoles === void 0 ? void 0 : (_filterRoles$ = filterRoles[0]) === null || _filterRoles$ === void 0 ? void 0 : _filterRoles$.actions);
|
|
12245
12093
|
if ((action === null || action === void 0 ? void 0 : action.action) == "APPLY") {
|
|
12246
12094
|
submitAction(payload);
|
|
@@ -12273,6 +12121,7 @@ const RALApplicationDetails$1 = () => {
|
|
|
12273
12121
|
var _data$Licenses;
|
|
12274
12122
|
filtData = data === null || data === void 0 ? void 0 : (_data$Licenses = data.Licenses) === null || _data$Licenses === void 0 ? void 0 : _data$Licenses[0];
|
|
12275
12123
|
}
|
|
12124
|
+
console.log("filtData", filtData);
|
|
12276
12125
|
updatedApplicant.workflow = {
|
|
12277
12126
|
action: filtData.action,
|
|
12278
12127
|
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,
|
|
@@ -12341,11 +12190,11 @@ const RALApplicationDetails$1 = () => {
|
|
|
12341
12190
|
}, 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) => {
|
|
12342
12191
|
var _owner$correspondence, _owner$permanentAddre;
|
|
12343
12192
|
const multipleOwners = applicationData.OwnerInfo.length > 1;
|
|
12344
|
-
const ownerLabelPrefix = multipleOwners ? `${t("
|
|
12193
|
+
const ownerLabelPrefix = multipleOwners ? `${t("OWNER")} ${index + 1}` : t("OWNER");
|
|
12345
12194
|
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
12346
12195
|
key: owner.ownerId || index
|
|
12347
12196
|
}, /*#__PURE__*/React.createElement(Row, {
|
|
12348
|
-
label: `${ownerLabelPrefix} ${t("
|
|
12197
|
+
label: `${ownerLabelPrefix} ${t("ADS_APPLICANT_NAME")}`,
|
|
12349
12198
|
text: (owner === null || owner === void 0 ? void 0 : owner.name) || t("CS_NA")
|
|
12350
12199
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
12351
12200
|
label: `${ownerLabelPrefix} ${t("CORE_COMMON_PROFILE_EMAIL")}`,
|
|
@@ -12374,7 +12223,7 @@ const RALApplicationDetails$1 = () => {
|
|
|
12374
12223
|
label: t("WS_PROPERTY_ADDRESS_LABEL"),
|
|
12375
12224
|
text: (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.address) || t("CS_NA")
|
|
12376
12225
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
12377
|
-
label: t("
|
|
12226
|
+
label: t("BASE_RENT"),
|
|
12378
12227
|
text: (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.baseRent) || t("CS_NA")
|
|
12379
12228
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
12380
12229
|
label: t("SECURITY_DEPOSIT"),
|
|
@@ -12383,7 +12232,7 @@ const RALApplicationDetails$1 = () => {
|
|
|
12383
12232
|
label: t("PROPERTY_SIZE"),
|
|
12384
12233
|
text: (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.propertySizeOrArea) || t("CS_NA")
|
|
12385
12234
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
12386
|
-
label: t("
|
|
12235
|
+
label: t("LOCATION_TYPE"),
|
|
12387
12236
|
text: (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.locationType) || t("CS_NA")
|
|
12388
12237
|
})), /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
12389
12238
|
style: {
|
|
@@ -12456,6 +12305,7 @@ const EmployeeApp = ({
|
|
|
12456
12305
|
t
|
|
12457
12306
|
} = useTranslation();
|
|
12458
12307
|
const location = useLocation();
|
|
12308
|
+
console.log("her here here here");
|
|
12459
12309
|
const inboxInitialState = {
|
|
12460
12310
|
searchParams: {
|
|
12461
12311
|
uuid: {
|
|
@@ -12755,6 +12605,7 @@ const NewChallan = ({
|
|
|
12755
12605
|
if (url.includes("modify-challan")) {
|
|
12756
12606
|
isEdit = true;
|
|
12757
12607
|
}
|
|
12608
|
+
console.log("here", ChallanData);
|
|
12758
12609
|
const [canSubmit, setSubmitValve] = useState(false);
|
|
12759
12610
|
const defaultValues = {};
|
|
12760
12611
|
const history = useHistory();
|
|
@@ -12780,6 +12631,7 @@ const NewChallan = ({
|
|
|
12780
12631
|
lastModTime
|
|
12781
12632
|
}) : {};
|
|
12782
12633
|
useEffect(() => {
|
|
12634
|
+
console.log("isEdit", isEdit, fetchBillData);
|
|
12783
12635
|
if (isEdit) {
|
|
12784
12636
|
let formdata = getformDataforEdit(ChallanData);
|
|
12785
12637
|
setdefaultUpdatedValue(true);
|
|
@@ -13131,6 +12983,7 @@ const SearchReceipt = () => {
|
|
|
13131
12983
|
var _data$businessService;
|
|
13132
12984
|
setIsLoading(true);
|
|
13133
12985
|
setHasSearched(true);
|
|
12986
|
+
console.log("data is here==========", data);
|
|
13134
12987
|
const businessService = data === null || data === void 0 ? void 0 : (_data$businessService = data.businessServices) === null || _data$businessService === void 0 ? void 0 : _data$businessService.code;
|
|
13135
12988
|
const filteredData = Object.entries(data).reduce((acc, [key, value]) => {
|
|
13136
12989
|
if (value !== null && value !== undefined && !(typeof value === "string" && value.trim() === "") && !(Array.isArray(value) && value.length === 0)) {
|
|
@@ -13140,16 +12993,19 @@ const SearchReceipt = () => {
|
|
|
13140
12993
|
}, {});
|
|
13141
12994
|
try {
|
|
13142
12995
|
const response = await Digit.ChallanGenerationService.recieptSearch(tenantId, businessService, filteredData);
|
|
12996
|
+
console.log("✅ recieptSearch response", response === null || response === void 0 ? void 0 : response.Payments);
|
|
13143
12997
|
setTableData(response === null || response === void 0 ? void 0 : response.Payments);
|
|
13144
12998
|
setIsLoading(false);
|
|
13145
12999
|
} catch (error) {
|
|
13146
13000
|
setIsLoading(false);
|
|
13001
|
+
console.log("error", error);
|
|
13147
13002
|
}
|
|
13148
13003
|
};
|
|
13149
13004
|
const closeToast = () => {
|
|
13150
13005
|
setShowToast(null);
|
|
13151
13006
|
};
|
|
13152
13007
|
const downloadPDF = async rowData => {
|
|
13008
|
+
console.log("generating pdf here==========");
|
|
13153
13009
|
setIsLoading(true);
|
|
13154
13010
|
try {
|
|
13155
13011
|
var _response$filestoreId;
|
|
@@ -13160,16 +13016,20 @@ const SearchReceipt = () => {
|
|
|
13160
13016
|
}, "consolidatedreceiptold");
|
|
13161
13017
|
setIsLoading(false);
|
|
13162
13018
|
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);
|
|
13163
13020
|
} catch (error) {
|
|
13164
13021
|
setIsLoading(false);
|
|
13022
|
+
console.log("error", error);
|
|
13165
13023
|
}
|
|
13166
13024
|
};
|
|
13167
13025
|
const fileFetch = async fileStoreId => {
|
|
13168
13026
|
setIsLoading(true);
|
|
13027
|
+
console.log("fetching file here==========");
|
|
13169
13028
|
try {
|
|
13170
13029
|
var _response$fileStoreId, _response$fileStoreId2;
|
|
13171
13030
|
const response = await Digit.ChallanGenerationService.file_fetch(tenantId, fileStoreId);
|
|
13172
13031
|
setIsLoading(false);
|
|
13032
|
+
console.log("✅ fetching file response", response);
|
|
13173
13033
|
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);
|
|
13174
13034
|
if (fileUrl) {
|
|
13175
13035
|
window.open(fileUrl, "_blank");
|
|
@@ -13418,6 +13278,7 @@ const SearchReceipt = () => {
|
|
|
13418
13278
|
};
|
|
13419
13279
|
|
|
13420
13280
|
const SearchChallan$2 = props => {
|
|
13281
|
+
console.log("props", props);
|
|
13421
13282
|
const {
|
|
13422
13283
|
t
|
|
13423
13284
|
} = useTranslation();
|
|
@@ -13464,6 +13325,7 @@ const SearchChallan$2 = props => {
|
|
|
13464
13325
|
});
|
|
13465
13326
|
return;
|
|
13466
13327
|
}
|
|
13328
|
+
console.log("data is here==========", data);
|
|
13467
13329
|
setIsLoading(true);
|
|
13468
13330
|
const businessServiceData = data === null || data === void 0 ? void 0 : (_data$businessService = data.businessService) === null || _data$businessService === void 0 ? void 0 : _data$businessService.code;
|
|
13469
13331
|
const filters = Object.entries(data).reduce((acc, [key, value]) => {
|
|
@@ -13472,15 +13334,18 @@ const SearchChallan$2 = props => {
|
|
|
13472
13334
|
}
|
|
13473
13335
|
return acc;
|
|
13474
13336
|
}, {});
|
|
13337
|
+
console.log("filters", filters);
|
|
13475
13338
|
try {
|
|
13476
13339
|
const response = await Digit.ChallanGenerationService.search({
|
|
13477
13340
|
tenantId,
|
|
13478
13341
|
filters
|
|
13479
13342
|
});
|
|
13343
|
+
console.log("✅ recieptSearch response", response === null || response === void 0 ? void 0 : response.challans);
|
|
13480
13344
|
setTableData(response === null || response === void 0 ? void 0 : response.challans);
|
|
13481
13345
|
setIsLoading(false);
|
|
13482
13346
|
} catch (error) {
|
|
13483
13347
|
setIsLoading(false);
|
|
13348
|
+
console.log("error", error);
|
|
13484
13349
|
}
|
|
13485
13350
|
};
|
|
13486
13351
|
const closeToast = () => {
|
|
@@ -13734,6 +13599,7 @@ const SearchBill = () => {
|
|
|
13734
13599
|
var _data$businesService;
|
|
13735
13600
|
setIsLoading(true);
|
|
13736
13601
|
setHasSearched(true);
|
|
13602
|
+
console.log("data is here==========", data);
|
|
13737
13603
|
const businessServiceData = data === null || data === void 0 ? void 0 : (_data$businesService = data.businesService) === null || _data$businesService === void 0 ? void 0 : _data$businesService.code;
|
|
13738
13604
|
delete data["ULB"];
|
|
13739
13605
|
data["url"] = "egov-searcher/bill-genie/mcollectbills/_get";
|
|
@@ -13743,12 +13609,15 @@ const SearchBill = () => {
|
|
|
13743
13609
|
}
|
|
13744
13610
|
return acc;
|
|
13745
13611
|
}, {});
|
|
13612
|
+
console.log("filteredData", filteredData);
|
|
13746
13613
|
try {
|
|
13747
13614
|
const response = await Digit.ChallanGenerationService.search_bill(tenantId, filteredData);
|
|
13615
|
+
console.log("response", response === null || response === void 0 ? void 0 : response.Bills);
|
|
13748
13616
|
setTableData(response === null || response === void 0 ? void 0 : response.Bills);
|
|
13749
13617
|
setIsLoading(false);
|
|
13750
13618
|
} catch (error) {
|
|
13751
13619
|
setIsLoading(false);
|
|
13620
|
+
console.log("error", error);
|
|
13752
13621
|
}
|
|
13753
13622
|
};
|
|
13754
13623
|
const closeToast = () => {
|
|
@@ -14931,6 +14800,7 @@ const RentAndLeasePropertyDetails = ({
|
|
|
14931
14800
|
const {
|
|
14932
14801
|
data: mdmsPropertyData
|
|
14933
14802
|
} = Digit.Hooks.rentandlease.useRALPropertyMDMS(tenantId);
|
|
14803
|
+
console.log("mdmsPropertyData", mdmsPropertyData);
|
|
14934
14804
|
const {
|
|
14935
14805
|
triggerLoader
|
|
14936
14806
|
} = config === null || config === void 0 ? void 0 : config.currStepConfig[0];
|
|
@@ -14995,6 +14865,7 @@ const RentAndLeasePropertyDetails = ({
|
|
|
14995
14865
|
const selectedPropertySpecific = watch("propertySpecific");
|
|
14996
14866
|
const selectedLocationType = watch("locationType");
|
|
14997
14867
|
const [filteredProperties, setFilteredProperties] = useState([]);
|
|
14868
|
+
console.log("filteredProperties", filteredProperties);
|
|
14998
14869
|
useEffect(() => {
|
|
14999
14870
|
if (mdmsPropertyData) {
|
|
15000
14871
|
let properties = mdmsPropertyData;
|
|
@@ -15430,6 +15301,7 @@ const RentAndLeaseCitizenDetails = ({
|
|
|
15430
15301
|
code: "MULTIPLE",
|
|
15431
15302
|
name: t("RAL_MULTIPLE")
|
|
15432
15303
|
}];
|
|
15304
|
+
console.log("currentStepDataInSec", currentStepData);
|
|
15433
15305
|
const {
|
|
15434
15306
|
control,
|
|
15435
15307
|
handleSubmit,
|
|
@@ -15497,6 +15369,7 @@ const RentAndLeaseCitizenDetails = ({
|
|
|
15497
15369
|
};
|
|
15498
15370
|
const onSubmit = async data => {
|
|
15499
15371
|
var _currentStepData$Crea, _currentStepData$Crea2;
|
|
15372
|
+
console.log("dataInSubmit", data);
|
|
15500
15373
|
if (validateStep) {
|
|
15501
15374
|
var _Object$keys;
|
|
15502
15375
|
const validationErrors = validateStep(data);
|
|
@@ -15518,6 +15391,7 @@ const RentAndLeaseCitizenDetails = ({
|
|
|
15518
15391
|
goNext(data);
|
|
15519
15392
|
return;
|
|
15520
15393
|
}
|
|
15394
|
+
console.log('payload', payload);
|
|
15521
15395
|
triggerLoader(true);
|
|
15522
15396
|
try {
|
|
15523
15397
|
var _response$responseInf;
|
|
@@ -15526,6 +15400,7 @@ const RentAndLeaseCitizenDetails = ({
|
|
|
15526
15400
|
}, tenantId);
|
|
15527
15401
|
const status = response === null || response === void 0 ? void 0 : (_response$responseInf = response.responseInfo) === null || _response$responseInf === void 0 ? void 0 : _response$responseInf.status;
|
|
15528
15402
|
const isSuccess = typeof status === "string" && status.toLowerCase() === "successful";
|
|
15403
|
+
console.log("isSuccess", isSuccess);
|
|
15529
15404
|
if (isSuccess) {
|
|
15530
15405
|
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;
|
|
15531
15406
|
dispatch(UPDATE_RENTANDLEASE_NEW_APPLICATION_FORM("CreatedResponse", appData || response));
|
|
@@ -15563,6 +15438,7 @@ const RentAndLeaseCitizenDetails = ({
|
|
|
15563
15438
|
userType: "CITIZEN"
|
|
15564
15439
|
}, {});
|
|
15565
15440
|
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);
|
|
15566
15442
|
setValue(`applicants.${index}.name`, user.name || "", {
|
|
15567
15443
|
shouldValidate: true
|
|
15568
15444
|
});
|
|
@@ -15624,6 +15500,7 @@ const RentAndLeaseCitizenDetails = ({
|
|
|
15624
15500
|
useEffect(() => {
|
|
15625
15501
|
var _currentStepData$appl, _currentStepData$appl2;
|
|
15626
15502
|
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);
|
|
15627
15504
|
const ownershipTypeData = (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$appl2 = currentStepData.applicantDetails) === null || _currentStepData$appl2 === void 0 ? void 0 : _currentStepData$appl2.ownershipType) || "";
|
|
15628
15505
|
if (Array.isArray(applicantsData) && applicantsData.length > 0) {
|
|
15629
15506
|
reset({
|
|
@@ -15930,7 +15807,7 @@ const NewRentAndLeaseStepFormThree = ({
|
|
|
15930
15807
|
function goNext(finaldata) {
|
|
15931
15808
|
const missingFields = validation(finaldata);
|
|
15932
15809
|
if (missingFields.length > 0) {
|
|
15933
|
-
triggerToast(`${t(missingFields[0].replace(/\./g, "_").toUpperCase())}
|
|
15810
|
+
triggerToast(`${t("RAL_UPLOAD_MISSING_DOC_MSG")} ${t(missingFields[0].replace(/\./g, "_").toUpperCase())}`, true);
|
|
15934
15811
|
return;
|
|
15935
15812
|
}
|
|
15936
15813
|
onGoNext();
|
|
@@ -15971,7 +15848,7 @@ const NewRentAndLeaseStepFormFour = ({
|
|
|
15971
15848
|
onBackClick,
|
|
15972
15849
|
t: tProp
|
|
15973
15850
|
}) => {
|
|
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;
|
|
15851
|
+
var _currentStepData$Crea, _currentStepData$Crea2, _currentStepData$docu, _currentStepData$docu2, _currentStepData$Crea3, _currentStepData$Crea4, _user$info, _user$info$roles, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5;
|
|
15975
15852
|
const dispatch = useDispatch();
|
|
15976
15853
|
const {
|
|
15977
15854
|
t: tHook
|
|
@@ -15987,9 +15864,11 @@ const NewRentAndLeaseStepFormFour = ({
|
|
|
15987
15864
|
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) || {};
|
|
15988
15865
|
});
|
|
15989
15866
|
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);
|
|
15990
15868
|
const updatedApplicantDetails = (currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.applicantDetails) || {};
|
|
15991
15869
|
const updatedPropertyDetails = (currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.propertyDetails) || {};
|
|
15992
15870
|
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);
|
|
15993
15872
|
const onGoToRentAndLease = () => {
|
|
15994
15873
|
history.push(`/digit-ui/employee/rentandlease/inbox`);
|
|
15995
15874
|
};
|
|
@@ -16023,6 +15902,7 @@ const NewRentAndLeaseStepFormFour = ({
|
|
|
16023
15902
|
}
|
|
16024
15903
|
try {
|
|
16025
15904
|
const res = await onSubmit(currentStepData, selectedAction);
|
|
15905
|
+
console.log("res", res);
|
|
16026
15906
|
if (res !== null && res !== void 0 && res.isSuccess) {
|
|
16027
15907
|
var _res$response, _res$response$Allotme, _res$response$Allotme2, _res$response2, _res$response2$Allotm;
|
|
16028
15908
|
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;
|
|
@@ -16055,6 +15935,7 @@ const NewRentAndLeaseStepFormFour = ({
|
|
|
16055
15935
|
const {
|
|
16056
15936
|
CreatedResponse
|
|
16057
15937
|
} = data;
|
|
15938
|
+
console.log("CreatedResponse", CreatedResponse);
|
|
16058
15939
|
const {
|
|
16059
15940
|
workflow: existingWorkflow
|
|
16060
15941
|
} = CreatedResponse || {};
|
|
@@ -16156,6 +16037,7 @@ const NewRentAndLeaseStepFormFour = ({
|
|
|
16156
16037
|
const response = await Digit.RentAndLeaseService.update({
|
|
16157
16038
|
AllotmentDetails: formData
|
|
16158
16039
|
}, tenantId);
|
|
16040
|
+
console.log("Update Response", response);
|
|
16159
16041
|
if (response !== null && response !== void 0 && response.AllotmentDetails && (response === null || response === void 0 ? void 0 : response.AllotmentDetails.length) > 0) {
|
|
16160
16042
|
return {
|
|
16161
16043
|
isSuccess: true,
|
|
@@ -16186,11 +16068,13 @@ const NewRentAndLeaseStepFormFour = ({
|
|
|
16186
16068
|
};
|
|
16187
16069
|
Digit.Hooks.useClickOutside(menuRef, closeMenu, displayMenu);
|
|
16188
16070
|
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");
|
|
16189
16072
|
const workflowDetails = Digit.Hooks.useWorkflowDetails({
|
|
16190
16073
|
tenantId,
|
|
16191
16074
|
id: applicationNumber,
|
|
16192
16075
|
moduleCode: businessService
|
|
16193
16076
|
});
|
|
16077
|
+
console.log("workflowDetails", workflowDetails);
|
|
16194
16078
|
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);
|
|
16195
16079
|
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 => {
|
|
16196
16080
|
return (userRoles === null || userRoles === void 0 ? void 0 : userRoles.some(role => {
|
|
@@ -16206,6 +16090,7 @@ const NewRentAndLeaseStepFormFour = ({
|
|
|
16206
16090
|
function onActionSelect(action) {
|
|
16207
16091
|
goNext(action);
|
|
16208
16092
|
}
|
|
16093
|
+
console.log("actions", actions);
|
|
16209
16094
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FormComposer$1, {
|
|
16210
16095
|
defaultValues: currentStepData,
|
|
16211
16096
|
config: config.currStepConfig,
|
|
@@ -16248,6 +16133,7 @@ const RentAndLeaseSelectProofIdentity = ({
|
|
|
16248
16133
|
var _formData$documents;
|
|
16249
16134
|
const stateId = Digit.ULBService.getStateId();
|
|
16250
16135
|
const [formErrors, setFormErrors] = useState({});
|
|
16136
|
+
console.log("formErrors", formErrors);
|
|
16251
16137
|
const {
|
|
16252
16138
|
triggerToast
|
|
16253
16139
|
} = config;
|
|
@@ -16486,6 +16372,7 @@ function RentAndLeaseSummary({
|
|
|
16486
16372
|
});
|
|
16487
16373
|
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] : [];
|
|
16488
16374
|
const property = (formData === null || formData === void 0 ? void 0 : formData.propertyDetails) || {};
|
|
16375
|
+
console.log("property", property);
|
|
16489
16376
|
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) || [];
|
|
16490
16377
|
const sectionStyle = {
|
|
16491
16378
|
backgroundColor: "#ffffff",
|
|
@@ -16503,8 +16390,7 @@ function RentAndLeaseSummary({
|
|
|
16503
16390
|
};
|
|
16504
16391
|
const headingStyle = {
|
|
16505
16392
|
fontSize: "1.25rem",
|
|
16506
|
-
color: "#
|
|
16507
|
-
fontWeight: "500",
|
|
16393
|
+
color: "#2e4a66",
|
|
16508
16394
|
margin: 0
|
|
16509
16395
|
};
|
|
16510
16396
|
const labelFieldPairStyle = {
|
|
@@ -16530,7 +16416,6 @@ function RentAndLeaseSummary({
|
|
|
16530
16416
|
borderRadius: "6px"
|
|
16531
16417
|
};
|
|
16532
16418
|
const boldLabelStyle = {
|
|
16533
|
-
width: "100%",
|
|
16534
16419
|
fontWeight: "600",
|
|
16535
16420
|
color: "#333"
|
|
16536
16421
|
};
|
|
@@ -16542,7 +16427,7 @@ function RentAndLeaseSummary({
|
|
|
16542
16427
|
gap: "0.5rem",
|
|
16543
16428
|
alignItems: "center"
|
|
16544
16429
|
}
|
|
16545
|
-
}, /*#__PURE__*/React.createElement(
|
|
16430
|
+
}, /*#__PURE__*/React.createElement(CardLabel, {
|
|
16546
16431
|
style: boldLabelStyle
|
|
16547
16432
|
}, label)), /*#__PURE__*/React.createElement("div", {
|
|
16548
16433
|
style: {
|