@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.js
CHANGED
|
@@ -5142,7 +5142,7 @@ const BillDetails$1 = _ref => {
|
|
|
5142
5142
|
const _excluded$2 = ["ManualRecieptDetails", "paymentModeDetails"],
|
|
5143
5143
|
_excluded2 = ["errorObj"];
|
|
5144
5144
|
const CollectPayment = props => {
|
|
5145
|
-
var _businessService$toUp;
|
|
5145
|
+
var _paymentdetails$Bill, _businessService$toUp;
|
|
5146
5146
|
const _Digit$Hooks$useQuery = Digit.Hooks.useQueryParams(),
|
|
5147
5147
|
ModuleWorkflow = _Digit$Hooks$useQuery.workflow,
|
|
5148
5148
|
IsDisconnectionFlow = _Digit$Hooks$useQuery.IsDisconnectionFlow;
|
|
@@ -5166,11 +5166,11 @@ const CollectPayment = props => {
|
|
|
5166
5166
|
const _Digit$Hooks$useFetch = Digit.Hooks.useFetchPayment({
|
|
5167
5167
|
tenantId: tenantId,
|
|
5168
5168
|
consumerCode,
|
|
5169
|
-
businessService
|
|
5169
|
+
businessService
|
|
5170
5170
|
}),
|
|
5171
5171
|
paymentdetails = _Digit$Hooks$useFetch.data,
|
|
5172
5172
|
isLoading = _Digit$Hooks$useFetch.isLoading;
|
|
5173
|
-
const bill = paymentdetails
|
|
5173
|
+
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] : {};
|
|
5174
5174
|
const _Digit$Hooks$fsm$useS = Digit.Hooks.fsm.useSearch(tenantId, {
|
|
5175
5175
|
applicationNos: consumerCode
|
|
5176
5176
|
}, {
|
|
@@ -5505,7 +5505,7 @@ const CollectPayment = props => {
|
|
|
5505
5505
|
onSubmit: onSubmit,
|
|
5506
5506
|
formState: formState,
|
|
5507
5507
|
defaultValues: getDefaultValues(),
|
|
5508
|
-
isDisabled: (IsDisconnectionFlow ? false : businessService === "SW" || "WS" ? false : bill !== null && bill !== void 0 && bill.totalAmount ? !bill.totalAmount > 0 : true) || timerEnabledForBusinessService(businessService) && Time === 0,
|
|
5508
|
+
isDisabled: (IsDisconnectionFlow ? false : businessService === "SW" || businessService === "WS" ? false : bill !== null && bill !== void 0 && bill.totalAmount ? !bill.totalAmount > 0 : true) || timerEnabledForBusinessService(businessService) && Time === 0,
|
|
5509
5509
|
onFormValueChange: (setValue, formValue) => {
|
|
5510
5510
|
if (!isEqual_1(formValue.paymentMode, selectedPaymentMode)) {
|
|
5511
5511
|
setFormState(formValue);
|