@mseva/digit-ui-module-common 1.1.88-dev.1.26 → 1.1.88-dev.1.27
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 +131 -36
- 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")) {
|
|
@@ -7504,6 +7509,7 @@ const WrapPaymentComponent = props => {
|
|
|
7504
7509
|
}]
|
|
7505
7510
|
}, generatePdfKey);
|
|
7506
7511
|
} else {
|
|
7512
|
+
console.log('this else triggered');
|
|
7507
7513
|
response = await Digit.PaymentService.generatePdf(tenantId, {
|
|
7508
7514
|
Payments: [{
|
|
7509
7515
|
...paymentData,
|
|
@@ -7529,6 +7535,7 @@ const WrapPaymentComponent = props => {
|
|
|
7529
7535
|
const blob = await res.blob();
|
|
7530
7536
|
downloadPdf(blob, `receipt_${receiptNumber || "obpas_noc"}.pdf`);
|
|
7531
7537
|
} catch (err) {
|
|
7538
|
+
console.log(err, "error in receipt download");
|
|
7532
7539
|
window.open(downloadUrl, "_blank");
|
|
7533
7540
|
}
|
|
7534
7541
|
} else {
|
|
@@ -7700,14 +7707,15 @@ const WrapPaymentComponent = props => {
|
|
|
7700
7707
|
if (chbPermissionLoading) return;
|
|
7701
7708
|
setChbPermissionLoading(true);
|
|
7702
7709
|
try {
|
|
7703
|
-
var _applicationDetails$c, _applicationDetails$c2, _applicationDetails$c3, _applicationDetails$c4, _applicationDetails$c5, _applicationDetails$c6, _applicationDetails$A3, _applicationDetails$A4;
|
|
7710
|
+
var _applicationDetails$c, _applicationDetails$c2, _applicationDetails$c3, _applicationDetails$c4, _applicationDetails$c5, _applicationDetails$c6, _applicationDetails$c7, _applicationDetails$c8, _applicationDetails$c9, _applicationDetails$A3, _applicationDetails$A4;
|
|
7704
7711
|
const applicationDetails = await Digit.ChallanGenerationService.search({
|
|
7705
7712
|
tenantId,
|
|
7706
7713
|
filters: {
|
|
7707
7714
|
challanNo: consumerCode
|
|
7708
7715
|
}
|
|
7709
7716
|
});
|
|
7710
|
-
const location = await getLocationName(applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$c = applicationDetails.challans) === null || _applicationDetails$c === void 0 ? void 0 : (_applicationDetails$c2 = _applicationDetails$c[0]) === null || _applicationDetails$c2 === void 0 ? void 0 : (_applicationDetails$c3 = _applicationDetails$c2.additionalDetail) === null || _applicationDetails$c3 === void 0 ? void 0 : _applicationDetails$c3.latitude, applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$c4 = applicationDetails.challans) === null || _applicationDetails$c4 === void 0 ? void 0 : (_applicationDetails$c5 = _applicationDetails$c4[0]) === null || _applicationDetails$c5 === void 0 ? void 0 : (_applicationDetails$c6 = _applicationDetails$c5.additionalDetail) === null || _applicationDetails$c6 === void 0 ? void 0 : _applicationDetails$c6.longitude);
|
|
7717
|
+
const location = (await getLocationName(applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$c = applicationDetails.challans) === null || _applicationDetails$c === void 0 ? void 0 : (_applicationDetails$c2 = _applicationDetails$c[0]) === null || _applicationDetails$c2 === void 0 ? void 0 : (_applicationDetails$c3 = _applicationDetails$c2.additionalDetail) === null || _applicationDetails$c3 === void 0 ? void 0 : _applicationDetails$c3.latitude, applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$c4 = applicationDetails.challans) === null || _applicationDetails$c4 === void 0 ? void 0 : (_applicationDetails$c5 = _applicationDetails$c4[0]) === null || _applicationDetails$c5 === void 0 ? void 0 : (_applicationDetails$c6 = _applicationDetails$c5.additionalDetail) === null || _applicationDetails$c6 === void 0 ? void 0 : _applicationDetails$c6.longitude)) || (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$c7 = applicationDetails.challans) === null || _applicationDetails$c7 === void 0 ? void 0 : (_applicationDetails$c8 = _applicationDetails$c7[0]) === null || _applicationDetails$c8 === void 0 ? void 0 : (_applicationDetails$c9 = _applicationDetails$c8.address) === null || _applicationDetails$c9 === void 0 ? void 0 : _applicationDetails$c9.addressLine1);
|
|
7718
|
+
;
|
|
7711
7719
|
console.log("location", location);
|
|
7712
7720
|
const challan = {
|
|
7713
7721
|
...applicationDetails,
|
|
@@ -8251,27 +8259,7 @@ const WrapPaymentComponent = props => {
|
|
|
8251
8259
|
month: "2-digit",
|
|
8252
8260
|
year: "numeric"
|
|
8253
8261
|
})
|
|
8254
|
-
})), business_service == "
|
|
8255
|
-
className: "primary-label-btn d-grid",
|
|
8256
|
-
style: {
|
|
8257
|
-
marginLeft: "unset",
|
|
8258
|
-
marginRight: "20px",
|
|
8259
|
-
marginTop: "15px",
|
|
8260
|
-
marginBottom: "15px"
|
|
8261
|
-
},
|
|
8262
|
-
onClick: printReciept
|
|
8263
|
-
}, /*#__PURE__*/React.createElement("svg", {
|
|
8264
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
8265
|
-
height: "24px",
|
|
8266
|
-
viewBox: "0 0 24 24",
|
|
8267
|
-
width: "24px",
|
|
8268
|
-
fill: "#a82227"
|
|
8269
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
8270
|
-
d: "M0 0h24v24H0V0z",
|
|
8271
|
-
fill: "none"
|
|
8272
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
8273
|
-
d: "M19 9h-4V3H9v6H5l7 7 7-7zm-8 2V5h2v6h1.17L12 13.17 9.83 11H11zm-6 7h14v2H5z"
|
|
8274
|
-
})), t("TL_RECEIPT")) : null, business_service == "sv-services" ? /*#__PURE__*/React.createElement("div", {
|
|
8262
|
+
})), business_service == "sv-services" ? /*#__PURE__*/React.createElement("div", {
|
|
8275
8263
|
className: "primary-label-btn d-grid",
|
|
8276
8264
|
style: {
|
|
8277
8265
|
marginLeft: "unset",
|
|
@@ -8601,7 +8589,7 @@ const CitizenPayment = ({
|
|
|
8601
8589
|
const isResponse = window.location.href.includes("/response");
|
|
8602
8590
|
const isMobile = window.Digit.Utils.browser.isMobile();
|
|
8603
8591
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
8604
|
-
className: "
|
|
8592
|
+
className: "card"
|
|
8605
8593
|
}, /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(AppContainer, null, !isResponse ? /*#__PURE__*/React.createElement("div", {
|
|
8606
8594
|
style: window.location.href.includes("application-overview") || isMobile ? {
|
|
8607
8595
|
marginLeft: "10px"
|
|
@@ -11288,6 +11276,7 @@ const BillDetails$1 = ({
|
|
|
11288
11276
|
})));
|
|
11289
11277
|
};
|
|
11290
11278
|
const isTL = businessService === "TL";
|
|
11279
|
+
console.log("billDetails==||||", billDetails);
|
|
11291
11280
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StatusTable, null, !checkFSM && bill && config.details.map((obj, index) => {
|
|
11292
11281
|
const value = obj.keyPath.reduce((acc, key) => {
|
|
11293
11282
|
if (typeof key === "function") acc = key(acc);else acc = acc[key];
|
|
@@ -11608,6 +11597,8 @@ const CollectPayment = props => {
|
|
|
11608
11597
|
} = useQRDetails(props, t);
|
|
11609
11598
|
const [toast, setToast] = useState(null);
|
|
11610
11599
|
const isChallanGeneration = location.pathname.includes("Challan_Generation");
|
|
11600
|
+
const isPetService = location.pathname.includes("pet-services");
|
|
11601
|
+
console.log("isPetService", isPetService);
|
|
11611
11602
|
useEffect(() => {
|
|
11612
11603
|
if (paymentdetails !== null && paymentdetails !== void 0 && paymentdetails.Bill && paymentdetails.Bill.length === 0) {
|
|
11613
11604
|
setToast({
|
|
@@ -11622,25 +11613,25 @@ const CollectPayment = props => {
|
|
|
11622
11613
|
}, {
|
|
11623
11614
|
code: "CHEQUE",
|
|
11624
11615
|
label: t("COMMON_MASTERS_PAYMENTMODE_CHEQUE")
|
|
11625
|
-
}, ...(!isChallanGeneration ? [{
|
|
11616
|
+
}, ...(!(isChallanGeneration || isPetService) ? [{
|
|
11626
11617
|
code: "CARD",
|
|
11627
11618
|
label: t("COMMON_MASTERS_PAYMENTMODE_CREDIT/DEBIT CARD")
|
|
11628
11619
|
}] : []), {
|
|
11629
11620
|
code: "DD",
|
|
11630
11621
|
label: "Demand Draft"
|
|
11631
|
-
}, ...(isChallanGeneration ? [{
|
|
11622
|
+
}, ...(isChallanGeneration || isPetService ? [{
|
|
11632
11623
|
code: "ONLINE",
|
|
11633
11624
|
label: "Online"
|
|
11634
|
-
}] : []), ...(!isChallanGeneration ? [{
|
|
11625
|
+
}] : []), ...(!(isChallanGeneration || isPetService) ? [{
|
|
11635
11626
|
code: "OFFLINE_NEFT",
|
|
11636
11627
|
label: "NEFT"
|
|
11637
|
-
}] : []), ...(!isChallanGeneration ? [{
|
|
11628
|
+
}] : []), ...(!(isChallanGeneration || isPetService) ? [{
|
|
11638
11629
|
code: "OFFLINE_RTGS",
|
|
11639
11630
|
label: "RTGS"
|
|
11640
|
-
}] : []), ...(!isChallanGeneration ? [{
|
|
11631
|
+
}] : []), ...(!(isChallanGeneration || isPetService) ? [{
|
|
11641
11632
|
code: "POSTAL_ORDER",
|
|
11642
11633
|
label: "Postal Order"
|
|
11643
|
-
}] : []), ...(!isChallanGeneration ? [{
|
|
11634
|
+
}] : []), ...(!(isChallanGeneration || isPetService) ? [{
|
|
11644
11635
|
code: "QR_CODE",
|
|
11645
11636
|
label: "QR Code"
|
|
11646
11637
|
}] : [])];
|
|
@@ -13817,6 +13808,7 @@ const SuccessfulPayment$1 = props => {
|
|
|
13817
13808
|
receiptNumber,
|
|
13818
13809
|
businessService
|
|
13819
13810
|
} = useParams();
|
|
13811
|
+
const isMCollectService = (businessService === null || businessService === void 0 ? void 0 : businessService.includes(".")) && !(businessService !== null && businessService !== void 0 && businessService.includes("FSM")) && !(businessService !== null && businessService !== void 0 && businessService.includes("WS")) && !(businessService !== null && businessService !== void 0 && businessService.includes("SW")) && !(businessService !== null && businessService !== void 0 && businessService.includes("GC")) && !(businessService !== null && businessService !== void 0 && businessService.includes("BPA"));
|
|
13820
13812
|
console.log("checkParam", checkParam);
|
|
13821
13813
|
console.log("egPgTxnId", egPgTxnId);
|
|
13822
13814
|
console.log("businessService", businessService);
|
|
@@ -13913,7 +13905,7 @@ const SuccessfulPayment$1 = props => {
|
|
|
13913
13905
|
} = Digit.Hooks.useCommonMDMS(tenantId, "common-masters", "ReceiptKey", {
|
|
13914
13906
|
select: data => {
|
|
13915
13907
|
var _data$commonMasters, _data$commonMasters$u, _data$commonMasters$u2;
|
|
13916
|
-
return businessService === "GC.ONE_TIME_FEE" ? "garbage-receipt" :
|
|
13908
|
+
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(({
|
|
13917
13909
|
code
|
|
13918
13910
|
}) => businessService === null || businessService === void 0 ? void 0 : businessService.includes(code))[0]) === null || _data$commonMasters$u2 === void 0 ? void 0 : _data$commonMasters$u2.receiptKey) || "consolidatedreceipt";
|
|
13919
13911
|
}
|
|
@@ -13965,6 +13957,7 @@ const SuccessfulPayment$1 = props => {
|
|
|
13965
13957
|
...applicationDetails,
|
|
13966
13958
|
...challanEmpData
|
|
13967
13959
|
};
|
|
13960
|
+
console.log("applicationDetails", applicationDetails);
|
|
13968
13961
|
let application = challan;
|
|
13969
13962
|
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;
|
|
13970
13963
|
if (!fileStoreId) {
|
|
@@ -13992,14 +13985,15 @@ const SuccessfulPayment$1 = props => {
|
|
|
13992
13985
|
if (chbPermissionLoading) return;
|
|
13993
13986
|
setChbPermissionLoading(true);
|
|
13994
13987
|
try {
|
|
13995
|
-
var _applicationDetails$c, _applicationDetails$c2, _applicationDetails$c3, _applicationDetails$c4, _applicationDetails$c5, _applicationDetails$c6, _applicationDetails$A3, _applicationDetails$A4;
|
|
13988
|
+
var _applicationDetails$c, _applicationDetails$c2, _applicationDetails$c3, _applicationDetails$c4, _applicationDetails$c5, _applicationDetails$c6, _applicationDetails$c7, _applicationDetails$c8, _applicationDetails$c9, _applicationDetails$A3, _applicationDetails$A4;
|
|
13996
13989
|
const applicationDetails = await Digit.ChallanGenerationService.search({
|
|
13997
13990
|
tenantId,
|
|
13998
13991
|
filters: {
|
|
13999
13992
|
challanNo: consumerCode
|
|
14000
13993
|
}
|
|
14001
13994
|
});
|
|
14002
|
-
const location = await getLocationName(applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$c = applicationDetails.challans) === null || _applicationDetails$c === void 0 ? void 0 : (_applicationDetails$c2 = _applicationDetails$c[0]) === null || _applicationDetails$c2 === void 0 ? void 0 : (_applicationDetails$c3 = _applicationDetails$c2.additionalDetail) === null || _applicationDetails$c3 === void 0 ? void 0 : _applicationDetails$c3.latitude, applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$c4 = applicationDetails.challans) === null || _applicationDetails$c4 === void 0 ? void 0 : (_applicationDetails$c5 = _applicationDetails$c4[0]) === null || _applicationDetails$c5 === void 0 ? void 0 : (_applicationDetails$c6 = _applicationDetails$c5.additionalDetail) === null || _applicationDetails$c6 === void 0 ? void 0 : _applicationDetails$c6.longitude);
|
|
13995
|
+
const location = (await getLocationName(applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$c = applicationDetails.challans) === null || _applicationDetails$c === void 0 ? void 0 : (_applicationDetails$c2 = _applicationDetails$c[0]) === null || _applicationDetails$c2 === void 0 ? void 0 : (_applicationDetails$c3 = _applicationDetails$c2.additionalDetail) === null || _applicationDetails$c3 === void 0 ? void 0 : _applicationDetails$c3.latitude, applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$c4 = applicationDetails.challans) === null || _applicationDetails$c4 === void 0 ? void 0 : (_applicationDetails$c5 = _applicationDetails$c4[0]) === null || _applicationDetails$c5 === void 0 ? void 0 : (_applicationDetails$c6 = _applicationDetails$c5.additionalDetail) === null || _applicationDetails$c6 === void 0 ? void 0 : _applicationDetails$c6.longitude)) || (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$c7 = applicationDetails.challans) === null || _applicationDetails$c7 === void 0 ? void 0 : (_applicationDetails$c8 = _applicationDetails$c7[0]) === null || _applicationDetails$c8 === void 0 ? void 0 : (_applicationDetails$c9 = _applicationDetails$c8.address) === null || _applicationDetails$c9 === void 0 ? void 0 : _applicationDetails$c9.addressLine1);
|
|
13996
|
+
;
|
|
14003
13997
|
console.log("location", location);
|
|
14004
13998
|
const challan = {
|
|
14005
13999
|
...applicationDetails,
|
|
@@ -14235,6 +14229,64 @@ const SuccessfulPayment$1 = props => {
|
|
|
14235
14229
|
setPrinting(false);
|
|
14236
14230
|
}
|
|
14237
14231
|
};
|
|
14232
|
+
const printMCollectReceipt = async () => {
|
|
14233
|
+
if (printing) return;
|
|
14234
|
+
setPrinting(true);
|
|
14235
|
+
try {
|
|
14236
|
+
var _payments$Payments8, _payments$Payments8$, _payments$Payments9, _payments$Payments9$;
|
|
14237
|
+
const payments = await Digit.PaymentService.getReciept(tenantId, businessService, {
|
|
14238
|
+
consumerCodes: consumerCode
|
|
14239
|
+
});
|
|
14240
|
+
let response = {
|
|
14241
|
+
filestoreIds: [payments === null || payments === void 0 ? void 0 : (_payments$Payments8 = payments.Payments) === null || _payments$Payments8 === void 0 ? void 0 : (_payments$Payments8$ = _payments$Payments8[0]) === null || _payments$Payments8$ === void 0 ? void 0 : _payments$Payments8$.fileStoreId]
|
|
14242
|
+
};
|
|
14243
|
+
if (!(payments !== null && payments !== void 0 && (_payments$Payments9 = payments.Payments) !== null && _payments$Payments9 !== void 0 && (_payments$Payments9$ = _payments$Payments9[0]) !== null && _payments$Payments9$ !== void 0 && _payments$Payments9$.fileStoreId)) {
|
|
14244
|
+
response = await Digit.PaymentService.generatePdf(tenantId, {
|
|
14245
|
+
Payments: payments.Payments
|
|
14246
|
+
}, generatePdfKey || "consolidatedreceipt");
|
|
14247
|
+
}
|
|
14248
|
+
const fileStore = await Digit.PaymentService.printReciept(tenantId, {
|
|
14249
|
+
fileStoreIds: response.filestoreIds[0]
|
|
14250
|
+
});
|
|
14251
|
+
window.open(fileStore[response.filestoreIds[0]], "_blank");
|
|
14252
|
+
} finally {
|
|
14253
|
+
setPrinting(false);
|
|
14254
|
+
}
|
|
14255
|
+
};
|
|
14256
|
+
const printRLReceipt = async () => {
|
|
14257
|
+
if (printing) return;
|
|
14258
|
+
setPrinting(true);
|
|
14259
|
+
try {
|
|
14260
|
+
var _applicationDetails$B3, _applicationDetails$B4;
|
|
14261
|
+
const applicationDetails = await Digit.RentAndLeaseService.search({
|
|
14262
|
+
tenantId,
|
|
14263
|
+
filters: {
|
|
14264
|
+
applicationNumbers: consumerCode
|
|
14265
|
+
}
|
|
14266
|
+
});
|
|
14267
|
+
let application = applicationDetails;
|
|
14268
|
+
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;
|
|
14269
|
+
if (!fileStoreId) {
|
|
14270
|
+
var _payments$Payments0;
|
|
14271
|
+
const payments = await Digit.PaymentService.getReciept(tenantId, businessService, {
|
|
14272
|
+
receiptNumbers: receiptNumber
|
|
14273
|
+
});
|
|
14274
|
+
let response = await Digit.PaymentService.generatePdf(tenantId, {
|
|
14275
|
+
Payments: [{
|
|
14276
|
+
...((payments === null || payments === void 0 ? void 0 : (_payments$Payments0 = payments.Payments) === null || _payments$Payments0 === void 0 ? void 0 : _payments$Payments0[0]) || {}),
|
|
14277
|
+
...application
|
|
14278
|
+
}]
|
|
14279
|
+
}, "rentandlease-receipt");
|
|
14280
|
+
fileStoreId = response === null || response === void 0 ? void 0 : response.filestoreIds[0];
|
|
14281
|
+
}
|
|
14282
|
+
const fileStore = await Digit.PaymentService.printReciept(tenantId, {
|
|
14283
|
+
fileStoreIds: fileStoreId
|
|
14284
|
+
});
|
|
14285
|
+
window.open(fileStore[fileStoreId], "_blank");
|
|
14286
|
+
} finally {
|
|
14287
|
+
setPrinting(false);
|
|
14288
|
+
}
|
|
14289
|
+
};
|
|
14238
14290
|
const svCertificate = async () => {
|
|
14239
14291
|
const state = tenantId;
|
|
14240
14292
|
const applicationDetails = await Digit.SVService.search({
|
|
@@ -14660,7 +14712,7 @@ const SuccessfulPayment$1 = props => {
|
|
|
14660
14712
|
display: "flex",
|
|
14661
14713
|
justifyContent: "space-evenly"
|
|
14662
14714
|
}
|
|
14663
|
-
}, businessService !== "chb-services" && businessService !== "adv-services" && businessService !== "pet-services" && businessService !== "NDC" && businessService !== "Challan_Generation" && /*#__PURE__*/React.createElement("div", {
|
|
14715
|
+
}, businessService !== "chb-services" && businessService !== "adv-services" && businessService !== "pet-services" && businessService !== "NDC" && businessService !== "Challan_Generation" && businessService !== "rl-services" && !isMCollectService && /*#__PURE__*/React.createElement("div", {
|
|
14664
14716
|
className: "primary-label-btn d-grid",
|
|
14665
14717
|
style: {
|
|
14666
14718
|
marginLeft: "unset",
|
|
@@ -14838,6 +14890,50 @@ const SuccessfulPayment$1 = props => {
|
|
|
14838
14890
|
fill: "none"
|
|
14839
14891
|
}), /*#__PURE__*/React.createElement("path", {
|
|
14840
14892
|
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"
|
|
14893
|
+
})), t("CHB_FEE_RECEIPT")))) : null, isMCollectService ? /*#__PURE__*/React.createElement("div", {
|
|
14894
|
+
style: {
|
|
14895
|
+
display: "flex",
|
|
14896
|
+
justifyContent: "flex-end",
|
|
14897
|
+
gap: "20px",
|
|
14898
|
+
marginRight: "20px",
|
|
14899
|
+
marginTop: "15px",
|
|
14900
|
+
marginBottom: "15px"
|
|
14901
|
+
}
|
|
14902
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
14903
|
+
className: "primary-label-btn d-grid",
|
|
14904
|
+
onClick: printing ? undefined : printMCollectReceipt
|
|
14905
|
+
}, printing ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("svg", {
|
|
14906
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
14907
|
+
height: "24",
|
|
14908
|
+
viewBox: "0 0 24 24",
|
|
14909
|
+
width: "24"
|
|
14910
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
14911
|
+
d: "M0 0h24v24H0z",
|
|
14912
|
+
fill: "none"
|
|
14913
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
14914
|
+
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"
|
|
14915
|
+
})), t("CS_COMMON_PRINT_RECEIPT")))) : null, businessService == "rl-services" ? /*#__PURE__*/React.createElement("div", {
|
|
14916
|
+
style: {
|
|
14917
|
+
display: "flex",
|
|
14918
|
+
justifyContent: "flex-end",
|
|
14919
|
+
gap: "20px",
|
|
14920
|
+
marginRight: "20px",
|
|
14921
|
+
marginTop: "15px",
|
|
14922
|
+
marginBottom: "15px"
|
|
14923
|
+
}
|
|
14924
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
14925
|
+
className: "primary-label-btn d-grid",
|
|
14926
|
+
onClick: printing ? undefined : printRLReceipt
|
|
14927
|
+
}, printing ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("svg", {
|
|
14928
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
14929
|
+
height: "24",
|
|
14930
|
+
viewBox: "0 0 24 24",
|
|
14931
|
+
width: "24"
|
|
14932
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
14933
|
+
d: "M0 0h24v24H0z",
|
|
14934
|
+
fill: "none"
|
|
14935
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
14936
|
+
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"
|
|
14841
14937
|
})), t("CHB_FEE_RECEIPT")))) : null, businessService == "Challan_Generation" ? /*#__PURE__*/React.createElement("div", {
|
|
14842
14938
|
style: {
|
|
14843
14939
|
display: "flex",
|
|
@@ -15174,7 +15270,6 @@ const EmployeePayment = ({
|
|
|
15174
15270
|
setLink
|
|
15175
15271
|
};
|
|
15176
15272
|
const isFsm = ((_location = location) === null || _location === void 0 ? void 0 : (_location$pathname = _location.pathname) === null || _location$pathname === void 0 ? void 0 : _location$pathname.includes("fsm")) || ((_location2 = location) === null || _location2 === void 0 ? void 0 : (_location2$pathname = _location2.pathname) === null || _location2$pathname === void 0 ? void 0 : _location2$pathname.includes("FSM"));
|
|
15177
|
-
const isMobile = window.Digit.Utils.browser.isMobile();
|
|
15178
15273
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("p", {
|
|
15179
15274
|
className: "breadcrumb",
|
|
15180
15275
|
style: {
|