@mseva/digit-ui-module-common 1.1.88-dev.1.16 → 1.1.88-dev.1.17
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 +106 -14
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -7410,11 +7410,16 @@ const WrapPaymentComponent = props => {
|
|
|
7410
7410
|
if (sourceData) {
|
|
7411
7411
|
var _sourceData$approvalN, _sourceData$additiona, _sourceData$additiona2, _sourceData$additiona3, _sourceData$additiona4;
|
|
7412
7412
|
fileNo = `PB/${districtCode}/${ulbCode}/${+(sourceData === null || sourceData === void 0 ? void 0 : (_sourceData$approvalN = sourceData.approvalNo) === null || _sourceData$approvalN === void 0 ? void 0 : _sourceData$approvalN.slice(-6)) + 500000}`;
|
|
7413
|
+
console.log("newCode", fileNo);
|
|
7413
7414
|
usage = (sourceData === null || sourceData === void 0 ? void 0 : (_sourceData$additiona = sourceData.additionalDetails) === null || _sourceData$additiona === void 0 ? void 0 : _sourceData$additiona.usage) || (sourceData === null || sourceData === void 0 ? void 0 : (_sourceData$additiona2 = sourceData.additionalDetails) === null || _sourceData$additiona2 === void 0 ? void 0 : (_sourceData$additiona3 = _sourceData$additiona2.siteDetails) === null || _sourceData$additiona3 === void 0 ? void 0 : (_sourceData$additiona4 = _sourceData$additiona3.buildingCategory) === null || _sourceData$additiona4 === void 0 ? void 0 : _sourceData$additiona4.name);
|
|
7415
|
+
console.log("usage", usage);
|
|
7414
7416
|
}
|
|
7417
|
+
console.log("licenseType:", licenseType);
|
|
7415
7418
|
const state = Digit.ULBService.getStateId();
|
|
7416
7419
|
const fee = paymentData === null || paymentData === void 0 ? void 0 : paymentData.totalAmountPaid;
|
|
7420
|
+
console.log("fee here here", fee);
|
|
7417
7421
|
const amountinwords = amountToWords(fee);
|
|
7422
|
+
console.log('amountinwords', amountinwords);
|
|
7418
7423
|
let response = {
|
|
7419
7424
|
filestoreIds: [(_payments$Payments$ = payments.Payments[0]) === null || _payments$Payments$ === void 0 ? void 0 : _payments$Payments$.fileStoreId]
|
|
7420
7425
|
};
|
|
@@ -7458,7 +7463,7 @@ const WrapPaymentComponent = props => {
|
|
|
7458
7463
|
...paymentData
|
|
7459
7464
|
}]
|
|
7460
7465
|
}, generatePdfKeyForWs);
|
|
7461
|
-
} else if (paymentData.paymentDetails[0].businessService.includes("BPA") || paymentData.paymentDetails[0].businessService.includes("clu") || paymentData.paymentDetails[0].businessService.includes("
|
|
7466
|
+
} else if (paymentData.paymentDetails[0].businessService.includes("BPA") || paymentData.paymentDetails[0].businessService.includes("clu") || paymentData.paymentDetails[0].businessService.includes("LAYOUT")) {
|
|
7462
7467
|
const designation = ulbType === "Municipal Corporation" ? "Municipal Commissioner" : "Executive Officer";
|
|
7463
7468
|
let updatedpayments;
|
|
7464
7469
|
if (paymentData.paymentDetails[0].businessService.includes("BPAREG")) {
|
|
@@ -7503,6 +7508,7 @@ const WrapPaymentComponent = props => {
|
|
|
7503
7508
|
}]
|
|
7504
7509
|
}, generatePdfKey);
|
|
7505
7510
|
} else {
|
|
7511
|
+
console.log('this else triggered');
|
|
7506
7512
|
response = await Digit.PaymentService.generatePdf(tenantId, {
|
|
7507
7513
|
Payments: [{
|
|
7508
7514
|
...paymentData,
|
|
@@ -7528,6 +7534,7 @@ const WrapPaymentComponent = props => {
|
|
|
7528
7534
|
const blob = await res.blob();
|
|
7529
7535
|
downloadPdf(blob, `receipt_${receiptNumber || "obpas_noc"}.pdf`);
|
|
7530
7536
|
} catch (err) {
|
|
7537
|
+
console.log(err, "error in receipt download");
|
|
7531
7538
|
window.open(downloadUrl, "_blank");
|
|
7532
7539
|
}
|
|
7533
7540
|
} else {
|
|
@@ -8604,7 +8611,7 @@ const CitizenPayment = ({
|
|
|
8604
8611
|
const isResponse = window.location.href.includes("/response");
|
|
8605
8612
|
const isMobile = window.Digit.Utils.browser.isMobile();
|
|
8606
8613
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
8607
|
-
className: "
|
|
8614
|
+
className: "card"
|
|
8608
8615
|
}, /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(AppContainer, null, !isResponse ? /*#__PURE__*/React.createElement("div", {
|
|
8609
8616
|
style: window.location.href.includes("application-overview") || isMobile ? {
|
|
8610
8617
|
marginLeft: "10px"
|
|
@@ -11013,7 +11020,7 @@ const BillDetailsFormConfig = (props, t) => ({
|
|
|
11013
11020
|
}
|
|
11014
11021
|
}]
|
|
11015
11022
|
}],
|
|
11016
|
-
|
|
11023
|
+
WSReconnection: [{
|
|
11017
11024
|
head: t("COMMON_PAY_SCREEN_HEADER"),
|
|
11018
11025
|
body: [{
|
|
11019
11026
|
withoutLabel: true,
|
|
@@ -11031,7 +11038,7 @@ const BillDetailsFormConfig = (props, t) => ({
|
|
|
11031
11038
|
}
|
|
11032
11039
|
}]
|
|
11033
11040
|
}],
|
|
11034
|
-
|
|
11041
|
+
SWReconnection: [{
|
|
11035
11042
|
head: t("COMMON_PAY_SCREEN_HEADER"),
|
|
11036
11043
|
body: [{
|
|
11037
11044
|
withoutLabel: true,
|
|
@@ -11290,16 +11297,22 @@ const BillDetails$1 = ({
|
|
|
11290
11297
|
}, year_bill.amount));
|
|
11291
11298
|
})));
|
|
11292
11299
|
};
|
|
11300
|
+
const isTL = businessService === "TL";
|
|
11301
|
+
console.log("billDetails==||||", billDetails);
|
|
11293
11302
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StatusTable, null, !checkFSM && bill && config.details.map((obj, index) => {
|
|
11294
11303
|
const value = obj.keyPath.reduce((acc, key) => {
|
|
11295
11304
|
if (typeof key === "function") acc = key(acc);else acc = acc[key];
|
|
11296
11305
|
return acc;
|
|
11297
11306
|
}, bill);
|
|
11298
|
-
return /*#__PURE__*/React.createElement(Row, {
|
|
11307
|
+
return /*#__PURE__*/React.createElement(Row, Object.assign({
|
|
11299
11308
|
key: index + "bill",
|
|
11300
11309
|
label: t(obj.keyValue),
|
|
11301
11310
|
text: value
|
|
11302
|
-
}
|
|
11311
|
+
}, isTL ? {
|
|
11312
|
+
textStyle: {
|
|
11313
|
+
textAlign: "right"
|
|
11314
|
+
}
|
|
11315
|
+
} : {}));
|
|
11303
11316
|
})), checkFSM ? /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
|
|
11304
11317
|
label: t("ES_PAYMENT_DETAILS_AMOUNT_PER_TRIP"),
|
|
11305
11318
|
textStyle: {
|
|
@@ -11340,11 +11353,18 @@ const BillDetails$1 = ({
|
|
|
11340
11353
|
}, /*#__PURE__*/React.createElement(Row, {
|
|
11341
11354
|
label: t("ES_PAYMENT_TAXHEADS"),
|
|
11342
11355
|
textStyle: {
|
|
11343
|
-
fontWeight: "bold"
|
|
11356
|
+
fontWeight: "bold",
|
|
11357
|
+
...(isTL ? {
|
|
11358
|
+
textAlign: "right",
|
|
11359
|
+
maxWidth: "none",
|
|
11360
|
+
width: "40%"
|
|
11361
|
+
} : {})
|
|
11344
11362
|
},
|
|
11345
11363
|
text: t("ES_PAYMENT_AMOUNT")
|
|
11346
11364
|
}), /*#__PURE__*/React.createElement("hr", {
|
|
11347
|
-
style: {
|
|
11365
|
+
style: isTL ? {
|
|
11366
|
+
width: "100%"
|
|
11367
|
+
} : {
|
|
11348
11368
|
width: "40%"
|
|
11349
11369
|
},
|
|
11350
11370
|
className: "underline"
|
|
@@ -11355,7 +11375,11 @@ const BillDetails$1 = ({
|
|
|
11355
11375
|
labelStyle: {
|
|
11356
11376
|
fontWeight: "normal"
|
|
11357
11377
|
},
|
|
11358
|
-
textStyle: {
|
|
11378
|
+
textStyle: isTL ? {
|
|
11379
|
+
textAlign: "right",
|
|
11380
|
+
maxWidth: "none",
|
|
11381
|
+
width: "40%"
|
|
11382
|
+
} : {
|
|
11359
11383
|
textAlign: "right",
|
|
11360
11384
|
maxWidth: "100px"
|
|
11361
11385
|
},
|
|
@@ -11366,20 +11390,31 @@ const BillDetails$1 = ({
|
|
|
11366
11390
|
labelStyle: {
|
|
11367
11391
|
fontWeight: "normal"
|
|
11368
11392
|
},
|
|
11369
|
-
textStyle: {
|
|
11393
|
+
textStyle: isTL ? {
|
|
11394
|
+
textAlign: "right",
|
|
11395
|
+
maxWidth: "none",
|
|
11396
|
+
width: "40%"
|
|
11397
|
+
} : {
|
|
11370
11398
|
textAlign: "right",
|
|
11371
11399
|
maxWidth: "100px"
|
|
11372
11400
|
},
|
|
11373
11401
|
label: t("COMMON_ARREARS"),
|
|
11374
11402
|
text: "₹ " + (arrears === null || arrears === void 0 ? void 0 : (_arrears$toFixed2 = arrears.toFixed) === null || _arrears$toFixed2 === void 0 ? void 0 : _arrears$toFixed2.call(arrears, 2)) || Number(0).toFixed(2)
|
|
11375
11403
|
}) : null, /*#__PURE__*/React.createElement("hr", {
|
|
11376
|
-
style: {
|
|
11404
|
+
style: isTL ? {
|
|
11405
|
+
width: "100%"
|
|
11406
|
+
} : {
|
|
11377
11407
|
width: "40%"
|
|
11378
11408
|
},
|
|
11379
11409
|
className: "underline"
|
|
11380
11410
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
11381
11411
|
label: t("CS_PAYMENT_TOTAL_AMOUNT"),
|
|
11382
|
-
textStyle: {
|
|
11412
|
+
textStyle: isTL ? {
|
|
11413
|
+
fontWeight: "bold",
|
|
11414
|
+
textAlign: "right",
|
|
11415
|
+
maxWidth: "none",
|
|
11416
|
+
width: "40%"
|
|
11417
|
+
} : {
|
|
11383
11418
|
fontWeight: "bold",
|
|
11384
11419
|
textAlign: "right",
|
|
11385
11420
|
maxWidth: "100px"
|
|
@@ -13889,7 +13924,7 @@ const SuccessfulPayment$1 = props => {
|
|
|
13889
13924
|
} = Digit.Hooks.useCommonMDMS(tenantId, "common-masters", "ReceiptKey", {
|
|
13890
13925
|
select: data => {
|
|
13891
13926
|
var _data$commonMasters, _data$commonMasters$u, _data$commonMasters$u2;
|
|
13892
|
-
return businessService === "GC.ONE_TIME_FEE" ? "garbage-receipt" :
|
|
13927
|
+
return businessService === "GC.ONE_TIME_FEE" ? "garbage-receipt" : ((_data$commonMasters = data["common-masters"]) === null || _data$commonMasters === void 0 ? void 0 : (_data$commonMasters$u = _data$commonMasters.uiCommonPay) === null || _data$commonMasters$u === void 0 ? void 0 : (_data$commonMasters$u2 = _data$commonMasters$u.filter(({
|
|
13893
13928
|
code
|
|
13894
13929
|
}) => businessService === null || businessService === void 0 ? void 0 : businessService.includes(code))[0]) === null || _data$commonMasters$u2 === void 0 ? void 0 : _data$commonMasters$u2.receiptKey) || "consolidatedreceipt";
|
|
13895
13930
|
}
|
|
@@ -13959,6 +13994,7 @@ const SuccessfulPayment$1 = props => {
|
|
|
13959
13994
|
...applicationDetails,
|
|
13960
13995
|
...challanEmpData
|
|
13961
13996
|
};
|
|
13997
|
+
console.log("applicationDetails", applicationDetails);
|
|
13962
13998
|
let application = challan;
|
|
13963
13999
|
let fileStoreId = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$A = applicationDetails.Applications) === null || _applicationDetails$A === void 0 ? void 0 : (_applicationDetails$A2 = _applicationDetails$A[0]) === null || _applicationDetails$A2 === void 0 ? void 0 : _applicationDetails$A2.paymentReceiptFilestoreId;
|
|
13964
14000
|
if (!fileStoreId) {
|
|
@@ -14229,6 +14265,40 @@ const SuccessfulPayment$1 = props => {
|
|
|
14229
14265
|
setPrinting(false);
|
|
14230
14266
|
}
|
|
14231
14267
|
};
|
|
14268
|
+
const printRLReceipt = async () => {
|
|
14269
|
+
if (printing) return;
|
|
14270
|
+
setPrinting(true);
|
|
14271
|
+
try {
|
|
14272
|
+
var _applicationDetails$B3, _applicationDetails$B4;
|
|
14273
|
+
const applicationDetails = await Digit.RentAndLeaseService.search({
|
|
14274
|
+
tenantId,
|
|
14275
|
+
filters: {
|
|
14276
|
+
applicationNumbers: consumerCode
|
|
14277
|
+
}
|
|
14278
|
+
});
|
|
14279
|
+
let application = applicationDetails;
|
|
14280
|
+
let fileStoreId = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$B3 = applicationDetails.BookingApplication) === null || _applicationDetails$B3 === void 0 ? void 0 : (_applicationDetails$B4 = _applicationDetails$B3[0]) === null || _applicationDetails$B4 === void 0 ? void 0 : _applicationDetails$B4.paymentReceiptFilestoreId;
|
|
14281
|
+
if (!fileStoreId) {
|
|
14282
|
+
var _payments$Payments8;
|
|
14283
|
+
const payments = await Digit.PaymentService.getReciept(tenantId, businessService, {
|
|
14284
|
+
receiptNumbers: receiptNumber
|
|
14285
|
+
});
|
|
14286
|
+
let response = await Digit.PaymentService.generatePdf(tenantId, {
|
|
14287
|
+
Payments: [{
|
|
14288
|
+
...((payments === null || payments === void 0 ? void 0 : (_payments$Payments8 = payments.Payments) === null || _payments$Payments8 === void 0 ? void 0 : _payments$Payments8[0]) || {}),
|
|
14289
|
+
...application
|
|
14290
|
+
}]
|
|
14291
|
+
}, "rentandlease-receipt");
|
|
14292
|
+
fileStoreId = response === null || response === void 0 ? void 0 : response.filestoreIds[0];
|
|
14293
|
+
}
|
|
14294
|
+
const fileStore = await Digit.PaymentService.printReciept(tenantId, {
|
|
14295
|
+
fileStoreIds: fileStoreId
|
|
14296
|
+
});
|
|
14297
|
+
window.open(fileStore[fileStoreId], "_blank");
|
|
14298
|
+
} finally {
|
|
14299
|
+
setPrinting(false);
|
|
14300
|
+
}
|
|
14301
|
+
};
|
|
14232
14302
|
const svCertificate = async () => {
|
|
14233
14303
|
const state = tenantId;
|
|
14234
14304
|
const applicationDetails = await Digit.SVService.search({
|
|
@@ -14654,7 +14724,7 @@ const SuccessfulPayment$1 = props => {
|
|
|
14654
14724
|
display: "flex",
|
|
14655
14725
|
justifyContent: "space-evenly"
|
|
14656
14726
|
}
|
|
14657
|
-
}, businessService !== "chb-services" && businessService !== "adv-services" && businessService !== "pet-services" && businessService !== "NDC" && businessService !== "Challan_Generation" && /*#__PURE__*/React.createElement("div", {
|
|
14727
|
+
}, businessService !== "chb-services" && businessService !== "adv-services" && businessService !== "pet-services" && businessService !== "NDC" && businessService !== "Challan_Generation" && businessService !== "rl-services" && /*#__PURE__*/React.createElement("div", {
|
|
14658
14728
|
className: "primary-label-btn d-grid",
|
|
14659
14729
|
style: {
|
|
14660
14730
|
marginLeft: "unset",
|
|
@@ -14848,6 +14918,28 @@ const SuccessfulPayment$1 = props => {
|
|
|
14848
14918
|
fill: "none"
|
|
14849
14919
|
}), /*#__PURE__*/React.createElement("path", {
|
|
14850
14920
|
d: "M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z"
|
|
14921
|
+
})), t("CHB_FEE_RECEIPT")))) : null, businessService == "rl-services" ? /*#__PURE__*/React.createElement("div", {
|
|
14922
|
+
style: {
|
|
14923
|
+
display: "flex",
|
|
14924
|
+
justifyContent: "flex-end",
|
|
14925
|
+
gap: "20px",
|
|
14926
|
+
marginRight: "20px",
|
|
14927
|
+
marginTop: "15px",
|
|
14928
|
+
marginBottom: "15px"
|
|
14929
|
+
}
|
|
14930
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
14931
|
+
className: "primary-label-btn d-grid",
|
|
14932
|
+
onClick: printing ? undefined : printRLReceipt
|
|
14933
|
+
}, printing ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("svg", {
|
|
14934
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
14935
|
+
height: "24",
|
|
14936
|
+
viewBox: "0 0 24 24",
|
|
14937
|
+
width: "24"
|
|
14938
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
14939
|
+
d: "M0 0h24v24H0z",
|
|
14940
|
+
fill: "none"
|
|
14941
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
14942
|
+
d: "M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z"
|
|
14851
14943
|
})), t("CHB_FEE_RECEIPT")))) : null, businessService == "Challan_Generation" ? /*#__PURE__*/React.createElement("div", {
|
|
14852
14944
|
style: {
|
|
14853
14945
|
display: "flex",
|