@mseva/digit-ui-module-common 1.1.88 → 1.1.89
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 +108 -43
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
package/dist/index.modern.js
CHANGED
|
@@ -7410,14 +7410,10 @@ 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);
|
|
7414
7413
|
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);
|
|
7416
7414
|
}
|
|
7417
|
-
console.log("licenseType:", licenseType);
|
|
7418
7415
|
const state = Digit.ULBService.getStateId();
|
|
7419
7416
|
const fee = paymentData === null || paymentData === void 0 ? void 0 : paymentData.totalAmountPaid;
|
|
7420
|
-
console.log("fee here here", fee);
|
|
7421
7417
|
const amountinwords = amountToWords(fee);
|
|
7422
7418
|
let response = {
|
|
7423
7419
|
filestoreIds: [(_payments$Payments$ = payments.Payments[0]) === null || _payments$Payments$ === void 0 ? void 0 : _payments$Payments$.fileStoreId]
|
|
@@ -7509,7 +7505,8 @@ const WrapPaymentComponent = props => {
|
|
|
7509
7505
|
} else {
|
|
7510
7506
|
response = await Digit.PaymentService.generatePdf(tenantId, {
|
|
7511
7507
|
Payments: [{
|
|
7512
|
-
...paymentData
|
|
7508
|
+
...paymentData,
|
|
7509
|
+
amountinwords
|
|
7513
7510
|
}]
|
|
7514
7511
|
}, generatePdfKey);
|
|
7515
7512
|
}
|
|
@@ -7522,7 +7519,20 @@ const WrapPaymentComponent = props => {
|
|
|
7522
7519
|
fileStoreIds: response.filestoreIds[0]
|
|
7523
7520
|
});
|
|
7524
7521
|
if (fileStore && fileStore[response.filestoreIds[0]]) {
|
|
7525
|
-
|
|
7522
|
+
const receiptUrl = fileStore[response.filestoreIds[0]];
|
|
7523
|
+
if (business_service === "obpas_noc") {
|
|
7524
|
+
const urlObj = new URL(receiptUrl);
|
|
7525
|
+
const downloadUrl = `${window.origin}${urlObj.pathname}${urlObj.search}`;
|
|
7526
|
+
try {
|
|
7527
|
+
const res = await fetch(downloadUrl);
|
|
7528
|
+
const blob = await res.blob();
|
|
7529
|
+
downloadPdf(blob, `receipt_${receiptNumber || "obpas_noc"}.pdf`);
|
|
7530
|
+
} catch (err) {
|
|
7531
|
+
window.open(downloadUrl, "_blank");
|
|
7532
|
+
}
|
|
7533
|
+
} else {
|
|
7534
|
+
window.open(receiptUrl, "_blank");
|
|
7535
|
+
}
|
|
7526
7536
|
}
|
|
7527
7537
|
setPrinting(false);
|
|
7528
7538
|
};
|
|
@@ -8521,7 +8531,7 @@ const WrapPaymentComponent = props => {
|
|
|
8521
8531
|
to: `/digit-ui/citizen`
|
|
8522
8532
|
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
8523
8533
|
label: t("CORE_COMMON_GO_TO_HOME")
|
|
8524
|
-
}))) : !(business_service === "adv-services" || business_service === "chb-services" || business_service === "NDC" || business_service === "Challan_Generation") && /*#__PURE__*/React.createElement("div", {
|
|
8534
|
+
}))) : !(business_service === "adv-services" || business_service === "chb-services" || business_service === "NDC" || business_service === "Challan_Generation" || business_service === "rl-services") && /*#__PURE__*/React.createElement("div", {
|
|
8525
8535
|
style: {
|
|
8526
8536
|
display: "flex",
|
|
8527
8537
|
justifyContent: "space-between",
|
|
@@ -13560,11 +13570,45 @@ const SuccessfulPayment$1 = props => {
|
|
|
13560
13570
|
setTimeout(() => URL.revokeObjectURL(link.href), 7000);
|
|
13561
13571
|
}
|
|
13562
13572
|
};
|
|
13573
|
+
const printRLReceipt = async () => {
|
|
13574
|
+
if (printing) return;
|
|
13575
|
+
setPrinting(true);
|
|
13576
|
+
try {
|
|
13577
|
+
var _payments$Payments$3;
|
|
13578
|
+
const applicationDetails = await Digit.RentAndLeaseService.search({
|
|
13579
|
+
tenantId,
|
|
13580
|
+
filters: {
|
|
13581
|
+
applicationNumbers: consumerCode
|
|
13582
|
+
}
|
|
13583
|
+
});
|
|
13584
|
+
let application = applicationDetails;
|
|
13585
|
+
const payments = await Digit.PaymentService.getReciept(tenantId, businessService, {
|
|
13586
|
+
receiptNumbers: receiptNumber
|
|
13587
|
+
});
|
|
13588
|
+
let fileStoreId = payments === null || payments === void 0 ? void 0 : (_payments$Payments$3 = payments.Payments[0]) === null || _payments$Payments$3 === void 0 ? void 0 : _payments$Payments$3.fileStoreId;
|
|
13589
|
+
if (!fileStoreId) {
|
|
13590
|
+
var _payments$Payments;
|
|
13591
|
+
let response = await Digit.PaymentService.generatePdf(tenantId, {
|
|
13592
|
+
Payments: [{
|
|
13593
|
+
...((payments === null || payments === void 0 ? void 0 : (_payments$Payments = payments.Payments) === null || _payments$Payments === void 0 ? void 0 : _payments$Payments[0]) || {}),
|
|
13594
|
+
...application
|
|
13595
|
+
}]
|
|
13596
|
+
}, "rentandlease-receipt");
|
|
13597
|
+
fileStoreId = response === null || response === void 0 ? void 0 : response.filestoreIds[0];
|
|
13598
|
+
}
|
|
13599
|
+
const fileStore = await Digit.PaymentService.printReciept(tenantId, {
|
|
13600
|
+
fileStoreIds: fileStoreId
|
|
13601
|
+
});
|
|
13602
|
+
window.open(fileStore[fileStoreId], "_blank");
|
|
13603
|
+
} finally {
|
|
13604
|
+
setPrinting(false);
|
|
13605
|
+
}
|
|
13606
|
+
};
|
|
13563
13607
|
const printChallanReceipt = async () => {
|
|
13564
13608
|
if (printing) return;
|
|
13565
13609
|
setPrinting(true);
|
|
13566
13610
|
try {
|
|
13567
|
-
var
|
|
13611
|
+
var _payments$Payments$4;
|
|
13568
13612
|
const applicationDetails = await Digit.ChallanGenerationService.search({
|
|
13569
13613
|
tenantId,
|
|
13570
13614
|
filters: {
|
|
@@ -13575,17 +13619,16 @@ const SuccessfulPayment$1 = props => {
|
|
|
13575
13619
|
...applicationDetails,
|
|
13576
13620
|
...challanEmpData
|
|
13577
13621
|
};
|
|
13578
|
-
console.log("applicationDetails", applicationDetails);
|
|
13579
13622
|
let application = challan;
|
|
13580
|
-
|
|
13623
|
+
const payments = await Digit.PaymentService.getReciept(tenantId, businessService, {
|
|
13624
|
+
receiptNumbers: receiptNumber
|
|
13625
|
+
});
|
|
13626
|
+
let fileStoreId = payments === null || payments === void 0 ? void 0 : (_payments$Payments$4 = payments.Payments[0]) === null || _payments$Payments$4 === void 0 ? void 0 : _payments$Payments$4.fileStoreId;
|
|
13581
13627
|
if (!fileStoreId) {
|
|
13582
|
-
var _payments$
|
|
13583
|
-
const payments = await Digit.PaymentService.getReciept(tenantId, businessService, {
|
|
13584
|
-
receiptNumbers: receiptNumber
|
|
13585
|
-
});
|
|
13628
|
+
var _payments$Payments2;
|
|
13586
13629
|
let response = await Digit.PaymentService.generatePdf(tenantId, {
|
|
13587
13630
|
Payments: [{
|
|
13588
|
-
...((payments === null || payments === void 0 ? void 0 : (_payments$
|
|
13631
|
+
...((payments === null || payments === void 0 ? void 0 : (_payments$Payments2 = payments.Payments) === null || _payments$Payments2 === void 0 ? void 0 : _payments$Payments2[0]) || {}),
|
|
13589
13632
|
challan: application
|
|
13590
13633
|
}]
|
|
13591
13634
|
}, "challangeneration-receipt");
|
|
@@ -13603,7 +13646,7 @@ const SuccessfulPayment$1 = props => {
|
|
|
13603
13646
|
if (chbPermissionLoading) return;
|
|
13604
13647
|
setChbPermissionLoading(true);
|
|
13605
13648
|
try {
|
|
13606
|
-
var _applicationDetails$c, _applicationDetails$c2, _applicationDetails$c3, _applicationDetails$c4, _applicationDetails$c5, _applicationDetails$c6, _applicationDetails$
|
|
13649
|
+
var _applicationDetails$c, _applicationDetails$c2, _applicationDetails$c3, _applicationDetails$c4, _applicationDetails$c5, _applicationDetails$c6, _applicationDetails$A, _applicationDetails$A2;
|
|
13607
13650
|
const applicationDetails = await Digit.ChallanGenerationService.search({
|
|
13608
13651
|
tenantId,
|
|
13609
13652
|
filters: {
|
|
@@ -13618,16 +13661,16 @@ const SuccessfulPayment$1 = props => {
|
|
|
13618
13661
|
};
|
|
13619
13662
|
console.log("applicationDetails", applicationDetails);
|
|
13620
13663
|
let application = challan;
|
|
13621
|
-
let fileStoreId = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
13664
|
+
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;
|
|
13622
13665
|
if (!fileStoreId) {
|
|
13623
|
-
var _payments$
|
|
13666
|
+
var _payments$Payments3;
|
|
13624
13667
|
const payments = await Digit.PaymentService.getReciept(tenantId, businessService, {
|
|
13625
13668
|
receiptNumbers: receiptNumber
|
|
13626
13669
|
});
|
|
13627
13670
|
let response = await Digit.PaymentService.generatePdf(tenantId, {
|
|
13628
13671
|
challan: {
|
|
13629
13672
|
...application,
|
|
13630
|
-
...((payments === null || payments === void 0 ? void 0 : (_payments$
|
|
13673
|
+
...((payments === null || payments === void 0 ? void 0 : (_payments$Payments3 = payments.Payments) === null || _payments$Payments3 === void 0 ? void 0 : _payments$Payments3[0]) || {}),
|
|
13631
13674
|
location
|
|
13632
13675
|
}
|
|
13633
13676
|
}, "challan-notice");
|
|
@@ -13667,13 +13710,13 @@ const SuccessfulPayment$1 = props => {
|
|
|
13667
13710
|
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;
|
|
13668
13711
|
const generatePdfKeyForTL = "chb-permissionletter";
|
|
13669
13712
|
if (!fileStoreId) {
|
|
13670
|
-
var _payments$
|
|
13713
|
+
var _payments$Payments4;
|
|
13671
13714
|
const payments = await Digit.PaymentService.getReciept(tenantId, businessService, {
|
|
13672
13715
|
receiptNumbers: receiptNumber
|
|
13673
13716
|
});
|
|
13674
13717
|
const response = await Digit.PaymentService.generatePdf(tenantId, {
|
|
13675
13718
|
Payments: [{
|
|
13676
|
-
...((payments === null || payments === void 0 ? void 0 : (_payments$
|
|
13719
|
+
...((payments === null || payments === void 0 ? void 0 : (_payments$Payments4 = payments.Payments) === null || _payments$Payments4 === void 0 ? void 0 : _payments$Payments4[0]) || {}),
|
|
13677
13720
|
...application
|
|
13678
13721
|
}]
|
|
13679
13722
|
}, generatePdfKeyForTL);
|
|
@@ -13719,16 +13762,16 @@ const SuccessfulPayment$1 = props => {
|
|
|
13719
13762
|
};
|
|
13720
13763
|
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;
|
|
13721
13764
|
if (!fileStoreId) {
|
|
13722
|
-
var _payments$Payments$
|
|
13765
|
+
var _payments$Payments$5, _payments$Payments5, _response, _response2;
|
|
13723
13766
|
const payments = await Digit.PaymentService.getReciept(tenantId, businessService, {
|
|
13724
13767
|
receiptNumbers: receiptNumber
|
|
13725
13768
|
});
|
|
13726
13769
|
let response = {
|
|
13727
|
-
filestoreIds: [(_payments$Payments$
|
|
13770
|
+
filestoreIds: [(_payments$Payments$5 = payments.Payments[0]) === null || _payments$Payments$5 === void 0 ? void 0 : _payments$Payments$5.fileStoreId]
|
|
13728
13771
|
};
|
|
13729
13772
|
response = await Digit.PaymentService.generatePdf(tenantId, {
|
|
13730
13773
|
Payments: [{
|
|
13731
|
-
...((payments === null || payments === void 0 ? void 0 : (_payments$
|
|
13774
|
+
...((payments === null || payments === void 0 ? void 0 : (_payments$Payments5 = payments.Payments) === null || _payments$Payments5 === void 0 ? void 0 : _payments$Payments5[0]) || {}),
|
|
13732
13775
|
...application
|
|
13733
13776
|
}]
|
|
13734
13777
|
}, "chbservice-receipt");
|
|
@@ -13764,13 +13807,13 @@ const SuccessfulPayment$1 = props => {
|
|
|
13764
13807
|
let application = new_data;
|
|
13765
13808
|
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;
|
|
13766
13809
|
if (!fileStoreId) {
|
|
13767
|
-
var _payments$
|
|
13810
|
+
var _payments$Payments6;
|
|
13768
13811
|
const payments = await Digit.PaymentService.getReciept(tenantId, businessService, {
|
|
13769
13812
|
receiptNumbers: receiptNumber
|
|
13770
13813
|
});
|
|
13771
13814
|
let response = await Digit.PaymentService.generatePdf(tenantId, {
|
|
13772
13815
|
Payments: [{
|
|
13773
|
-
...((payments === null || payments === void 0 ? void 0 : (_payments$
|
|
13816
|
+
...((payments === null || payments === void 0 ? void 0 : (_payments$Payments6 = payments.Payments) === null || _payments$Payments6 === void 0 ? void 0 : _payments$Payments6[0]) || {}),
|
|
13774
13817
|
...application
|
|
13775
13818
|
}]
|
|
13776
13819
|
}, "adv-bill");
|
|
@@ -13791,13 +13834,13 @@ const SuccessfulPayment$1 = props => {
|
|
|
13791
13834
|
receiptNumbers: receiptNumber
|
|
13792
13835
|
});
|
|
13793
13836
|
try {
|
|
13794
|
-
var _payments$Payments$
|
|
13795
|
-
let fileStoreId = (_payments$Payments$
|
|
13837
|
+
var _payments$Payments$6;
|
|
13838
|
+
let fileStoreId = (_payments$Payments$6 = payments.Payments[0]) === null || _payments$Payments$6 === void 0 ? void 0 : _payments$Payments$6.fileStoreId;
|
|
13796
13839
|
if (!fileStoreId) {
|
|
13797
|
-
var _payments$
|
|
13840
|
+
var _payments$Payments7;
|
|
13798
13841
|
let response = await Digit.PaymentService.generatePdf(tenantId, {
|
|
13799
13842
|
Payments: [{
|
|
13800
|
-
...((payments === null || payments === void 0 ? void 0 : (_payments$
|
|
13843
|
+
...((payments === null || payments === void 0 ? void 0 : (_payments$Payments7 = payments.Payments) === null || _payments$Payments7 === void 0 ? void 0 : _payments$Payments7[0]) || {})
|
|
13801
13844
|
}]
|
|
13802
13845
|
}, "pet-receipt-employee");
|
|
13803
13846
|
fileStoreId = response === null || response === void 0 ? void 0 : response.filestoreIds[0];
|
|
@@ -13814,7 +13857,7 @@ const SuccessfulPayment$1 = props => {
|
|
|
13814
13857
|
if (printing) return;
|
|
13815
13858
|
setPrinting(true);
|
|
13816
13859
|
try {
|
|
13817
|
-
var _applicationDetails$
|
|
13860
|
+
var _applicationDetails$A3, _applicationDetails$A4, _applicationDetails$A5;
|
|
13818
13861
|
console.log("consumerCode for ndc", consumerCode);
|
|
13819
13862
|
console.log("tenantId for ndc", tenantId);
|
|
13820
13863
|
const applicationDetails = await Digit.NDCService.NDCsearch({
|
|
@@ -13823,16 +13866,16 @@ const SuccessfulPayment$1 = props => {
|
|
|
13823
13866
|
applicationNo: consumerCode
|
|
13824
13867
|
}
|
|
13825
13868
|
});
|
|
13826
|
-
let application = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
13827
|
-
let fileStoreId = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
13869
|
+
let application = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$A3 = applicationDetails.Applications) === null || _applicationDetails$A3 === void 0 ? void 0 : _applicationDetails$A3[0];
|
|
13870
|
+
let fileStoreId = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$A4 = applicationDetails.Applications) === null || _applicationDetails$A4 === void 0 ? void 0 : (_applicationDetails$A5 = _applicationDetails$A4[0]) === null || _applicationDetails$A5 === void 0 ? void 0 : _applicationDetails$A5.paymentReceiptFilestoreId;
|
|
13828
13871
|
if (!fileStoreId) {
|
|
13829
|
-
var _payments$
|
|
13872
|
+
var _payments$Payments8;
|
|
13830
13873
|
const payments = await Digit.PaymentService.getReciept(tenantId, businessService, {
|
|
13831
13874
|
receiptNumbers: receiptNumber
|
|
13832
13875
|
});
|
|
13833
13876
|
let response = await Digit.PaymentService.generatePdf(tenantId, {
|
|
13834
13877
|
Payments: [{
|
|
13835
|
-
...((payments === null || payments === void 0 ? void 0 : (_payments$
|
|
13878
|
+
...((payments === null || payments === void 0 ? void 0 : (_payments$Payments8 = payments.Payments) === null || _payments$Payments8 === void 0 ? void 0 : _payments$Payments8[0]) || {}),
|
|
13836
13879
|
...application
|
|
13837
13880
|
}]
|
|
13838
13881
|
}, "ndc-receipt");
|
|
@@ -13968,7 +14011,7 @@ const SuccessfulPayment$1 = props => {
|
|
|
13968
14011
|
}
|
|
13969
14012
|
};
|
|
13970
14013
|
const printReciept = async () => {
|
|
13971
|
-
var _payments$Payments$
|
|
14014
|
+
var _payments$Payments$7, _payments$Payments$8;
|
|
13972
14015
|
if (printing) return;
|
|
13973
14016
|
setPrinting(true);
|
|
13974
14017
|
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
@@ -13977,10 +14020,10 @@ const SuccessfulPayment$1 = props => {
|
|
|
13977
14020
|
receiptNumbers: receiptNumber
|
|
13978
14021
|
});
|
|
13979
14022
|
let response = {
|
|
13980
|
-
filestoreIds: [(_payments$Payments$
|
|
14023
|
+
filestoreIds: [(_payments$Payments$7 = payments.Payments[0]) === null || _payments$Payments$7 === void 0 ? void 0 : _payments$Payments$7.fileStoreId]
|
|
13981
14024
|
};
|
|
13982
14025
|
let fileStoreTenant;
|
|
13983
|
-
if (!((_payments$Payments$
|
|
14026
|
+
if (!((_payments$Payments$8 = payments.Payments[0]) !== null && _payments$Payments$8 !== void 0 && _payments$Payments$8.fileStoreId)) {
|
|
13984
14027
|
let assessmentYear = "";
|
|
13985
14028
|
let count = 0;
|
|
13986
14029
|
let toDate, fromDate;
|
|
@@ -14047,7 +14090,7 @@ const SuccessfulPayment$1 = props => {
|
|
|
14047
14090
|
await Digit.Utils.downloadReceipt(consumercode, businessService, "consolidatedreceipt", tenantid);
|
|
14048
14091
|
};
|
|
14049
14092
|
const printRecieptNew = async payment => {
|
|
14050
|
-
var _payments$Payments$
|
|
14093
|
+
var _payments$Payments$9;
|
|
14051
14094
|
console.log("paymentpayment", payment, payment.Payments[0].paymentDetails[0].receiptNumber, payment.Payments[0]);
|
|
14052
14095
|
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
14053
14096
|
const state = Digit.ULBService.getStateId();
|
|
@@ -14056,7 +14099,7 @@ const SuccessfulPayment$1 = props => {
|
|
|
14056
14099
|
receiptNumbers: payment.Payments[0].paymentDetails[0].receiptNumber
|
|
14057
14100
|
});
|
|
14058
14101
|
let response = {
|
|
14059
|
-
filestoreIds: [(_payments$Payments$
|
|
14102
|
+
filestoreIds: [(_payments$Payments$9 = payments.Payments[0]) === null || _payments$Payments$9 === void 0 ? void 0 : _payments$Payments$9.fileStoreId]
|
|
14060
14103
|
};
|
|
14061
14104
|
{
|
|
14062
14105
|
let assessmentYear = "",
|
|
@@ -14270,7 +14313,7 @@ const SuccessfulPayment$1 = props => {
|
|
|
14270
14313
|
display: "flex",
|
|
14271
14314
|
justifyContent: "space-evenly"
|
|
14272
14315
|
}
|
|
14273
|
-
}, businessService !== "chb-services" && businessService !== "adv-services" && businessService !== "pet-services" && businessService !== "NDC" && businessService !== "Challan_Generation" && /*#__PURE__*/React.createElement("div", {
|
|
14316
|
+
}, businessService !== "chb-services" && businessService !== "adv-services" && businessService !== "pet-services" && businessService !== "NDC" && businessService !== "Challan_Generation" && businessService !== "rl-services" && /*#__PURE__*/React.createElement("div", {
|
|
14274
14317
|
className: "primary-label-btn d-grid",
|
|
14275
14318
|
style: {
|
|
14276
14319
|
marginLeft: "unset",
|
|
@@ -14499,7 +14542,29 @@ const SuccessfulPayment$1 = props => {
|
|
|
14499
14542
|
fill: "none"
|
|
14500
14543
|
}), /*#__PURE__*/React.createElement("path", {
|
|
14501
14544
|
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"
|
|
14502
|
-
})), t("Challan_Notice")))) : null, businessService == "
|
|
14545
|
+
})), t("Challan_Notice")))) : null, businessService == "rl-services" ? /*#__PURE__*/React.createElement("div", {
|
|
14546
|
+
style: {
|
|
14547
|
+
display: "flex",
|
|
14548
|
+
justifyContent: "flex-end",
|
|
14549
|
+
gap: "20px",
|
|
14550
|
+
marginRight: "20px",
|
|
14551
|
+
marginTop: "15px",
|
|
14552
|
+
marginBottom: "15px"
|
|
14553
|
+
}
|
|
14554
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
14555
|
+
className: "primary-label-btn d-grid",
|
|
14556
|
+
onClick: printing ? undefined : printRLReceipt
|
|
14557
|
+
}, printing ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("svg", {
|
|
14558
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
14559
|
+
height: "24",
|
|
14560
|
+
viewBox: "0 0 24 24",
|
|
14561
|
+
width: "24"
|
|
14562
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
14563
|
+
d: "M0 0h24v24H0z",
|
|
14564
|
+
fill: "none"
|
|
14565
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
14566
|
+
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"
|
|
14567
|
+
})), t("CHB_FEE_RECEIPT")))) : null, businessService == "sv-services" && /*#__PURE__*/React.createElement(Link, {
|
|
14503
14568
|
to: `/digit-ui/citizen`
|
|
14504
14569
|
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
14505
14570
|
label: t("CORE_COMMON_GO_TO_HOME"),
|
|
@@ -14980,7 +15045,7 @@ const amountToWords = num => {
|
|
|
14980
15045
|
return res.trim();
|
|
14981
15046
|
};
|
|
14982
15047
|
let [r, p] = num.toString().split(".").map(x => +x || 0);
|
|
14983
|
-
return (r ? toWords(r)
|
|
15048
|
+
return (r ? "Rupees " + toWords(r) : "") + (p ? (r ? " and " : "") + toWords(p) + " Paise" : "") || "Rupees Zero ";
|
|
14984
15049
|
};
|
|
14985
15050
|
const ChallanData = (tenantId, consumerCode) => {
|
|
14986
15051
|
var _wfData$data, _wfData$data$processI, _officerInstance$assi, _employeeData$data, _employeeData$data$Em, _officerRaw$assignmen, _officerRaw$user;
|