@mseva/digit-ui-module-common 1.1.88-dev.1.13 → 1.1.88-dev.1.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 +480 -118
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
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
|
};
|
|
@@ -7503,6 +7508,7 @@ const WrapPaymentComponent = props => {
|
|
|
7503
7508
|
}]
|
|
7504
7509
|
}, generatePdfKey);
|
|
7505
7510
|
} else {
|
|
7511
|
+
console.log('this else triggered');
|
|
7506
7512
|
response = await Digit.PaymentService.generatePdf(tenantId, {
|
|
7507
7513
|
Payments: [{
|
|
7508
7514
|
...paymentData,
|
|
@@ -7528,6 +7534,7 @@ const WrapPaymentComponent = props => {
|
|
|
7528
7534
|
const blob = await res.blob();
|
|
7529
7535
|
downloadPdf(blob, `receipt_${receiptNumber || "obpas_noc"}.pdf`);
|
|
7530
7536
|
} catch (err) {
|
|
7537
|
+
console.log(err, "error in receipt download");
|
|
7531
7538
|
window.open(downloadUrl, "_blank");
|
|
7532
7539
|
}
|
|
7533
7540
|
} else {
|
|
@@ -8604,7 +8611,7 @@ const CitizenPayment = ({
|
|
|
8604
8611
|
const isResponse = window.location.href.includes("/response");
|
|
8605
8612
|
const isMobile = window.Digit.Utils.browser.isMobile();
|
|
8606
8613
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
8607
|
-
className: "
|
|
8614
|
+
className: "card"
|
|
8608
8615
|
}, /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(AppContainer, null, !isResponse ? /*#__PURE__*/React.createElement("div", {
|
|
8609
8616
|
style: window.location.href.includes("application-overview") || isMobile ? {
|
|
8610
8617
|
marginLeft: "10px"
|
|
@@ -11290,16 +11297,22 @@ const BillDetails$1 = ({
|
|
|
11290
11297
|
}, year_bill.amount));
|
|
11291
11298
|
})));
|
|
11292
11299
|
};
|
|
11300
|
+
const isTL = businessService === "TL";
|
|
11301
|
+
console.log("billDetails==????", billDetails);
|
|
11293
11302
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StatusTable, null, !checkFSM && bill && config.details.map((obj, index) => {
|
|
11294
11303
|
const value = obj.keyPath.reduce((acc, key) => {
|
|
11295
11304
|
if (typeof key === "function") acc = key(acc);else acc = acc[key];
|
|
11296
11305
|
return acc;
|
|
11297
11306
|
}, bill);
|
|
11298
|
-
return /*#__PURE__*/React.createElement(Row, {
|
|
11307
|
+
return /*#__PURE__*/React.createElement(Row, Object.assign({
|
|
11299
11308
|
key: index + "bill",
|
|
11300
11309
|
label: t(obj.keyValue),
|
|
11301
11310
|
text: value
|
|
11302
|
-
}
|
|
11311
|
+
}, isTL ? {
|
|
11312
|
+
textStyle: {
|
|
11313
|
+
textAlign: "right"
|
|
11314
|
+
}
|
|
11315
|
+
} : {}));
|
|
11303
11316
|
})), checkFSM ? /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
|
|
11304
11317
|
label: t("ES_PAYMENT_DETAILS_AMOUNT_PER_TRIP"),
|
|
11305
11318
|
textStyle: {
|
|
@@ -11340,11 +11353,18 @@ const BillDetails$1 = ({
|
|
|
11340
11353
|
}, /*#__PURE__*/React.createElement(Row, {
|
|
11341
11354
|
label: t("ES_PAYMENT_TAXHEADS"),
|
|
11342
11355
|
textStyle: {
|
|
11343
|
-
fontWeight: "bold"
|
|
11356
|
+
fontWeight: "bold",
|
|
11357
|
+
...(isTL ? {
|
|
11358
|
+
textAlign: "right",
|
|
11359
|
+
maxWidth: "none",
|
|
11360
|
+
width: "40%"
|
|
11361
|
+
} : {})
|
|
11344
11362
|
},
|
|
11345
11363
|
text: t("ES_PAYMENT_AMOUNT")
|
|
11346
11364
|
}), /*#__PURE__*/React.createElement("hr", {
|
|
11347
|
-
style: {
|
|
11365
|
+
style: isTL ? {
|
|
11366
|
+
width: "100%"
|
|
11367
|
+
} : {
|
|
11348
11368
|
width: "40%"
|
|
11349
11369
|
},
|
|
11350
11370
|
className: "underline"
|
|
@@ -11355,7 +11375,11 @@ const BillDetails$1 = ({
|
|
|
11355
11375
|
labelStyle: {
|
|
11356
11376
|
fontWeight: "normal"
|
|
11357
11377
|
},
|
|
11358
|
-
textStyle: {
|
|
11378
|
+
textStyle: isTL ? {
|
|
11379
|
+
textAlign: "right",
|
|
11380
|
+
maxWidth: "none",
|
|
11381
|
+
width: "40%"
|
|
11382
|
+
} : {
|
|
11359
11383
|
textAlign: "right",
|
|
11360
11384
|
maxWidth: "100px"
|
|
11361
11385
|
},
|
|
@@ -11366,20 +11390,31 @@ const BillDetails$1 = ({
|
|
|
11366
11390
|
labelStyle: {
|
|
11367
11391
|
fontWeight: "normal"
|
|
11368
11392
|
},
|
|
11369
|
-
textStyle: {
|
|
11393
|
+
textStyle: isTL ? {
|
|
11394
|
+
textAlign: "right",
|
|
11395
|
+
maxWidth: "none",
|
|
11396
|
+
width: "40%"
|
|
11397
|
+
} : {
|
|
11370
11398
|
textAlign: "right",
|
|
11371
11399
|
maxWidth: "100px"
|
|
11372
11400
|
},
|
|
11373
11401
|
label: t("COMMON_ARREARS"),
|
|
11374
11402
|
text: "₹ " + (arrears === null || arrears === void 0 ? void 0 : (_arrears$toFixed2 = arrears.toFixed) === null || _arrears$toFixed2 === void 0 ? void 0 : _arrears$toFixed2.call(arrears, 2)) || Number(0).toFixed(2)
|
|
11375
11403
|
}) : null, /*#__PURE__*/React.createElement("hr", {
|
|
11376
|
-
style: {
|
|
11404
|
+
style: isTL ? {
|
|
11405
|
+
width: "100%"
|
|
11406
|
+
} : {
|
|
11377
11407
|
width: "40%"
|
|
11378
11408
|
},
|
|
11379
11409
|
className: "underline"
|
|
11380
11410
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
11381
11411
|
label: t("CS_PAYMENT_TOTAL_AMOUNT"),
|
|
11382
|
-
textStyle: {
|
|
11412
|
+
textStyle: isTL ? {
|
|
11413
|
+
fontWeight: "bold",
|
|
11414
|
+
textAlign: "right",
|
|
11415
|
+
maxWidth: "none",
|
|
11416
|
+
width: "40%"
|
|
11417
|
+
} : {
|
|
11383
11418
|
fontWeight: "bold",
|
|
11384
11419
|
textAlign: "right",
|
|
11385
11420
|
maxWidth: "100px"
|
|
@@ -11534,6 +11569,7 @@ const CollectPayment = props => {
|
|
|
11534
11569
|
} = useParams();
|
|
11535
11570
|
console.log("businessService", businessService);
|
|
11536
11571
|
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
11572
|
+
const location = useLocation();
|
|
11537
11573
|
const search = useLocation().search;
|
|
11538
11574
|
if (window.location.href.includes("ISWSAPP")) consumerCode = new URLSearchParams(search).get("applicationNumber");
|
|
11539
11575
|
if (window.location.href.includes("ISWSCON") || ModuleWorkflow === "WS") consumerCode = decodeURIComponent(consumerCode);
|
|
@@ -11556,6 +11592,7 @@ const CollectPayment = props => {
|
|
|
11556
11592
|
enabled: businessService !== null && businessService !== void 0 && (_businessService$toUp = businessService.toUpperCase()) !== null && _businessService$toUp !== void 0 && _businessService$toUp.includes("FSM") ? true : false
|
|
11557
11593
|
});
|
|
11558
11594
|
const advanceBill = applicationData === null || applicationData === void 0 ? void 0 : applicationData.advanceAmount;
|
|
11595
|
+
const [formState, setFormState] = useState({});
|
|
11559
11596
|
const {
|
|
11560
11597
|
cardConfig
|
|
11561
11598
|
} = useCardPaymentDetails(props, t);
|
|
@@ -11580,8 +11617,8 @@ const CollectPayment = props => {
|
|
|
11580
11617
|
const {
|
|
11581
11618
|
qrConfig
|
|
11582
11619
|
} = useQRDetails(props, t);
|
|
11583
|
-
const [formState, setFormState] = useState({});
|
|
11584
11620
|
const [toast, setToast] = useState(null);
|
|
11621
|
+
const isChallanGeneration = location.pathname.includes("Challan_Generation");
|
|
11585
11622
|
useEffect(() => {
|
|
11586
11623
|
if (paymentdetails !== null && paymentdetails !== void 0 && paymentdetails.Bill && paymentdetails.Bill.length === 0) {
|
|
11587
11624
|
setToast({
|
|
@@ -11596,25 +11633,28 @@ const CollectPayment = props => {
|
|
|
11596
11633
|
}, {
|
|
11597
11634
|
code: "CHEQUE",
|
|
11598
11635
|
label: t("COMMON_MASTERS_PAYMENTMODE_CHEQUE")
|
|
11599
|
-
}, {
|
|
11636
|
+
}, ...(!isChallanGeneration ? [{
|
|
11600
11637
|
code: "CARD",
|
|
11601
11638
|
label: t("COMMON_MASTERS_PAYMENTMODE_CREDIT/DEBIT CARD")
|
|
11602
|
-
}, {
|
|
11639
|
+
}] : []), {
|
|
11603
11640
|
code: "DD",
|
|
11604
11641
|
label: "Demand Draft"
|
|
11605
|
-
}, {
|
|
11642
|
+
}, ...(isChallanGeneration ? [{
|
|
11643
|
+
code: "ONLINE",
|
|
11644
|
+
label: "Online"
|
|
11645
|
+
}] : []), ...(!isChallanGeneration ? [{
|
|
11606
11646
|
code: "OFFLINE_NEFT",
|
|
11607
11647
|
label: "NEFT"
|
|
11608
|
-
}, {
|
|
11648
|
+
}] : []), ...(!isChallanGeneration ? [{
|
|
11609
11649
|
code: "OFFLINE_RTGS",
|
|
11610
11650
|
label: "RTGS"
|
|
11611
|
-
}, {
|
|
11651
|
+
}] : []), ...(!isChallanGeneration ? [{
|
|
11612
11652
|
code: "POSTAL_ORDER",
|
|
11613
11653
|
label: "Postal Order"
|
|
11614
|
-
}, {
|
|
11654
|
+
}] : []), ...(!isChallanGeneration ? [{
|
|
11615
11655
|
code: "QR_CODE",
|
|
11616
11656
|
label: "QR Code"
|
|
11617
|
-
}];
|
|
11657
|
+
}] : [])];
|
|
11618
11658
|
const formConfigMap = {
|
|
11619
11659
|
CHEQUE: chequeConfig,
|
|
11620
11660
|
CARD: cardConfig,
|
|
@@ -11641,7 +11681,11 @@ const CollectPayment = props => {
|
|
|
11641
11681
|
name: t("COMMON_OWNER")
|
|
11642
11682
|
});
|
|
11643
11683
|
const onSubmit = async data => {
|
|
11644
|
-
var _data$amount, _data$amount6, _data$amount7, _data$
|
|
11684
|
+
var _data$paymentMode, _data$amount, _data$amount6, _data$amount7, _data$paymentMode2, _data$paymentModeDeta, _recieptRequest$Payme2, _recieptRequest$Payme3, _recieptRequest$Payme4, _recieptRequest$Payme5, _recieptRequest$Payme6;
|
|
11685
|
+
if ((data === null || data === void 0 ? void 0 : (_data$paymentMode = data.paymentMode) === null || _data$paymentMode === void 0 ? void 0 : _data$paymentMode.code) == "ONLINE") {
|
|
11686
|
+
history.push(`/digit-ui/employee/payment/challan/collect/${businessService}/${consumerCode}/${tenantId}?tenantId=${tenantId}`);
|
|
11687
|
+
return;
|
|
11688
|
+
}
|
|
11645
11689
|
bill.totalAmount = Math.round(bill.totalAmount);
|
|
11646
11690
|
data.paidBy = data.paidBy.code;
|
|
11647
11691
|
if (BillDetailsFormConfig({
|
|
@@ -11691,7 +11735,7 @@ const CollectPayment = props => {
|
|
|
11691
11735
|
if (data.ManualRecieptDetails.manualReceiptNumber) {
|
|
11692
11736
|
recieptRequest.Payment.paymentDetails[0].manualReceiptNumber = ManualRecieptDetails.manualReceiptNumber;
|
|
11693
11737
|
}
|
|
11694
|
-
recieptRequest.Payment.paymentMode = data === null || data === void 0 ? void 0 : (_data$
|
|
11738
|
+
recieptRequest.Payment.paymentMode = data === null || data === void 0 ? void 0 : (_data$paymentMode2 = data.paymentMode) === null || _data$paymentMode2 === void 0 ? void 0 : _data$paymentMode2.code;
|
|
11695
11739
|
if (data.paymentModeDetails) {
|
|
11696
11740
|
var _recieptRequest$Payme;
|
|
11697
11741
|
recieptRequest.Payment = {
|
|
@@ -11863,7 +11907,7 @@ const CollectPayment = props => {
|
|
|
11863
11907
|
});
|
|
11864
11908
|
console.log("ModuleWorkflow", ModuleWorkflow);
|
|
11865
11909
|
const getFormConfig = () => {
|
|
11866
|
-
var _formState$paymentMod,
|
|
11910
|
+
var _formState$paymentMod, _formState$paymentMod2;
|
|
11867
11911
|
const isGCService = businessService === null || businessService === void 0 ? void 0 : businessService.startsWith("GC");
|
|
11868
11912
|
if (BillDetailsFormConfig({
|
|
11869
11913
|
consumerCode,
|
|
@@ -11872,7 +11916,9 @@ const CollectPayment = props => {
|
|
|
11872
11916
|
config.splice(0, 1);
|
|
11873
11917
|
}
|
|
11874
11918
|
let conf = config.concat(formConfigMap[formState === null || formState === void 0 ? void 0 : (_formState$paymentMod = formState.paymentMode) === null || _formState$paymentMod === void 0 ? void 0 : _formState$paymentMod.code] || []);
|
|
11875
|
-
|
|
11919
|
+
if ((formState === null || formState === void 0 ? void 0 : (_formState$paymentMod2 = formState.paymentMode) === null || _formState$paymentMod2 === void 0 ? void 0 : _formState$paymentMod2.code) !== "ONLINE") {
|
|
11920
|
+
conf = conf.concat(cashConfig);
|
|
11921
|
+
}
|
|
11876
11922
|
return BillDetailsFormConfig({
|
|
11877
11923
|
consumerCode,
|
|
11878
11924
|
businessService
|
|
@@ -11917,6 +11963,348 @@ const CollectPayment = props => {
|
|
|
11917
11963
|
}));
|
|
11918
11964
|
};
|
|
11919
11965
|
|
|
11966
|
+
const SelectPaymentType$2 = props => {
|
|
11967
|
+
var _menuList$PAYMENT, _menuList$PAYMENT$Pay, _menuList$PAYMENT2, _menuList$PAYMENT2$Pa, _menuList$PAYMENT2$Pa2;
|
|
11968
|
+
const {
|
|
11969
|
+
state = {}
|
|
11970
|
+
} = useLocation();
|
|
11971
|
+
const userInfo = Digit.UserService.getUser();
|
|
11972
|
+
const [showToast, setShowToast] = useState(null);
|
|
11973
|
+
const [showOwnerToast, setShowOwnerToast] = useState(null);
|
|
11974
|
+
const {
|
|
11975
|
+
tenantId: __tenantId,
|
|
11976
|
+
authorization,
|
|
11977
|
+
workflow: wrkflow,
|
|
11978
|
+
consumerCode: connectionNo
|
|
11979
|
+
} = Digit.Hooks.useQueryParams();
|
|
11980
|
+
const paymentAmount = state === null || state === void 0 ? void 0 : state.paymentAmount;
|
|
11981
|
+
const {
|
|
11982
|
+
t
|
|
11983
|
+
} = useTranslation();
|
|
11984
|
+
const history = useHistory();
|
|
11985
|
+
const {
|
|
11986
|
+
pathname,
|
|
11987
|
+
search
|
|
11988
|
+
} = useLocation();
|
|
11989
|
+
let {
|
|
11990
|
+
consumerCode,
|
|
11991
|
+
businessService
|
|
11992
|
+
} = useParams();
|
|
11993
|
+
const tenantId = (state === null || state === void 0 ? void 0 : state.tenantId) || __tenantId || Digit.ULBService.getCurrentTenantId();
|
|
11994
|
+
const stateTenant = Digit.ULBService.getStateId();
|
|
11995
|
+
const {
|
|
11996
|
+
control,
|
|
11997
|
+
handleSubmit,
|
|
11998
|
+
setValue
|
|
11999
|
+
} = useForm();
|
|
12000
|
+
const {
|
|
12001
|
+
data: menuList,
|
|
12002
|
+
isLoading
|
|
12003
|
+
} = Digit.Hooks.useCustomMDMS(tenantId, "PAYMENT", [{
|
|
12004
|
+
name: "PaymentGateway"
|
|
12005
|
+
}]);
|
|
12006
|
+
console.log("menuList", menuList);
|
|
12007
|
+
const [isPaymentLoading, setPaymentLoading] = useState(false);
|
|
12008
|
+
const {
|
|
12009
|
+
data: paymentdetails,
|
|
12010
|
+
isLoading: paymentLoading
|
|
12011
|
+
} = Digit.Hooks.useFetchPayment({
|
|
12012
|
+
tenantId: tenantId,
|
|
12013
|
+
consumerCode: wrkflow === "WNS" ? connectionNo : consumerCode,
|
|
12014
|
+
businessService
|
|
12015
|
+
}, {});
|
|
12016
|
+
if (window.location.href.includes("ISWSCON") || wrkflow === "WNS") consumerCode = decodeURIComponent(consumerCode);
|
|
12017
|
+
if (wrkflow === "WNS") consumerCode = stringReplaceAll(consumerCode, "+", "/");
|
|
12018
|
+
useEffect(() => {
|
|
12019
|
+
if (paymentdetails !== null && paymentdetails !== void 0 && paymentdetails.Bill && paymentdetails.Bill.length == 0) {
|
|
12020
|
+
setShowToast({
|
|
12021
|
+
key: true,
|
|
12022
|
+
label: "CS_BILL_NOT_FOUND"
|
|
12023
|
+
});
|
|
12024
|
+
}
|
|
12025
|
+
}, [paymentdetails]);
|
|
12026
|
+
useEffect(() => {
|
|
12027
|
+
localStorage.setItem("BillPaymentEnabled", "true");
|
|
12028
|
+
}, []);
|
|
12029
|
+
const {
|
|
12030
|
+
name,
|
|
12031
|
+
mobileNumber
|
|
12032
|
+
} = state;
|
|
12033
|
+
const billDetails = paymentdetails !== null && paymentdetails !== void 0 && paymentdetails.Bill ? paymentdetails === null || paymentdetails === void 0 ? void 0 : paymentdetails.Bill[0] : {};
|
|
12034
|
+
console.log(billDetails, "BILL");
|
|
12035
|
+
const userOptions = ["OWNER", "OTHER"];
|
|
12036
|
+
const onSubmit = async d => {
|
|
12037
|
+
if (!(d !== null && d !== void 0 && d.name) || (d === null || d === void 0 ? void 0 : d.name.trim()) === "") {
|
|
12038
|
+
setShowOwnerToast({
|
|
12039
|
+
key: true,
|
|
12040
|
+
label: t("PAYMENT_NAME_MANDATORY_MESSAGE")
|
|
12041
|
+
});
|
|
12042
|
+
return;
|
|
12043
|
+
}
|
|
12044
|
+
const mobileRegex = /^[6-9]\d{9}$/;
|
|
12045
|
+
if (!(d !== null && d !== void 0 && d.mobileNumber) || (d === null || d === void 0 ? void 0 : d.mobileNumber.trim()) === "") {
|
|
12046
|
+
setShowOwnerToast({
|
|
12047
|
+
key: true,
|
|
12048
|
+
label: t("PAYMENT_MOBILE_NUMBER_MANDATORY_MESSAGE")
|
|
12049
|
+
});
|
|
12050
|
+
return;
|
|
12051
|
+
} else if (!mobileRegex.test(d.mobileNumber)) {
|
|
12052
|
+
setShowOwnerToast({
|
|
12053
|
+
key: true,
|
|
12054
|
+
label: t("ERR_INVALID_MOBILE")
|
|
12055
|
+
});
|
|
12056
|
+
return;
|
|
12057
|
+
}
|
|
12058
|
+
setPaymentLoading(true);
|
|
12059
|
+
const baseURL = document.location.origin;
|
|
12060
|
+
console.log("BASEURLINPAYMENT", baseURL);
|
|
12061
|
+
const filterData = {
|
|
12062
|
+
Transaction: {
|
|
12063
|
+
tenantId: billDetails === null || billDetails === void 0 ? void 0 : billDetails.tenantId,
|
|
12064
|
+
txnAmount: paymentAmount || billDetails.totalAmount,
|
|
12065
|
+
module: businessService,
|
|
12066
|
+
businessService: businessService,
|
|
12067
|
+
billId: billDetails.id,
|
|
12068
|
+
consumerCode: consumerCode,
|
|
12069
|
+
productInfo: "Common Payment",
|
|
12070
|
+
gateway: d === null || d === void 0 ? void 0 : d.paymentType,
|
|
12071
|
+
taxAndPayments: [{
|
|
12072
|
+
taxAmount: paymentAmount || billDetails.totalAmount,
|
|
12073
|
+
billId: billDetails.id,
|
|
12074
|
+
amountPaid: paymentAmount || billDetails.totalAmount,
|
|
12075
|
+
businessService: businessService
|
|
12076
|
+
}],
|
|
12077
|
+
user: {
|
|
12078
|
+
name: d === null || d === void 0 ? void 0 : d.name,
|
|
12079
|
+
mobileNumber: d === null || d === void 0 ? void 0 : d.mobileNumber,
|
|
12080
|
+
tenantId: billDetails === null || billDetails === void 0 ? void 0 : billDetails.tenantId
|
|
12081
|
+
},
|
|
12082
|
+
callbackUrl: `${baseURL}/digit-ui/employee/payment/challan/success/${businessService}/${consumerCode}`,
|
|
12083
|
+
additionalDetails: {
|
|
12084
|
+
isWhatsapp: false,
|
|
12085
|
+
paidBy: d === null || d === void 0 ? void 0 : d.paidBy
|
|
12086
|
+
}
|
|
12087
|
+
}
|
|
12088
|
+
};
|
|
12089
|
+
console.log("coming here", filterData);
|
|
12090
|
+
try {
|
|
12091
|
+
const data = await Digit.PaymentService.createCitizenReciept(billDetails === null || billDetails === void 0 ? void 0 : billDetails.tenantId, filterData);
|
|
12092
|
+
console.log("data=========", data);
|
|
12093
|
+
if (paymentAmount === 0 || billDetails.totalAmount === 0) {
|
|
12094
|
+
var _data$ResponseInfo;
|
|
12095
|
+
setPaymentLoading(false);
|
|
12096
|
+
if ((data === null || data === void 0 ? void 0 : (_data$ResponseInfo = data.ResponseInfo) === null || _data$ResponseInfo === void 0 ? void 0 : _data$ResponseInfo.status) === "SUCCESSFUL") {
|
|
12097
|
+
var _data$Transaction;
|
|
12098
|
+
window.location.href = data === null || data === void 0 ? void 0 : (_data$Transaction = data.Transaction) === null || _data$Transaction === void 0 ? void 0 : _data$Transaction.callbackUrl;
|
|
12099
|
+
} else {
|
|
12100
|
+
window.location.href = "/digit-ui/citizen/payment/failure";
|
|
12101
|
+
}
|
|
12102
|
+
return;
|
|
12103
|
+
}
|
|
12104
|
+
if ((d === null || d === void 0 ? void 0 : d.paymentType) === gatewayType.RAZORPAY) {
|
|
12105
|
+
displayRazorpay(data);
|
|
12106
|
+
} else {
|
|
12107
|
+
setPaymentLoading(false);
|
|
12108
|
+
}
|
|
12109
|
+
} catch (error) {
|
|
12110
|
+
var _error$response, _error$response$data, _error$response$data$;
|
|
12111
|
+
console.log("error", error);
|
|
12112
|
+
let messageToShow = "CS_PAYMENT_UNKNOWN_ERROR_ON_SERVER";
|
|
12113
|
+
if ((_error$response = error.response) !== null && _error$response !== void 0 && (_error$response$data = _error$response.data) !== null && _error$response$data !== void 0 && (_error$response$data$ = _error$response$data.Errors) !== null && _error$response$data$ !== void 0 && _error$response$data$[0]) {
|
|
12114
|
+
var _error$response2, _error$response2$data, _error$response2$data2;
|
|
12115
|
+
const {
|
|
12116
|
+
code,
|
|
12117
|
+
message
|
|
12118
|
+
} = (_error$response2 = error.response) === null || _error$response2 === void 0 ? void 0 : (_error$response2$data = _error$response2.data) === null || _error$response2$data === void 0 ? void 0 : (_error$response2$data2 = _error$response2$data.Errors) === null || _error$response2$data2 === void 0 ? void 0 : _error$response2$data2[0];
|
|
12119
|
+
messageToShow = code;
|
|
12120
|
+
}
|
|
12121
|
+
setPaymentLoading(false);
|
|
12122
|
+
setShowToast({
|
|
12123
|
+
key: true,
|
|
12124
|
+
label: t(messageToShow)
|
|
12125
|
+
});
|
|
12126
|
+
}
|
|
12127
|
+
};
|
|
12128
|
+
async function displayRazorpay(getOrderData) {
|
|
12129
|
+
const res = await loadScript(RAZORPAY_LOADSCRIPT_URL);
|
|
12130
|
+
if (!res) {
|
|
12131
|
+
alert("Razorpay SDK failed to load. Are you online?");
|
|
12132
|
+
return;
|
|
12133
|
+
}
|
|
12134
|
+
function getQueryVariable(variable) {
|
|
12135
|
+
const query = lodash.get(getOrderData, TRANSACTION_REDIRECTURL);
|
|
12136
|
+
var vars = query.split("&");
|
|
12137
|
+
for (var i = 0; i < vars.length; i++) {
|
|
12138
|
+
var pair = vars[i].split("=");
|
|
12139
|
+
if (pair[0] == variable) {
|
|
12140
|
+
return pair[1];
|
|
12141
|
+
}
|
|
12142
|
+
}
|
|
12143
|
+
return false;
|
|
12144
|
+
}
|
|
12145
|
+
const options = {
|
|
12146
|
+
key: getQueryVariable(MERCHENT_KEY),
|
|
12147
|
+
amount: lodash.get(getOrderData, TRANSACTION_AMMOUNT) * 100,
|
|
12148
|
+
name: POPUP_DIPSPLAY_NAME,
|
|
12149
|
+
description: lodash.get(getOrderData, TRANSACTION_BUSINESSSERVICE) + " Charge Collection",
|
|
12150
|
+
image: POPUP_DIPSPLAY_IMAGE,
|
|
12151
|
+
order_id: getQueryVariable(ORDER_ID),
|
|
12152
|
+
handler: async function (response) {
|
|
12153
|
+
const data = {
|
|
12154
|
+
razorpayPaymentId: response.razorpay_payment_id,
|
|
12155
|
+
razorpayOrderId: response.razorpay_order_id,
|
|
12156
|
+
razorpaySignature: response.razorpay_signature
|
|
12157
|
+
};
|
|
12158
|
+
window.location = lodash.get(getOrderData, TRANSACTION_CALLBACKURL) + RAZORPAY_CALLBACK_URL_KEYS.PAYMENT_ID + data.razorpayPaymentId + RAZORPAY_CALLBACK_URL_KEYS.ORDER_ID + data.razorpayOrderId + RAZORPAY_CALLBACK_URL_KEYS.SIGNATURE + data.razorpaySignature;
|
|
12159
|
+
},
|
|
12160
|
+
prefill: {
|
|
12161
|
+
name: lodash.get(getOrderData, TRANSACTION_USERNAME),
|
|
12162
|
+
email: lodash.get(getOrderData, TRANSACTION_USER_EMAIL),
|
|
12163
|
+
contact: lodash.get(getOrderData, TRANSACTION_USER_MOBILE)
|
|
12164
|
+
},
|
|
12165
|
+
theme: {
|
|
12166
|
+
color: "#61dafb"
|
|
12167
|
+
}
|
|
12168
|
+
};
|
|
12169
|
+
const paymentObject = new window.Razorpay(options);
|
|
12170
|
+
setPaymentLoading(false);
|
|
12171
|
+
paymentObject.open();
|
|
12172
|
+
}
|
|
12173
|
+
function loadScript(src) {
|
|
12174
|
+
return new Promise(resolve => {
|
|
12175
|
+
const script = document.createElement("script");
|
|
12176
|
+
script.src = src;
|
|
12177
|
+
script.onload = () => {
|
|
12178
|
+
resolve(true);
|
|
12179
|
+
};
|
|
12180
|
+
script.onerror = () => {
|
|
12181
|
+
resolve(false);
|
|
12182
|
+
};
|
|
12183
|
+
document.body.appendChild(script);
|
|
12184
|
+
});
|
|
12185
|
+
}
|
|
12186
|
+
if (authorization === "true" && !userInfo.access_token) {
|
|
12187
|
+
localStorage.clear();
|
|
12188
|
+
sessionStorage.clear();
|
|
12189
|
+
window.location.href = `/digit-ui/citizen/login?from=${encodeURIComponent(pathname + search)}`;
|
|
12190
|
+
}
|
|
12191
|
+
if (paymentLoading || isPaymentLoading || isLoading) {
|
|
12192
|
+
window.scrollTo({
|
|
12193
|
+
top: 0,
|
|
12194
|
+
behavior: "smooth"
|
|
12195
|
+
});
|
|
12196
|
+
return /*#__PURE__*/React.createElement(Loader, null);
|
|
12197
|
+
}
|
|
12198
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("form", {
|
|
12199
|
+
style: {
|
|
12200
|
+
padding: "20px"
|
|
12201
|
+
},
|
|
12202
|
+
onSubmit: handleSubmit(onSubmit)
|
|
12203
|
+
}, /*#__PURE__*/React.createElement(Header, null, t("PAYMENT_CS_HEADER")), /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement("div", {
|
|
12204
|
+
className: "payment-amount-info",
|
|
12205
|
+
style: {
|
|
12206
|
+
marginBottom: "26px"
|
|
12207
|
+
}
|
|
12208
|
+
}, /*#__PURE__*/React.createElement(CardLabel, {
|
|
12209
|
+
className: "dark"
|
|
12210
|
+
}, t("PAYMENT_CS_TOTAL_AMOUNT_DUE")), /*#__PURE__*/React.createElement(CardSectionHeader, null, " ", "\u20B9 ", paymentAmount !== undefined ? Number(paymentAmount).toFixed(2) : Number(billDetails === null || billDetails === void 0 ? void 0 : billDetails.totalAmount).toFixed(2))), /*#__PURE__*/React.createElement(CardLabel, null, t("PAYMENT_CS_SELECT_METHOD")), (menuList === null || menuList === void 0 ? void 0 : (_menuList$PAYMENT = menuList.PAYMENT) === null || _menuList$PAYMENT === void 0 ? void 0 : (_menuList$PAYMENT$Pay = _menuList$PAYMENT.PaymentGateway) === null || _menuList$PAYMENT$Pay === void 0 ? void 0 : _menuList$PAYMENT$Pay.length) && /*#__PURE__*/React.createElement(Controller, {
|
|
12211
|
+
name: "paymentType",
|
|
12212
|
+
defaultValue: menuList === null || menuList === void 0 ? void 0 : (_menuList$PAYMENT2 = menuList.PAYMENT) === null || _menuList$PAYMENT2 === void 0 ? void 0 : (_menuList$PAYMENT2$Pa = _menuList$PAYMENT2.PaymentGateway) === null || _menuList$PAYMENT2$Pa === void 0 ? void 0 : (_menuList$PAYMENT2$Pa2 = _menuList$PAYMENT2$Pa[0]) === null || _menuList$PAYMENT2$Pa2 === void 0 ? void 0 : _menuList$PAYMENT2$Pa2.gateway,
|
|
12213
|
+
control: control,
|
|
12214
|
+
render: props => {
|
|
12215
|
+
var _menuList$PAYMENT3, _menuList$PAYMENT3$Pa;
|
|
12216
|
+
return /*#__PURE__*/React.createElement(RadioButtons, {
|
|
12217
|
+
selectedOption: props.value,
|
|
12218
|
+
options: menuList === null || menuList === void 0 ? void 0 : (_menuList$PAYMENT3 = menuList.PAYMENT) === null || _menuList$PAYMENT3 === void 0 ? void 0 : (_menuList$PAYMENT3$Pa = _menuList$PAYMENT3.PaymentGateway) === null || _menuList$PAYMENT3$Pa === void 0 ? void 0 : _menuList$PAYMENT3$Pa.map(item => item === null || item === void 0 ? void 0 : item.gateway),
|
|
12219
|
+
onSelect: props.onChange
|
|
12220
|
+
});
|
|
12221
|
+
}
|
|
12222
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
12223
|
+
className: "card"
|
|
12224
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
12225
|
+
className: "payment-amount-info",
|
|
12226
|
+
style: {
|
|
12227
|
+
marginBottom: "26px"
|
|
12228
|
+
}
|
|
12229
|
+
}, /*#__PURE__*/React.createElement(CardLabel, {
|
|
12230
|
+
className: "dark"
|
|
12231
|
+
}, t("PAYMENT_CS_PAYER_DETAILS"))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
12232
|
+
className: "card-label-smaller"
|
|
12233
|
+
}, `${t("PAYMENT_CS_PAID_BY")} * `), /*#__PURE__*/React.createElement(Controller, {
|
|
12234
|
+
name: "paidBy",
|
|
12235
|
+
defaultValue: userOptions[0],
|
|
12236
|
+
control: control,
|
|
12237
|
+
render: props => /*#__PURE__*/React.createElement(Dropdown, {
|
|
12238
|
+
className: "text-input-width",
|
|
12239
|
+
selected: props.value,
|
|
12240
|
+
option: userOptions,
|
|
12241
|
+
select: val => {
|
|
12242
|
+
if (val === "OWNER") {
|
|
12243
|
+
props.onChange(val);
|
|
12244
|
+
setValue("name", name || (billDetails === null || billDetails === void 0 ? void 0 : billDetails.payerName) || "");
|
|
12245
|
+
setValue("mobileNumber", mobileNumber || (billDetails === null || billDetails === void 0 ? void 0 : billDetails.mobileNumber) || "");
|
|
12246
|
+
} else if (val === "OTHER") {
|
|
12247
|
+
props.onChange(val);
|
|
12248
|
+
setValue("name", "");
|
|
12249
|
+
setValue("mobileNumber", "");
|
|
12250
|
+
}
|
|
12251
|
+
}
|
|
12252
|
+
})
|
|
12253
|
+
})), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
12254
|
+
className: "card-label-smaller"
|
|
12255
|
+
}, `${t("PAYMENT_CS_PAYER_NAME")} * `), /*#__PURE__*/React.createElement("div", {
|
|
12256
|
+
className: "field"
|
|
12257
|
+
}, /*#__PURE__*/React.createElement(Controller, {
|
|
12258
|
+
control: control,
|
|
12259
|
+
name: "name",
|
|
12260
|
+
defaultValue: name || (billDetails === null || billDetails === void 0 ? void 0 : billDetails.payerName) || "",
|
|
12261
|
+
render: props => /*#__PURE__*/React.createElement(TextInput, {
|
|
12262
|
+
className: "text-input-width",
|
|
12263
|
+
value: props.value,
|
|
12264
|
+
onChange: e => {
|
|
12265
|
+
props.onChange(e.target.value);
|
|
12266
|
+
}
|
|
12267
|
+
})
|
|
12268
|
+
}))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
12269
|
+
className: "card-label-smaller"
|
|
12270
|
+
}, `${t("PAYMENT_CS_PAYER_NUMBER")} * `), /*#__PURE__*/React.createElement("div", {
|
|
12271
|
+
className: "field"
|
|
12272
|
+
}, /*#__PURE__*/React.createElement(Controller, {
|
|
12273
|
+
control: control,
|
|
12274
|
+
name: "mobileNumber",
|
|
12275
|
+
defaultValue: mobileNumber || (billDetails === null || billDetails === void 0 ? void 0 : billDetails.mobileNumber) || "",
|
|
12276
|
+
render: props => /*#__PURE__*/React.createElement(MobileNumber, {
|
|
12277
|
+
value: props.value,
|
|
12278
|
+
onChange: e => {
|
|
12279
|
+
props.onChange(e);
|
|
12280
|
+
},
|
|
12281
|
+
componentInFront: /*#__PURE__*/React.createElement("div", {
|
|
12282
|
+
className: "employee-card-input employee-card-input--front numberdisplay"
|
|
12283
|
+
}, "+91")
|
|
12284
|
+
})
|
|
12285
|
+
})))), !showToast && /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
12286
|
+
label: t("PAYMENT_CS_BUTTON_LABEL"),
|
|
12287
|
+
submit: true
|
|
12288
|
+
}))), /*#__PURE__*/React.createElement(InfoBanner, {
|
|
12289
|
+
label: t("CS_COMMON_INFO"),
|
|
12290
|
+
text: t("CS_PAYMENT_REDIRECT_NOTICE")
|
|
12291
|
+
}), showToast && /*#__PURE__*/React.createElement(Toast, {
|
|
12292
|
+
error: showToast.key,
|
|
12293
|
+
label: t(showToast.label),
|
|
12294
|
+
onClose: () => {
|
|
12295
|
+
setShowToast(null);
|
|
12296
|
+
},
|
|
12297
|
+
isDleteBtn: true
|
|
12298
|
+
}), showOwnerToast && /*#__PURE__*/React.createElement(Toast, {
|
|
12299
|
+
isDleteBtn: true,
|
|
12300
|
+
error: showOwnerToast.key,
|
|
12301
|
+
label: t(showOwnerToast.label),
|
|
12302
|
+
onClose: () => {
|
|
12303
|
+
setShowOwnerToast(null);
|
|
12304
|
+
}
|
|
12305
|
+
}));
|
|
12306
|
+
};
|
|
12307
|
+
|
|
11920
12308
|
function toInteger(dirtyNumber) {
|
|
11921
12309
|
if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {
|
|
11922
12310
|
return NaN;
|
|
@@ -13412,8 +13800,9 @@ const convertEpochToDate$1 = dateEpoch => {
|
|
|
13412
13800
|
}
|
|
13413
13801
|
};
|
|
13414
13802
|
const SuccessfulPayment$1 = props => {
|
|
13415
|
-
var _location
|
|
13803
|
+
var _location$pathname, _receiptNumber, _JSON$parse, _JSON$parse$value, _JSON$parse$value$inf, _data$, _data$2, _dataCheck$payments, _dataCheck$payments$P, _dataCheck$payments$P2, _dataCheck$payments$P3, _data$8, _data$9, _data$0, _data$1, _data$10, _data$11, _data$12, _data$13, _data$14;
|
|
13416
13804
|
const history = useHistory();
|
|
13805
|
+
const location = useLocation();
|
|
13417
13806
|
const {
|
|
13418
13807
|
t
|
|
13419
13808
|
} = useTranslation();
|
|
@@ -13423,19 +13812,27 @@ const SuccessfulPayment$1 = props => {
|
|
|
13423
13812
|
} = Digit.Hooks.useQueryParams();
|
|
13424
13813
|
const [displayMenu, setDisplayMenu] = useState(false);
|
|
13425
13814
|
const [selectedAction, setSelectedAction] = useState(null);
|
|
13426
|
-
const isFSMResponse =
|
|
13815
|
+
const isFSMResponse = location === null || location === void 0 ? void 0 : (_location$pathname = location.pathname) === null || _location$pathname === void 0 ? void 0 : _location$pathname.includes("payment/success/FSM.TRIP_CHARGES");
|
|
13427
13816
|
const combineResponseFSM = isFSMResponse ? `${t("PAYMENT_COLLECT_LABEL")} / ${t("PAYMENT_COLLECT")}` : t("PAYMENT_LOCALIZATION_RESPONSE");
|
|
13428
13817
|
const [printing, setPrinting] = useState(false);
|
|
13429
13818
|
const [chbPermissionLoading, setChbPermissionLoading] = useState(false);
|
|
13430
13819
|
props.setLink(combineResponseFSM);
|
|
13820
|
+
const checkParam = useParams();
|
|
13821
|
+
const queryParams = new URLSearchParams(location.search);
|
|
13822
|
+
const egPgTxnId = queryParams.get("eg_pg_txnid");
|
|
13823
|
+
const razorpayPaymentId = queryParams.get("razorpayPaymentId");
|
|
13824
|
+
const razorpayOrderId = queryParams.get("razorpayOrderId");
|
|
13825
|
+
const razorpaySignature = queryParams.get("razorpaySignature");
|
|
13431
13826
|
let {
|
|
13432
13827
|
consumerCode,
|
|
13433
13828
|
receiptNumber,
|
|
13434
13829
|
businessService
|
|
13435
13830
|
} = useParams();
|
|
13436
|
-
console.log("
|
|
13831
|
+
console.log("checkParam", checkParam);
|
|
13832
|
+
console.log("egPgTxnId", egPgTxnId);
|
|
13833
|
+
console.log("businessService", businessService);
|
|
13437
13834
|
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
13438
|
-
receiptNumber = receiptNumber.replace(/%2F/g, "/");
|
|
13835
|
+
receiptNumber = (_receiptNumber = receiptNumber) === null || _receiptNumber === void 0 ? void 0 : _receiptNumber.replace(/%2F/g, "/");
|
|
13439
13836
|
const {
|
|
13440
13837
|
data = {},
|
|
13441
13838
|
isLoading: isBpaSearchLoading,
|
|
@@ -13455,6 +13852,18 @@ const SuccessfulPayment$1 = props => {
|
|
|
13455
13852
|
const selectedTenantData = cities.data.find(item => item.city.districtTenantCode === loginCity);
|
|
13456
13853
|
ulbType = selectedTenantData === null || selectedTenantData === void 0 ? void 0 : (_selectedTenantData$c = selectedTenantData.city) === null || _selectedTenantData$c === void 0 ? void 0 : _selectedTenantData$c.ulbGrade;
|
|
13457
13854
|
}
|
|
13855
|
+
const {
|
|
13856
|
+
isLoading,
|
|
13857
|
+
data: dataCheck,
|
|
13858
|
+
isError
|
|
13859
|
+
} = Digit.Hooks.usePaymentUpdate({
|
|
13860
|
+
egId: egPgTxnId
|
|
13861
|
+
}, businessService, {
|
|
13862
|
+
enabled: !!egPgTxnId,
|
|
13863
|
+
retry: false,
|
|
13864
|
+
staleTime: Infinity,
|
|
13865
|
+
refetchOnWindowFocus: false
|
|
13866
|
+
});
|
|
13458
13867
|
const mutation = Digit.Hooks.chb.useChbCreateAPI(tenantId, false);
|
|
13459
13868
|
const FSM_EDITOR = Digit.UserService.hasAccess("FSM_EDITOR_EMP") || false;
|
|
13460
13869
|
function onActionSelect(action) {
|
|
@@ -13570,45 +13979,11 @@ const SuccessfulPayment$1 = props => {
|
|
|
13570
13979
|
setTimeout(() => URL.revokeObjectURL(link.href), 7000);
|
|
13571
13980
|
}
|
|
13572
13981
|
};
|
|
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
|
-
};
|
|
13607
13982
|
const printChallanReceipt = async () => {
|
|
13608
13983
|
if (printing) return;
|
|
13609
13984
|
setPrinting(true);
|
|
13610
13985
|
try {
|
|
13611
|
-
var
|
|
13986
|
+
var _applicationDetails$A, _applicationDetails$A2;
|
|
13612
13987
|
const applicationDetails = await Digit.ChallanGenerationService.search({
|
|
13613
13988
|
tenantId,
|
|
13614
13989
|
filters: {
|
|
@@ -13619,16 +13994,17 @@ const SuccessfulPayment$1 = props => {
|
|
|
13619
13994
|
...applicationDetails,
|
|
13620
13995
|
...challanEmpData
|
|
13621
13996
|
};
|
|
13997
|
+
console.log("applicationDetails", applicationDetails);
|
|
13622
13998
|
let application = challan;
|
|
13623
|
-
|
|
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;
|
|
13999
|
+
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;
|
|
13627
14000
|
if (!fileStoreId) {
|
|
13628
|
-
var _payments$
|
|
14001
|
+
var _payments$Payments;
|
|
14002
|
+
const payments = await Digit.PaymentService.getReciept(tenantId, businessService, {
|
|
14003
|
+
receiptNumbers: receiptNumber
|
|
14004
|
+
});
|
|
13629
14005
|
let response = await Digit.PaymentService.generatePdf(tenantId, {
|
|
13630
14006
|
Payments: [{
|
|
13631
|
-
...((payments === null || payments === void 0 ? void 0 : (_payments$
|
|
14007
|
+
...((payments === null || payments === void 0 ? void 0 : (_payments$Payments = payments.Payments) === null || _payments$Payments === void 0 ? void 0 : _payments$Payments[0]) || {}),
|
|
13632
14008
|
challan: application
|
|
13633
14009
|
}]
|
|
13634
14010
|
}, "challangeneration-receipt");
|
|
@@ -13646,7 +14022,7 @@ const SuccessfulPayment$1 = props => {
|
|
|
13646
14022
|
if (chbPermissionLoading) return;
|
|
13647
14023
|
setChbPermissionLoading(true);
|
|
13648
14024
|
try {
|
|
13649
|
-
var _applicationDetails$c, _applicationDetails$c2, _applicationDetails$c3, _applicationDetails$c4, _applicationDetails$c5, _applicationDetails$c6, _applicationDetails$
|
|
14025
|
+
var _applicationDetails$c, _applicationDetails$c2, _applicationDetails$c3, _applicationDetails$c4, _applicationDetails$c5, _applicationDetails$c6, _applicationDetails$A3, _applicationDetails$A4;
|
|
13650
14026
|
const applicationDetails = await Digit.ChallanGenerationService.search({
|
|
13651
14027
|
tenantId,
|
|
13652
14028
|
filters: {
|
|
@@ -13654,23 +14030,23 @@ const SuccessfulPayment$1 = props => {
|
|
|
13654
14030
|
}
|
|
13655
14031
|
});
|
|
13656
14032
|
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);
|
|
13657
|
-
console.log(
|
|
14033
|
+
console.log("location", location);
|
|
13658
14034
|
const challan = {
|
|
13659
14035
|
...applicationDetails,
|
|
13660
14036
|
...challanEmpData
|
|
13661
14037
|
};
|
|
13662
14038
|
console.log("applicationDetails", applicationDetails);
|
|
13663
14039
|
let application = challan;
|
|
13664
|
-
let fileStoreId = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
14040
|
+
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;
|
|
13665
14041
|
if (!fileStoreId) {
|
|
13666
|
-
var _payments$
|
|
14042
|
+
var _payments$Payments2;
|
|
13667
14043
|
const payments = await Digit.PaymentService.getReciept(tenantId, businessService, {
|
|
13668
14044
|
receiptNumbers: receiptNumber
|
|
13669
14045
|
});
|
|
13670
14046
|
let response = await Digit.PaymentService.generatePdf(tenantId, {
|
|
13671
14047
|
challan: {
|
|
13672
14048
|
...application,
|
|
13673
|
-
...((payments === null || payments === void 0 ? void 0 : (_payments$
|
|
14049
|
+
...((payments === null || payments === void 0 ? void 0 : (_payments$Payments2 = payments.Payments) === null || _payments$Payments2 === void 0 ? void 0 : _payments$Payments2[0]) || {}),
|
|
13674
14050
|
location
|
|
13675
14051
|
}
|
|
13676
14052
|
}, "challan-notice");
|
|
@@ -13710,13 +14086,13 @@ const SuccessfulPayment$1 = props => {
|
|
|
13710
14086
|
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;
|
|
13711
14087
|
const generatePdfKeyForTL = "chb-permissionletter";
|
|
13712
14088
|
if (!fileStoreId) {
|
|
13713
|
-
var _payments$
|
|
14089
|
+
var _payments$Payments3;
|
|
13714
14090
|
const payments = await Digit.PaymentService.getReciept(tenantId, businessService, {
|
|
13715
14091
|
receiptNumbers: receiptNumber
|
|
13716
14092
|
});
|
|
13717
14093
|
const response = await Digit.PaymentService.generatePdf(tenantId, {
|
|
13718
14094
|
Payments: [{
|
|
13719
|
-
...((payments === null || payments === void 0 ? void 0 : (_payments$
|
|
14095
|
+
...((payments === null || payments === void 0 ? void 0 : (_payments$Payments3 = payments.Payments) === null || _payments$Payments3 === void 0 ? void 0 : _payments$Payments3[0]) || {}),
|
|
13720
14096
|
...application
|
|
13721
14097
|
}]
|
|
13722
14098
|
}, generatePdfKeyForTL);
|
|
@@ -13762,16 +14138,16 @@ const SuccessfulPayment$1 = props => {
|
|
|
13762
14138
|
};
|
|
13763
14139
|
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;
|
|
13764
14140
|
if (!fileStoreId) {
|
|
13765
|
-
var _payments$Payments$
|
|
14141
|
+
var _payments$Payments$3, _payments$Payments4, _response, _response2;
|
|
13766
14142
|
const payments = await Digit.PaymentService.getReciept(tenantId, businessService, {
|
|
13767
14143
|
receiptNumbers: receiptNumber
|
|
13768
14144
|
});
|
|
13769
14145
|
let response = {
|
|
13770
|
-
filestoreIds: [(_payments$Payments$
|
|
14146
|
+
filestoreIds: [(_payments$Payments$3 = payments.Payments[0]) === null || _payments$Payments$3 === void 0 ? void 0 : _payments$Payments$3.fileStoreId]
|
|
13771
14147
|
};
|
|
13772
14148
|
response = await Digit.PaymentService.generatePdf(tenantId, {
|
|
13773
14149
|
Payments: [{
|
|
13774
|
-
...((payments === null || payments === void 0 ? void 0 : (_payments$
|
|
14150
|
+
...((payments === null || payments === void 0 ? void 0 : (_payments$Payments4 = payments.Payments) === null || _payments$Payments4 === void 0 ? void 0 : _payments$Payments4[0]) || {}),
|
|
13775
14151
|
...application
|
|
13776
14152
|
}]
|
|
13777
14153
|
}, "chbservice-receipt");
|
|
@@ -13807,13 +14183,13 @@ const SuccessfulPayment$1 = props => {
|
|
|
13807
14183
|
let application = new_data;
|
|
13808
14184
|
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;
|
|
13809
14185
|
if (!fileStoreId) {
|
|
13810
|
-
var _payments$
|
|
14186
|
+
var _payments$Payments5;
|
|
13811
14187
|
const payments = await Digit.PaymentService.getReciept(tenantId, businessService, {
|
|
13812
14188
|
receiptNumbers: receiptNumber
|
|
13813
14189
|
});
|
|
13814
14190
|
let response = await Digit.PaymentService.generatePdf(tenantId, {
|
|
13815
14191
|
Payments: [{
|
|
13816
|
-
...((payments === null || payments === void 0 ? void 0 : (_payments$
|
|
14192
|
+
...((payments === null || payments === void 0 ? void 0 : (_payments$Payments5 = payments.Payments) === null || _payments$Payments5 === void 0 ? void 0 : _payments$Payments5[0]) || {}),
|
|
13817
14193
|
...application
|
|
13818
14194
|
}]
|
|
13819
14195
|
}, "adv-bill");
|
|
@@ -13834,13 +14210,13 @@ const SuccessfulPayment$1 = props => {
|
|
|
13834
14210
|
receiptNumbers: receiptNumber
|
|
13835
14211
|
});
|
|
13836
14212
|
try {
|
|
13837
|
-
var _payments$Payments$
|
|
13838
|
-
let fileStoreId = (_payments$Payments$
|
|
14213
|
+
var _payments$Payments$4;
|
|
14214
|
+
let fileStoreId = (_payments$Payments$4 = payments.Payments[0]) === null || _payments$Payments$4 === void 0 ? void 0 : _payments$Payments$4.fileStoreId;
|
|
13839
14215
|
if (!fileStoreId) {
|
|
13840
|
-
var _payments$
|
|
14216
|
+
var _payments$Payments6;
|
|
13841
14217
|
let response = await Digit.PaymentService.generatePdf(tenantId, {
|
|
13842
14218
|
Payments: [{
|
|
13843
|
-
...((payments === null || payments === void 0 ? void 0 : (_payments$
|
|
14219
|
+
...((payments === null || payments === void 0 ? void 0 : (_payments$Payments6 = payments.Payments) === null || _payments$Payments6 === void 0 ? void 0 : _payments$Payments6[0]) || {})
|
|
13844
14220
|
}]
|
|
13845
14221
|
}, "pet-receipt-employee");
|
|
13846
14222
|
fileStoreId = response === null || response === void 0 ? void 0 : response.filestoreIds[0];
|
|
@@ -13857,7 +14233,7 @@ const SuccessfulPayment$1 = props => {
|
|
|
13857
14233
|
if (printing) return;
|
|
13858
14234
|
setPrinting(true);
|
|
13859
14235
|
try {
|
|
13860
|
-
var _applicationDetails$
|
|
14236
|
+
var _applicationDetails$A5, _applicationDetails$A6, _applicationDetails$A7;
|
|
13861
14237
|
console.log("consumerCode for ndc", consumerCode);
|
|
13862
14238
|
console.log("tenantId for ndc", tenantId);
|
|
13863
14239
|
const applicationDetails = await Digit.NDCService.NDCsearch({
|
|
@@ -13866,16 +14242,16 @@ const SuccessfulPayment$1 = props => {
|
|
|
13866
14242
|
applicationNo: consumerCode
|
|
13867
14243
|
}
|
|
13868
14244
|
});
|
|
13869
|
-
let application = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
13870
|
-
let fileStoreId = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
14245
|
+
let application = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$A5 = applicationDetails.Applications) === null || _applicationDetails$A5 === void 0 ? void 0 : _applicationDetails$A5[0];
|
|
14246
|
+
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;
|
|
13871
14247
|
if (!fileStoreId) {
|
|
13872
|
-
var _payments$
|
|
14248
|
+
var _payments$Payments7;
|
|
13873
14249
|
const payments = await Digit.PaymentService.getReciept(tenantId, businessService, {
|
|
13874
14250
|
receiptNumbers: receiptNumber
|
|
13875
14251
|
});
|
|
13876
14252
|
let response = await Digit.PaymentService.generatePdf(tenantId, {
|
|
13877
14253
|
Payments: [{
|
|
13878
|
-
...((payments === null || payments === void 0 ? void 0 : (_payments$
|
|
14254
|
+
...((payments === null || payments === void 0 ? void 0 : (_payments$Payments7 = payments.Payments) === null || _payments$Payments7 === void 0 ? void 0 : _payments$Payments7[0]) || {}),
|
|
13879
14255
|
...application
|
|
13880
14256
|
}]
|
|
13881
14257
|
}, "ndc-receipt");
|
|
@@ -14011,7 +14387,7 @@ const SuccessfulPayment$1 = props => {
|
|
|
14011
14387
|
}
|
|
14012
14388
|
};
|
|
14013
14389
|
const printReciept = async () => {
|
|
14014
|
-
var _payments$Payments$
|
|
14390
|
+
var _payments$Payments$5, _payments$Payments$6;
|
|
14015
14391
|
if (printing) return;
|
|
14016
14392
|
setPrinting(true);
|
|
14017
14393
|
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
@@ -14020,10 +14396,10 @@ const SuccessfulPayment$1 = props => {
|
|
|
14020
14396
|
receiptNumbers: receiptNumber
|
|
14021
14397
|
});
|
|
14022
14398
|
let response = {
|
|
14023
|
-
filestoreIds: [(_payments$Payments$
|
|
14399
|
+
filestoreIds: [(_payments$Payments$5 = payments.Payments[0]) === null || _payments$Payments$5 === void 0 ? void 0 : _payments$Payments$5.fileStoreId]
|
|
14024
14400
|
};
|
|
14025
14401
|
let fileStoreTenant;
|
|
14026
|
-
if (!((_payments$Payments$
|
|
14402
|
+
if (!((_payments$Payments$6 = payments.Payments[0]) !== null && _payments$Payments$6 !== void 0 && _payments$Payments$6.fileStoreId)) {
|
|
14027
14403
|
let assessmentYear = "";
|
|
14028
14404
|
let count = 0;
|
|
14029
14405
|
let toDate, fromDate;
|
|
@@ -14090,7 +14466,7 @@ const SuccessfulPayment$1 = props => {
|
|
|
14090
14466
|
await Digit.Utils.downloadReceipt(consumercode, businessService, "consolidatedreceipt", tenantid);
|
|
14091
14467
|
};
|
|
14092
14468
|
const printRecieptNew = async payment => {
|
|
14093
|
-
var _payments$Payments$
|
|
14469
|
+
var _payments$Payments$7;
|
|
14094
14470
|
console.log("paymentpayment", payment, payment.Payments[0].paymentDetails[0].receiptNumber, payment.Payments[0]);
|
|
14095
14471
|
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
14096
14472
|
const state = Digit.ULBService.getStateId();
|
|
@@ -14099,7 +14475,7 @@ const SuccessfulPayment$1 = props => {
|
|
|
14099
14475
|
receiptNumbers: payment.Payments[0].paymentDetails[0].receiptNumber
|
|
14100
14476
|
});
|
|
14101
14477
|
let response = {
|
|
14102
|
-
filestoreIds: [(_payments$Payments$
|
|
14478
|
+
filestoreIds: [(_payments$Payments$7 = payments.Payments[0]) === null || _payments$Payments$7 === void 0 ? void 0 : _payments$Payments$7.fileStoreId]
|
|
14103
14479
|
};
|
|
14104
14480
|
{
|
|
14105
14481
|
let assessmentYear = "",
|
|
@@ -14302,18 +14678,19 @@ const SuccessfulPayment$1 = props => {
|
|
|
14302
14678
|
});
|
|
14303
14679
|
window.open(fileStore[response.filestoreIds[0]], "_blank");
|
|
14304
14680
|
};
|
|
14305
|
-
if (
|
|
14681
|
+
if (isLoading) return /*#__PURE__*/React.createElement(Loader, null);
|
|
14682
|
+
const checkRecieptNumber = dataCheck === null || dataCheck === void 0 ? void 0 : (_dataCheck$payments = dataCheck.payments) === null || _dataCheck$payments === void 0 ? void 0 : (_dataCheck$payments$P = _dataCheck$payments.Payments) === null || _dataCheck$payments$P === void 0 ? void 0 : (_dataCheck$payments$P2 = _dataCheck$payments$P[0]) === null || _dataCheck$payments$P2 === void 0 ? void 0 : (_dataCheck$payments$P3 = _dataCheck$payments$P2.paymentDetails[0]) === null || _dataCheck$payments$P3 === void 0 ? void 0 : _dataCheck$payments$P3.receiptNumber;
|
|
14306
14683
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(Banner, {
|
|
14307
14684
|
message: getMessage(),
|
|
14308
14685
|
info: t("PAYMENT_LOCALIZATION_RECIEPT_NO"),
|
|
14309
|
-
applicationNumber: receiptNumber,
|
|
14686
|
+
applicationNumber: receiptNumber || checkRecieptNumber,
|
|
14310
14687
|
successful: true
|
|
14311
14688
|
}), /*#__PURE__*/React.createElement(CardText, null, getCardText()), generatePdfKey ? /*#__PURE__*/React.createElement("div", {
|
|
14312
14689
|
style: {
|
|
14313
14690
|
display: "flex",
|
|
14314
14691
|
justifyContent: "space-evenly"
|
|
14315
14692
|
}
|
|
14316
|
-
}, businessService !== "chb-services" && businessService !== "adv-services" && businessService !== "pet-services" && businessService !== "NDC" && businessService !== "Challan_Generation" &&
|
|
14693
|
+
}, businessService !== "chb-services" && businessService !== "adv-services" && businessService !== "pet-services" && businessService !== "NDC" && businessService !== "Challan_Generation" && /*#__PURE__*/React.createElement("div", {
|
|
14317
14694
|
className: "primary-label-btn d-grid",
|
|
14318
14695
|
style: {
|
|
14319
14696
|
marginLeft: "unset",
|
|
@@ -14542,29 +14919,7 @@ const SuccessfulPayment$1 = props => {
|
|
|
14542
14919
|
fill: "none"
|
|
14543
14920
|
}), /*#__PURE__*/React.createElement("path", {
|
|
14544
14921
|
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"
|
|
14545
|
-
})), t("Challan_Notice")))) : null, businessService == "
|
|
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, {
|
|
14922
|
+
})), t("Challan_Notice")))) : null, businessService == "sv-services" && /*#__PURE__*/React.createElement(Link, {
|
|
14568
14923
|
to: `/digit-ui/citizen`
|
|
14569
14924
|
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
14570
14925
|
label: t("CORE_COMMON_GO_TO_HOME"),
|
|
@@ -14880,8 +15235,15 @@ const EmployeePayment = ({
|
|
|
14880
15235
|
path: `${currentPath}/collect/:businessService/:consumerCode`
|
|
14881
15236
|
}, /*#__PURE__*/React.createElement(CollectPayment, Object.assign({}, commonProps, {
|
|
14882
15237
|
basePath: currentPath
|
|
15238
|
+
}))), /*#__PURE__*/React.createElement(Route, {
|
|
15239
|
+
path: `${currentPath}/challan/collect/:businessService/:consumerCode`
|
|
15240
|
+
}, /*#__PURE__*/React.createElement(SelectPaymentType$2, Object.assign({}, commonProps, {
|
|
15241
|
+
basePath: currentPath,
|
|
15242
|
+
stateCode: stateCode
|
|
14883
15243
|
}))), /*#__PURE__*/React.createElement(Route, {
|
|
14884
15244
|
path: `${currentPath}/success/:businessService/:receiptNumber/:consumerCode`
|
|
15245
|
+
}, /*#__PURE__*/React.createElement(SuccessfulPayment$1, commonProps)), /*#__PURE__*/React.createElement(Route, {
|
|
15246
|
+
path: `${currentPath}/challan/success/:businessService/:consumerCode`
|
|
14885
15247
|
}, /*#__PURE__*/React.createElement(SuccessfulPayment$1, commonProps)), /*#__PURE__*/React.createElement(Route, {
|
|
14886
15248
|
path: `${currentPath}/integration/:moduleName/:pageName`
|
|
14887
15249
|
}, /*#__PURE__*/React.createElement(IFrameInterface, commonProps)), /*#__PURE__*/React.createElement(Route, {
|