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