@djb25/digit-ui-module-common 1.0.3 → 1.0.4
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 +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +4 -4
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -5139,7 +5139,7 @@ const BillDetails$1 = _ref => {
|
|
|
5139
5139
|
const _excluded$2 = ["ManualRecieptDetails", "paymentModeDetails"],
|
|
5140
5140
|
_excluded2 = ["errorObj"];
|
|
5141
5141
|
const CollectPayment = props => {
|
|
5142
|
-
var _businessService$toUp;
|
|
5142
|
+
var _paymentdetails$Bill, _businessService$toUp;
|
|
5143
5143
|
const _Digit$Hooks$useQuery = Digit.Hooks.useQueryParams(),
|
|
5144
5144
|
ModuleWorkflow = _Digit$Hooks$useQuery.workflow,
|
|
5145
5145
|
IsDisconnectionFlow = _Digit$Hooks$useQuery.IsDisconnectionFlow;
|
|
@@ -5163,11 +5163,11 @@ const CollectPayment = props => {
|
|
|
5163
5163
|
const _Digit$Hooks$useFetch = Digit.Hooks.useFetchPayment({
|
|
5164
5164
|
tenantId: tenantId,
|
|
5165
5165
|
consumerCode,
|
|
5166
|
-
businessService
|
|
5166
|
+
businessService
|
|
5167
5167
|
}),
|
|
5168
5168
|
paymentdetails = _Digit$Hooks$useFetch.data,
|
|
5169
5169
|
isLoading = _Digit$Hooks$useFetch.isLoading;
|
|
5170
|
-
const bill = paymentdetails
|
|
5170
|
+
const bill = (paymentdetails === null || paymentdetails === void 0 ? void 0 : (_paymentdetails$Bill = paymentdetails.Bill) === null || _paymentdetails$Bill === void 0 ? void 0 : _paymentdetails$Bill.length) > 0 ? paymentdetails === null || paymentdetails === void 0 ? void 0 : paymentdetails.Bill[0] : {};
|
|
5171
5171
|
const _Digit$Hooks$fsm$useS = Digit.Hooks.fsm.useSearch(tenantId, {
|
|
5172
5172
|
applicationNos: consumerCode
|
|
5173
5173
|
}, {
|
|
@@ -5502,7 +5502,7 @@ const CollectPayment = props => {
|
|
|
5502
5502
|
onSubmit: onSubmit,
|
|
5503
5503
|
formState: formState,
|
|
5504
5504
|
defaultValues: getDefaultValues(),
|
|
5505
|
-
isDisabled: (IsDisconnectionFlow ? false : businessService === "SW" || "WS" ? false : bill !== null && bill !== void 0 && bill.totalAmount ? !bill.totalAmount > 0 : true) || timerEnabledForBusinessService(businessService) && Time === 0,
|
|
5505
|
+
isDisabled: (IsDisconnectionFlow ? false : businessService === "SW" || businessService === "WS" ? false : bill !== null && bill !== void 0 && bill.totalAmount ? !bill.totalAmount > 0 : true) || timerEnabledForBusinessService(businessService) && Time === 0,
|
|
5506
5506
|
onFormValueChange: (setValue, formValue) => {
|
|
5507
5507
|
if (!isEqual_1(formValue.paymentMode, selectedPaymentMode)) {
|
|
5508
5508
|
setFormState(formValue);
|