@zeniai/client-epic-state 4.14.15 → 4.14.16
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.
|
@@ -149,7 +149,6 @@ const editBillView = (0, toolkit_1.createSlice)({
|
|
|
149
149
|
.outsideZeniPaymentLocalData;
|
|
150
150
|
}
|
|
151
151
|
else {
|
|
152
|
-
draft.newBillState = editBillViewState_1.initialBillDetail;
|
|
153
152
|
delete draft.newBillState.billDetailLocalData
|
|
154
153
|
.outsideZeniPaymentLocalData;
|
|
155
154
|
}
|
|
@@ -33,7 +33,7 @@ const setupViewSelector_1 = require("../../commonSetup/setupViewSelector");
|
|
|
33
33
|
const getCompanyView_1 = require("../../../companyView/selectorHelpers/getCompanyView");
|
|
34
34
|
const getEditBillDetail = (state, isVendorRecommendationFeatureEnabled, isZeniAccountsEnabled, billId) => {
|
|
35
35
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5;
|
|
36
|
-
const { accountListState, accountState, bankAccountState, billDetailViewState, paymentAccountListState, billTransactionState, billPayConfigState, classListState, classState, editBillDetailViewState, paymentAccountState, vendorState, tenantState, companyState, userState, commonHistoryState, contactState, paymentInstrumentState, recurringBillState, depositAccountListState, depositAccountState, } = state;
|
|
36
|
+
const { accountListState, accountState, bankAccountState, billDetailViewState, paymentAccountListState, billTransactionState, billPayConfigState, classListState, classState, editBillDetailViewState, paymentAccountState, vendorState, tenantState, companyState, userState, commonHistoryState, contactState, paymentInstrumentState, recurringBillState, depositAccountListState, depositAccountState, billPaySetupApproverViewState, } = state;
|
|
37
37
|
const transaction = (0, get_1.default)(billTransactionState.transactionById, billId !== null && billId !== void 0 ? billId : '', undefined);
|
|
38
38
|
let recommendations = {};
|
|
39
39
|
if (billId != null) {
|
|
@@ -181,6 +181,7 @@ const getEditBillDetail = (state, isVendorRecommendationFeatureEnabled, isZeniAc
|
|
|
181
181
|
sourceBillDetail.fetchStatus,
|
|
182
182
|
accountListState.byReportId.billPayAccountList,
|
|
183
183
|
classListState,
|
|
184
|
+
billPaySetupApproverViewState,
|
|
184
185
|
]).fetchState;
|
|
185
186
|
deleteStatus = billViewState.deleteStatus;
|
|
186
187
|
billActivities = (0, billDetailViewSelector_1.getBillActivities)(state, billId, billPayInfo === null || billPayInfo === void 0 ? void 0 : billPayInfo.stage.code);
|
|
@@ -198,6 +199,7 @@ const getEditBillDetail = (state, isVendorRecommendationFeatureEnabled, isZeniAc
|
|
|
198
199
|
fetchState = (0, reduceFetchState_1.reduceFetchState)([
|
|
199
200
|
accountListState.byReportId.billPayAccountList,
|
|
200
201
|
classListState,
|
|
202
|
+
billPaySetupApproverViewState,
|
|
201
203
|
]).fetchState;
|
|
202
204
|
}
|
|
203
205
|
if (sourceBillDetail != null && fetchState == 'Completed') {
|
|
@@ -40,8 +40,8 @@ const fetchEditBillDetailPageEpic = (actions$, state$) => actions$.pipe((0, oper
|
|
|
40
40
|
}
|
|
41
41
|
else {
|
|
42
42
|
billDetailActions.push((0, editBillViewReducer_1.updateShowAutofill)(true));
|
|
43
|
-
billDetailActions.push((0, billPaySetupApproverViewReducer_1.fetchBillPaySetupApproverView)(true));
|
|
44
43
|
}
|
|
44
|
+
billDetailActions.push((0, billPaySetupApproverViewReducer_1.fetchBillPaySetupApproverView)(true));
|
|
45
45
|
}
|
|
46
46
|
else {
|
|
47
47
|
if (state.ownerListState.fetchState !== 'In-Progress' &&
|
|
@@ -81,12 +81,11 @@ const fetchEditBillDetailPageEpic = (actions$, state$) => actions$.pipe((0, oper
|
|
|
81
81
|
if (billId != null) {
|
|
82
82
|
billDetailActions.push((0, editBillViewReducer_1.fetchBillAndInitializeLocalStore)(billId, false, isShowDeletedBillsEnabled, hasZeniAssistAccess));
|
|
83
83
|
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
}
|
|
84
|
+
const approvalViewFetchState = state.billPaySetupApproverViewState.fetchState;
|
|
85
|
+
// While opening New Bill Refresh Approval Rules and Payment Accounts
|
|
86
|
+
if (approvalViewFetchState !== 'In-Progress' &&
|
|
87
|
+
approvalViewFetchState !== 'Completed') {
|
|
88
|
+
billDetailActions.push((0, billPaySetupApproverViewReducer_1.fetchBillPaySetupApproverView)(true));
|
|
90
89
|
}
|
|
91
90
|
}
|
|
92
91
|
return (0, rxjs_1.concat)((0, rxjs_1.from)(billDetailActions));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.14.
|
|
3
|
+
"version": "4.14.16",
|
|
4
4
|
"description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|