@mseva/digit-ui-module-common 1.1.88-UAT.13 → 1.1.88-UAT.15
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 +125 -25
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -7484,6 +7484,7 @@ const WrapPaymentComponent = props => {
|
|
|
7484
7484
|
} else {
|
|
7485
7485
|
updatedpayments = {
|
|
7486
7486
|
...paymentData,
|
|
7487
|
+
BPA: [bpaData === null || bpaData === void 0 ? void 0 : bpaData[0]],
|
|
7487
7488
|
additionalDetails: {
|
|
7488
7489
|
...paymentData.additionalDetails,
|
|
7489
7490
|
designation: designation,
|
|
@@ -7560,6 +7561,40 @@ const WrapPaymentComponent = props => {
|
|
|
7560
7561
|
});
|
|
7561
7562
|
}
|
|
7562
7563
|
};
|
|
7564
|
+
const printPetReceipt = async () => {
|
|
7565
|
+
if (printing) return;
|
|
7566
|
+
setPrinting(true);
|
|
7567
|
+
const payments = await Digit.PaymentService.getReciept(tenantId, business_service, {
|
|
7568
|
+
receiptNumbers: receiptNumber
|
|
7569
|
+
});
|
|
7570
|
+
try {
|
|
7571
|
+
var _applicationDetails$P, _payments$Payments$2;
|
|
7572
|
+
const applicationDetails = await Digit.PTRService.search({
|
|
7573
|
+
tenantId,
|
|
7574
|
+
filters: {
|
|
7575
|
+
applicationNumber: consumerCode
|
|
7576
|
+
}
|
|
7577
|
+
});
|
|
7578
|
+
const application = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$P = applicationDetails.PetRegistrationApplications) === null || _applicationDetails$P === void 0 ? void 0 : _applicationDetails$P[0];
|
|
7579
|
+
let fileStoreId = (_payments$Payments$2 = payments.Payments[0]) === null || _payments$Payments$2 === void 0 ? void 0 : _payments$Payments$2.fileStoreId;
|
|
7580
|
+
if (!fileStoreId) {
|
|
7581
|
+
var _payments$Payments;
|
|
7582
|
+
let response = await Digit.PaymentService.generatePdf(tenantId, {
|
|
7583
|
+
Payments: [{
|
|
7584
|
+
...((payments === null || payments === void 0 ? void 0 : (_payments$Payments = payments.Payments) === null || _payments$Payments === void 0 ? void 0 : _payments$Payments[0]) || {}),
|
|
7585
|
+
application
|
|
7586
|
+
}]
|
|
7587
|
+
}, "petservice-receipt");
|
|
7588
|
+
fileStoreId = response === null || response === void 0 ? void 0 : response.filestoreIds[0];
|
|
7589
|
+
}
|
|
7590
|
+
const fileStore = await Digit.PaymentService.printReciept(tenantId, {
|
|
7591
|
+
fileStoreIds: fileStoreId
|
|
7592
|
+
});
|
|
7593
|
+
window.open(fileStore[fileStoreId], "_blank");
|
|
7594
|
+
} finally {
|
|
7595
|
+
setPrinting(false);
|
|
7596
|
+
}
|
|
7597
|
+
};
|
|
7563
7598
|
const downloadPdf = (blob, fileName) => {
|
|
7564
7599
|
if (window.mSewaApp && window.mSewaApp.isMsewaApp() && window.mSewaApp.downloadBase64File) {
|
|
7565
7600
|
var reader = new FileReader();
|
|
@@ -7675,13 +7710,13 @@ const WrapPaymentComponent = props => {
|
|
|
7675
7710
|
let application = challan;
|
|
7676
7711
|
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;
|
|
7677
7712
|
if (!fileStoreId) {
|
|
7678
|
-
var _payments$
|
|
7713
|
+
var _payments$Payments2;
|
|
7679
7714
|
const payments = await Digit.PaymentService.getReciept(tenantId, business_service, {
|
|
7680
7715
|
receiptNumbers: receiptNumber
|
|
7681
7716
|
});
|
|
7682
7717
|
let response = await Digit.PaymentService.generatePdf(tenantId, {
|
|
7683
7718
|
Payments: [{
|
|
7684
|
-
...((payments === null || payments === void 0 ? void 0 : (_payments$
|
|
7719
|
+
...((payments === null || payments === void 0 ? void 0 : (_payments$Payments2 = payments.Payments) === null || _payments$Payments2 === void 0 ? void 0 : _payments$Payments2[0]) || {}),
|
|
7685
7720
|
challan: application
|
|
7686
7721
|
}]
|
|
7687
7722
|
}, "challangeneration-receipt");
|
|
@@ -7699,15 +7734,28 @@ const WrapPaymentComponent = props => {
|
|
|
7699
7734
|
if (chbPermissionLoading) return;
|
|
7700
7735
|
setChbPermissionLoading(true);
|
|
7701
7736
|
try {
|
|
7702
|
-
var _applicationDetails$c,
|
|
7737
|
+
var _applicationDetails$c, _challanDetails$addit, _challanDetails$addit2, _challanDetails$addre, _applicationDetails$A3, _applicationDetails$A4;
|
|
7703
7738
|
const applicationDetails = await Digit.ChallanGenerationService.search({
|
|
7704
7739
|
tenantId,
|
|
7705
7740
|
filters: {
|
|
7706
7741
|
challanNo: consumerCode
|
|
7707
7742
|
}
|
|
7708
7743
|
});
|
|
7709
|
-
const
|
|
7710
|
-
|
|
7744
|
+
const challanDetails = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$c = applicationDetails.challans) === null || _applicationDetails$c === void 0 ? void 0 : _applicationDetails$c[0];
|
|
7745
|
+
const latitude = challanDetails === null || challanDetails === void 0 ? void 0 : (_challanDetails$addit = challanDetails.additionalDetail) === null || _challanDetails$addit === void 0 ? void 0 : _challanDetails$addit.latitude;
|
|
7746
|
+
const longitude = challanDetails === null || challanDetails === void 0 ? void 0 : (_challanDetails$addit2 = challanDetails.additionalDetail) === null || _challanDetails$addit2 === void 0 ? void 0 : _challanDetails$addit2.longitude;
|
|
7747
|
+
const addressFallback = challanDetails === null || challanDetails === void 0 ? void 0 : (_challanDetails$addre = challanDetails.address) === null || _challanDetails$addre === void 0 ? void 0 : _challanDetails$addre.addressLine1;
|
|
7748
|
+
let location = addressFallback;
|
|
7749
|
+
if (latitude && longitude) {
|
|
7750
|
+
try {
|
|
7751
|
+
const geoLocation = await getLocationName(latitude, longitude);
|
|
7752
|
+
if (geoLocation) {
|
|
7753
|
+
location = geoLocation;
|
|
7754
|
+
}
|
|
7755
|
+
} catch (err) {
|
|
7756
|
+
console.warn("Reverse geocoding failed, using address fallback", err);
|
|
7757
|
+
}
|
|
7758
|
+
}
|
|
7711
7759
|
const challan = {
|
|
7712
7760
|
...applicationDetails,
|
|
7713
7761
|
...challanEmpData
|
|
@@ -7716,14 +7764,14 @@ const WrapPaymentComponent = props => {
|
|
|
7716
7764
|
let application = challan;
|
|
7717
7765
|
let fileStoreId = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$A3 = applicationDetails.Applications) === null || _applicationDetails$A3 === void 0 ? void 0 : (_applicationDetails$A4 = _applicationDetails$A3[0]) === null || _applicationDetails$A4 === void 0 ? void 0 : _applicationDetails$A4.paymentReceiptFilestoreId;
|
|
7718
7766
|
if (!fileStoreId) {
|
|
7719
|
-
var _payments$
|
|
7767
|
+
var _payments$Payments3;
|
|
7720
7768
|
const payments = await Digit.PaymentService.getReciept(tenantId, business_service, {
|
|
7721
7769
|
receiptNumbers: receiptNumber
|
|
7722
7770
|
});
|
|
7723
7771
|
let response = await Digit.PaymentService.generatePdf(tenantId, {
|
|
7724
7772
|
challan: {
|
|
7725
7773
|
...application,
|
|
7726
|
-
...((payments === null || payments === void 0 ? void 0 : (_payments$
|
|
7774
|
+
...((payments === null || payments === void 0 ? void 0 : (_payments$Payments3 = payments.Payments) === null || _payments$Payments3 === void 0 ? void 0 : _payments$Payments3[0]) || {}),
|
|
7727
7775
|
location
|
|
7728
7776
|
}
|
|
7729
7777
|
}, "challan-notice");
|
|
@@ -7763,13 +7811,13 @@ const WrapPaymentComponent = props => {
|
|
|
7763
7811
|
let fileStoreId = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$h = applicationDetails.hallsBookingApplication) === null || _applicationDetails$h === void 0 ? void 0 : (_applicationDetails$h2 = _applicationDetails$h[0]) === null || _applicationDetails$h2 === void 0 ? void 0 : _applicationDetails$h2.permissionLetterFilestoreId;
|
|
7764
7812
|
const generatePdfKeyForTL = "chb-permissionletter";
|
|
7765
7813
|
if (!fileStoreId) {
|
|
7766
|
-
var _payments$
|
|
7814
|
+
var _payments$Payments4;
|
|
7767
7815
|
const payments = await Digit.PaymentService.getReciept(tenantId, business_service, {
|
|
7768
7816
|
receiptNumbers: receiptNumber
|
|
7769
7817
|
});
|
|
7770
7818
|
const response = await Digit.PaymentService.generatePdf(tenantId, {
|
|
7771
7819
|
Payments: [{
|
|
7772
|
-
...((payments === null || payments === void 0 ? void 0 : (_payments$
|
|
7820
|
+
...((payments === null || payments === void 0 ? void 0 : (_payments$Payments4 = payments.Payments) === null || _payments$Payments4 === void 0 ? void 0 : _payments$Payments4[0]) || {}),
|
|
7773
7821
|
...application
|
|
7774
7822
|
}]
|
|
7775
7823
|
}, generatePdfKeyForTL);
|
|
@@ -7815,13 +7863,13 @@ const WrapPaymentComponent = props => {
|
|
|
7815
7863
|
};
|
|
7816
7864
|
let fileStoreId = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$h3 = applicationDetails.hallsBookingApplication) === null || _applicationDetails$h3 === void 0 ? void 0 : (_applicationDetails$h4 = _applicationDetails$h3[0]) === null || _applicationDetails$h4 === void 0 ? void 0 : _applicationDetails$h4.paymentReceiptFilestoreId;
|
|
7817
7865
|
if (!fileStoreId) {
|
|
7818
|
-
var _payments$
|
|
7866
|
+
var _payments$Payments5, _response, _response2;
|
|
7819
7867
|
let response = {
|
|
7820
7868
|
filestoreIds: [payments === null || payments === void 0 ? void 0 : payments.fileStoreId]
|
|
7821
7869
|
};
|
|
7822
7870
|
response = await Digit.PaymentService.generatePdf(tenantId, {
|
|
7823
7871
|
Payments: [{
|
|
7824
|
-
...((payments === null || payments === void 0 ? void 0 : (_payments$
|
|
7872
|
+
...((payments === null || payments === void 0 ? void 0 : (_payments$Payments5 = payments.Payments) === null || _payments$Payments5 === void 0 ? void 0 : _payments$Payments5[0]) || {}),
|
|
7825
7873
|
...application
|
|
7826
7874
|
}]
|
|
7827
7875
|
}, "chbservice-receipt");
|
|
@@ -7858,13 +7906,13 @@ const WrapPaymentComponent = props => {
|
|
|
7858
7906
|
let application = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$A5 = applicationDetails.Applications) === null || _applicationDetails$A5 === void 0 ? void 0 : _applicationDetails$A5[0];
|
|
7859
7907
|
let fileStoreId = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$A6 = applicationDetails.Applications) === null || _applicationDetails$A6 === void 0 ? void 0 : (_applicationDetails$A7 = _applicationDetails$A6[0]) === null || _applicationDetails$A7 === void 0 ? void 0 : _applicationDetails$A7.paymentReceiptFilestoreId;
|
|
7860
7908
|
if (!fileStoreId) {
|
|
7861
|
-
var _payments$
|
|
7909
|
+
var _payments$Payments6;
|
|
7862
7910
|
const payments = await Digit.PaymentService.getReciept(tenantId, business_service, {
|
|
7863
7911
|
receiptNumbers: receiptNumber
|
|
7864
7912
|
});
|
|
7865
7913
|
let response = await Digit.PaymentService.generatePdf(tenantId, {
|
|
7866
7914
|
Payments: [{
|
|
7867
|
-
...((payments === null || payments === void 0 ? void 0 : (_payments$
|
|
7915
|
+
...((payments === null || payments === void 0 ? void 0 : (_payments$Payments6 = payments.Payments) === null || _payments$Payments6 === void 0 ? void 0 : _payments$Payments6[0]) || {}),
|
|
7868
7916
|
...application
|
|
7869
7917
|
}]
|
|
7870
7918
|
}, "ndc-receipt");
|
|
@@ -7893,13 +7941,13 @@ const WrapPaymentComponent = props => {
|
|
|
7893
7941
|
let application = new_data;
|
|
7894
7942
|
let fileStoreId = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$B = applicationDetails.BookingApplication) === null || _applicationDetails$B === void 0 ? void 0 : (_applicationDetails$B2 = _applicationDetails$B[0]) === null || _applicationDetails$B2 === void 0 ? void 0 : _applicationDetails$B2.paymentReceiptFilestoreId;
|
|
7895
7943
|
if (!fileStoreId) {
|
|
7896
|
-
var _payments$
|
|
7944
|
+
var _payments$Payments7;
|
|
7897
7945
|
const payments = await Digit.PaymentService.getReciept(tenantId, business_service, {
|
|
7898
7946
|
receiptNumbers: receiptNumber
|
|
7899
7947
|
});
|
|
7900
7948
|
let response = await Digit.PaymentService.generatePdf(tenantId, {
|
|
7901
7949
|
Payments: [{
|
|
7902
|
-
...((payments === null || payments === void 0 ? void 0 : (_payments$
|
|
7950
|
+
...((payments === null || payments === void 0 ? void 0 : (_payments$Payments7 = payments.Payments) === null || _payments$Payments7 === void 0 ? void 0 : _payments$Payments7[0]) || {}),
|
|
7903
7951
|
...application
|
|
7904
7952
|
}]
|
|
7905
7953
|
}, "adv-bill");
|
|
@@ -7927,13 +7975,13 @@ const WrapPaymentComponent = props => {
|
|
|
7927
7975
|
let application = applicationDetails;
|
|
7928
7976
|
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;
|
|
7929
7977
|
if (!fileStoreId) {
|
|
7930
|
-
var _payments$
|
|
7978
|
+
var _payments$Payments8;
|
|
7931
7979
|
const payments = await Digit.PaymentService.getReciept(tenantId, business_service, {
|
|
7932
7980
|
receiptNumbers: receiptNumber
|
|
7933
7981
|
});
|
|
7934
7982
|
let response = await Digit.PaymentService.generatePdf(tenantId, {
|
|
7935
7983
|
Payments: [{
|
|
7936
|
-
...((payments === null || payments === void 0 ? void 0 : (_payments$
|
|
7984
|
+
...((payments === null || payments === void 0 ? void 0 : (_payments$Payments8 = payments.Payments) === null || _payments$Payments8 === void 0 ? void 0 : _payments$Payments8[0]) || {}),
|
|
7937
7985
|
...application
|
|
7938
7986
|
}]
|
|
7939
7987
|
}, "rentandlease-receipt");
|
|
@@ -7989,7 +8037,7 @@ const WrapPaymentComponent = props => {
|
|
|
7989
8037
|
gap: "4px"
|
|
7990
8038
|
};
|
|
7991
8039
|
const printRecieptNew = async payment => {
|
|
7992
|
-
var _payments$Payments$
|
|
8040
|
+
var _payments$Payments$3;
|
|
7993
8041
|
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
7994
8042
|
const state = Digit.ULBService.getStateId();
|
|
7995
8043
|
let paymentArray = [];
|
|
@@ -7997,7 +8045,7 @@ const WrapPaymentComponent = props => {
|
|
|
7997
8045
|
receiptNumbers: payment.Payments[0].paymentDetails[0].receiptNumber
|
|
7998
8046
|
});
|
|
7999
8047
|
let response = {
|
|
8000
|
-
filestoreIds: [(_payments$Payments$
|
|
8048
|
+
filestoreIds: [(_payments$Payments$3 = payments.Payments[0]) === null || _payments$Payments$3 === void 0 ? void 0 : _payments$Payments$3.fileStoreId]
|
|
8001
8049
|
};
|
|
8002
8050
|
{
|
|
8003
8051
|
let assessmentYear = "",
|
|
@@ -8495,6 +8543,36 @@ const WrapPaymentComponent = props => {
|
|
|
8495
8543
|
marginTop: "10px",
|
|
8496
8544
|
marginLeft: "100px"
|
|
8497
8545
|
}
|
|
8546
|
+
}))) : null, business_service == "pet-services" ? /*#__PURE__*/React.createElement("div", {
|
|
8547
|
+
style: {
|
|
8548
|
+
display: "flex",
|
|
8549
|
+
alignItems: "center",
|
|
8550
|
+
justifyContent: "space-between",
|
|
8551
|
+
flexWrap: "wrap",
|
|
8552
|
+
gap: "20px"
|
|
8553
|
+
}
|
|
8554
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
8555
|
+
style: IconWrapperStyle,
|
|
8556
|
+
onClick: printing ? undefined : printPetReceipt
|
|
8557
|
+
}, printing ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("svg", {
|
|
8558
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8559
|
+
height: "24px",
|
|
8560
|
+
viewBox: "0 0 24 24",
|
|
8561
|
+
width: "24px",
|
|
8562
|
+
fill: "#a82227"
|
|
8563
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
8564
|
+
d: "M0 0h24v24H0V0z",
|
|
8565
|
+
fill: "none"
|
|
8566
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
8567
|
+
d: "M19 9h-4V3H9v6H5l7 7 7-7zm-8 2V5h2v6h1.17L12 13.17 9.83 11H11zm-6 7h14v2H5z"
|
|
8568
|
+
})), t("CHB_FEE_RECEIPT"))), business_service == "pet-services" && /*#__PURE__*/React.createElement(Link, {
|
|
8569
|
+
to: `/digit-ui/citizen`
|
|
8570
|
+
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
8571
|
+
label: t("CORE_COMMON_GO_TO_HOME"),
|
|
8572
|
+
style: {
|
|
8573
|
+
marginTop: "10px",
|
|
8574
|
+
marginLeft: "100px"
|
|
8575
|
+
}
|
|
8498
8576
|
}))) : null, business_service == "sv-services" && /*#__PURE__*/React.createElement(Link, {
|
|
8499
8577
|
to: `/digit-ui/citizen`
|
|
8500
8578
|
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
@@ -8531,7 +8609,7 @@ const WrapPaymentComponent = props => {
|
|
|
8531
8609
|
to: `/digit-ui/citizen`
|
|
8532
8610
|
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
8533
8611
|
label: t("CORE_COMMON_GO_TO_HOME")
|
|
8534
|
-
}))) : !(business_service === "adv-services" || business_service === "chb-services" || business_service === "NDC" || business_service === "Challan_Generation" || business_service === "rl-services") && /*#__PURE__*/React.createElement("div", {
|
|
8612
|
+
}))) : !(business_service === "adv-services" || business_service === "pet-services" || business_service === "chb-services" || business_service === "NDC" || business_service === "Challan_Generation" || business_service === "rl-services") && /*#__PURE__*/React.createElement("div", {
|
|
8535
8613
|
style: {
|
|
8536
8614
|
display: "flex",
|
|
8537
8615
|
justifyContent: "space-between",
|
|
@@ -11286,6 +11364,7 @@ const BillDetails$1 = ({
|
|
|
11286
11364
|
}, year_bill.amount));
|
|
11287
11365
|
})));
|
|
11288
11366
|
};
|
|
11367
|
+
const isTL = businessService === "TL";
|
|
11289
11368
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StatusTable, null, !checkFSM && bill && config.details.map((obj, index) => {
|
|
11290
11369
|
const value = obj.keyPath.reduce((acc, key) => {
|
|
11291
11370
|
if (typeof key === "function") acc = key(acc);else acc = acc[key];
|
|
@@ -13992,15 +14071,28 @@ const SuccessfulPayment$1 = props => {
|
|
|
13992
14071
|
if (chbPermissionLoading) return;
|
|
13993
14072
|
setChbPermissionLoading(true);
|
|
13994
14073
|
try {
|
|
13995
|
-
var _applicationDetails$c,
|
|
14074
|
+
var _applicationDetails$c, _challanDetails$addit, _challanDetails$addit2, _challanDetails$addre, _applicationDetails$A3, _applicationDetails$A4;
|
|
13996
14075
|
const applicationDetails = await Digit.ChallanGenerationService.search({
|
|
13997
14076
|
tenantId,
|
|
13998
14077
|
filters: {
|
|
13999
14078
|
challanNo: consumerCode
|
|
14000
14079
|
}
|
|
14001
14080
|
});
|
|
14002
|
-
const
|
|
14003
|
-
|
|
14081
|
+
const challanDetails = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$c = applicationDetails.challans) === null || _applicationDetails$c === void 0 ? void 0 : _applicationDetails$c[0];
|
|
14082
|
+
const latitude = challanDetails === null || challanDetails === void 0 ? void 0 : (_challanDetails$addit = challanDetails.additionalDetail) === null || _challanDetails$addit === void 0 ? void 0 : _challanDetails$addit.latitude;
|
|
14083
|
+
const longitude = challanDetails === null || challanDetails === void 0 ? void 0 : (_challanDetails$addit2 = challanDetails.additionalDetail) === null || _challanDetails$addit2 === void 0 ? void 0 : _challanDetails$addit2.longitude;
|
|
14084
|
+
const addressFallback = challanDetails === null || challanDetails === void 0 ? void 0 : (_challanDetails$addre = challanDetails.address) === null || _challanDetails$addre === void 0 ? void 0 : _challanDetails$addre.addressLine1;
|
|
14085
|
+
let location = addressFallback;
|
|
14086
|
+
if (latitude && longitude) {
|
|
14087
|
+
try {
|
|
14088
|
+
const geoLocation = await getLocationName(latitude, longitude);
|
|
14089
|
+
if (geoLocation) {
|
|
14090
|
+
location = geoLocation;
|
|
14091
|
+
}
|
|
14092
|
+
} catch (err) {
|
|
14093
|
+
console.warn("Reverse geocoding failed, using address fallback", err);
|
|
14094
|
+
}
|
|
14095
|
+
}
|
|
14004
14096
|
const challan = {
|
|
14005
14097
|
...applicationDetails,
|
|
14006
14098
|
...challanEmpData
|
|
@@ -14180,13 +14272,21 @@ const SuccessfulPayment$1 = props => {
|
|
|
14180
14272
|
receiptNumbers: receiptNumber
|
|
14181
14273
|
});
|
|
14182
14274
|
try {
|
|
14183
|
-
var _payments$Payments$4;
|
|
14275
|
+
var _applicationDetails$P, _payments$Payments$4;
|
|
14276
|
+
const applicationDetails = await Digit.PTRService.search({
|
|
14277
|
+
tenantId,
|
|
14278
|
+
filters: {
|
|
14279
|
+
applicationNumber: consumerCode
|
|
14280
|
+
}
|
|
14281
|
+
});
|
|
14282
|
+
const application = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$P = applicationDetails.PetRegistrationApplications) === null || _applicationDetails$P === void 0 ? void 0 : _applicationDetails$P[0];
|
|
14184
14283
|
let fileStoreId = (_payments$Payments$4 = payments.Payments[0]) === null || _payments$Payments$4 === void 0 ? void 0 : _payments$Payments$4.fileStoreId;
|
|
14185
14284
|
if (!fileStoreId) {
|
|
14186
14285
|
var _payments$Payments6;
|
|
14187
14286
|
let response = await Digit.PaymentService.generatePdf(tenantId, {
|
|
14188
14287
|
Payments: [{
|
|
14189
|
-
...((payments === null || payments === void 0 ? void 0 : (_payments$Payments6 = payments.Payments) === null || _payments$Payments6 === void 0 ? void 0 : _payments$Payments6[0]) || {})
|
|
14288
|
+
...((payments === null || payments === void 0 ? void 0 : (_payments$Payments6 = payments.Payments) === null || _payments$Payments6 === void 0 ? void 0 : _payments$Payments6[0]) || {}),
|
|
14289
|
+
application
|
|
14190
14290
|
}]
|
|
14191
14291
|
}, "pet-receipt-employee");
|
|
14192
14292
|
fileStoreId = response === null || response === void 0 ? void 0 : response.filestoreIds[0];
|