@mseva/digit-ui-module-common 1.1.63 → 1.1.64
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 +25 -12
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
package/dist/index.modern.js
CHANGED
|
@@ -7294,7 +7294,7 @@ const WrapPaymentComponent = props => {
|
|
|
7294
7294
|
} = Digit.Hooks.useCommonMDMS(newTenantId, "common-masters", "ReceiptKey", {
|
|
7295
7295
|
select: data => {
|
|
7296
7296
|
var _data$commonMasters, _data$commonMasters$u, _data$commonMasters$u2;
|
|
7297
|
-
return business_service === "BPA.NC_SAN_FEE" ? "bpa-receiptsecond" : business_service === "BPA.NC_APP_FEE" ? "bpa-obps-receipt" : business_service === "GC.ONE_TIME_FEE" ? "garbage-receipt" : business_service === "clu" ? "clu-receipt" : business_service === "layout" ? "layout-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(({
|
|
7297
|
+
return business_service === "BPA.NC_SAN_FEE" ? "bpa-receiptsecond" : business_service === "BPA.NC_APP_FEE" ? "bpa-obps-receipt" : business_service === "GC.ONE_TIME_FEE" ? "garbage-receipt" : business_service === "clu" ? "clu-receipt" : business_service === "layout" ? "layout-receipt" : business_service === "rl-services" ? "rentandlease-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(({
|
|
7298
7298
|
code
|
|
7299
7299
|
}) => business_service === null || business_service === void 0 ? void 0 : business_service.includes(code))[0]) === null || _data$commonMasters$u2 === void 0 ? void 0 : _data$commonMasters$u2.receiptKey;
|
|
7300
7300
|
},
|
|
@@ -7415,7 +7415,8 @@ const WrapPaymentComponent = props => {
|
|
|
7415
7415
|
if (printing) return;
|
|
7416
7416
|
setPrinting(true);
|
|
7417
7417
|
let paymentArray = [];
|
|
7418
|
-
|
|
7418
|
+
const tenantId = paymentData === null || paymentData === void 0 ? void 0 : paymentData.tenantId;
|
|
7419
|
+
let licenseSection, licenseType, usage, fileNo, fileStoreTenant;
|
|
7419
7420
|
if (applicationDetails) {
|
|
7420
7421
|
var _applicationDetails$a, _licenseSection, _licenseSection$value, _licenseSection$value2;
|
|
7421
7422
|
licenseSection = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a = applicationDetails.applicationDetails) === null || _applicationDetails$a === void 0 ? void 0 : _applicationDetails$a.find(section => (section === null || section === void 0 ? void 0 : section.title) === "BPA_LICENSE_DETAILS_LABEL");
|
|
@@ -7522,7 +7523,7 @@ const WrapPaymentComponent = props => {
|
|
|
7522
7523
|
}]
|
|
7523
7524
|
}, generatePdfKey);
|
|
7524
7525
|
} else {
|
|
7525
|
-
response = await Digit.PaymentService.generatePdf(
|
|
7526
|
+
response = await Digit.PaymentService.generatePdf(tenantId, {
|
|
7526
7527
|
Payments: [{
|
|
7527
7528
|
...paymentData
|
|
7528
7529
|
}]
|
|
@@ -7530,7 +7531,10 @@ const WrapPaymentComponent = props => {
|
|
|
7530
7531
|
}
|
|
7531
7532
|
}
|
|
7532
7533
|
}
|
|
7533
|
-
|
|
7534
|
+
fileStoreTenant = await Digit.PaymentService.printReciept(tenantId, {
|
|
7535
|
+
fileStoreIds: response.filestoreIds[0]
|
|
7536
|
+
});
|
|
7537
|
+
const fileStore = fileStoreTenant && fileStoreTenant[response.filestoreIds[0]] ? fileStoreTenant : await Digit.PaymentService.printReciept(state, {
|
|
7534
7538
|
fileStoreIds: response.filestoreIds[0]
|
|
7535
7539
|
});
|
|
7536
7540
|
if (fileStore && fileStore[response.filestoreIds[0]]) {
|
|
@@ -8469,7 +8473,7 @@ const WrapPaymentComponent = props => {
|
|
|
8469
8473
|
justifyContent: "space-between",
|
|
8470
8474
|
marginTop: "15px"
|
|
8471
8475
|
}
|
|
8472
|
-
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
8476
|
+
}, printing ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(SubmitBar, {
|
|
8473
8477
|
onSubmit: printReciept,
|
|
8474
8478
|
label: t("CS_DOWNLOAD_RECEIPT")
|
|
8475
8479
|
}), business_service === "TL" && /*#__PURE__*/React.createElement(Link, {
|
|
@@ -13418,7 +13422,7 @@ const SuccessfulPayment$1 = props => {
|
|
|
13418
13422
|
} = Digit.Hooks.useCommonMDMS(tenantId, "common-masters", "ReceiptKey", {
|
|
13419
13423
|
select: data => {
|
|
13420
13424
|
var _data$commonMasters, _data$commonMasters$u, _data$commonMasters$u2;
|
|
13421
|
-
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(({
|
|
13425
|
+
return businessService === "GC.ONE_TIME_FEE" ? "garbage-receipt" : businessService === "rl-services" ? "rentandlease-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(({
|
|
13422
13426
|
code
|
|
13423
13427
|
}) => businessService === null || businessService === void 0 ? void 0 : businessService.includes(code))[0]) === null || _data$commonMasters$u2 === void 0 ? void 0 : _data$commonMasters$u2.receiptKey) || "consolidatedreceipt";
|
|
13424
13428
|
}
|
|
@@ -13864,6 +13868,8 @@ const SuccessfulPayment$1 = props => {
|
|
|
13864
13868
|
};
|
|
13865
13869
|
const printReciept = async () => {
|
|
13866
13870
|
var _payments$Payments$5, _payments$Payments$6;
|
|
13871
|
+
if (printing) return;
|
|
13872
|
+
setPrinting(true);
|
|
13867
13873
|
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
13868
13874
|
const state = Digit.ULBService.getStateId();
|
|
13869
13875
|
const payments = await Digit.PaymentService.getReciept(tenantId, businessService, {
|
|
@@ -13872,6 +13878,7 @@ const SuccessfulPayment$1 = props => {
|
|
|
13872
13878
|
let response = {
|
|
13873
13879
|
filestoreIds: [(_payments$Payments$5 = payments.Payments[0]) === null || _payments$Payments$5 === void 0 ? void 0 : _payments$Payments$5.fileStoreId]
|
|
13874
13880
|
};
|
|
13881
|
+
let fileStoreTenant;
|
|
13875
13882
|
if (!((_payments$Payments$6 = payments.Payments[0]) !== null && _payments$Payments$6 !== void 0 && _payments$Payments$6.fileStoreId)) {
|
|
13876
13883
|
let assessmentYear = "";
|
|
13877
13884
|
let count = 0;
|
|
@@ -13917,15 +13924,21 @@ const SuccessfulPayment$1 = props => {
|
|
|
13917
13924
|
Payments: updatedpayments.payments
|
|
13918
13925
|
}, generatePdfKey);
|
|
13919
13926
|
} else {
|
|
13920
|
-
response = await Digit.PaymentService.generatePdf(
|
|
13927
|
+
response = await Digit.PaymentService.generatePdf(tenantId, {
|
|
13921
13928
|
Payments: payments.Payments
|
|
13922
13929
|
}, generatePdfKey);
|
|
13923
13930
|
}
|
|
13924
13931
|
}
|
|
13925
|
-
|
|
13932
|
+
fileStoreTenant = await Digit.PaymentService.printReciept(tenantId, {
|
|
13926
13933
|
fileStoreIds: response.filestoreIds[0]
|
|
13927
13934
|
});
|
|
13928
|
-
|
|
13935
|
+
const fileStore = fileStoreTenant && fileStoreTenant[response.filestoreIds[0]] ? fileStoreTenant : await Digit.PaymentService.printReciept(state, {
|
|
13936
|
+
fileStoreIds: response.filestoreIds[0]
|
|
13937
|
+
});
|
|
13938
|
+
if (fileStore && fileStore[response.filestoreIds[0]]) {
|
|
13939
|
+
window.open(fileStore[response.filestoreIds[0]], "_blank");
|
|
13940
|
+
}
|
|
13941
|
+
setPrinting(false);
|
|
13929
13942
|
};
|
|
13930
13943
|
const printDisconnectionRecipet = async () => {
|
|
13931
13944
|
let tenantid = tenantId ? tenantId : Digit.ULBService.getCurrentTenantId();
|
|
@@ -14162,8 +14175,8 @@ const SuccessfulPayment$1 = props => {
|
|
|
14162
14175
|
marginLeft: "unset",
|
|
14163
14176
|
marginRight: "20px"
|
|
14164
14177
|
},
|
|
14165
|
-
onClick: IsDisconnectionFlow === "true" ? printDisconnectionRecipet : printReciept
|
|
14166
|
-
}, /*#__PURE__*/React.createElement("svg", {
|
|
14178
|
+
onClick: printing ? undefined : IsDisconnectionFlow === "true" ? printDisconnectionRecipet : printReciept
|
|
14179
|
+
}, printing ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("svg", {
|
|
14167
14180
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14168
14181
|
height: "24",
|
|
14169
14182
|
viewBox: "0 0 24 24",
|
|
@@ -14173,7 +14186,7 @@ const SuccessfulPayment$1 = props => {
|
|
|
14173
14186
|
fill: "none"
|
|
14174
14187
|
}), /*#__PURE__*/React.createElement("path", {
|
|
14175
14188
|
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"
|
|
14176
|
-
})), t("CS_COMMON_PRINT_RECEIPT")), businessService == "TL" ? /*#__PURE__*/React.createElement("div", {
|
|
14189
|
+
})), t("CS_COMMON_PRINT_RECEIPT"))), businessService == "TL" ? /*#__PURE__*/React.createElement("div", {
|
|
14177
14190
|
className: "primary-label-btn d-grid",
|
|
14178
14191
|
style: {
|
|
14179
14192
|
marginLeft: "unset"
|