@zeniai/client-epic-state 5.2.14 → 5.2.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.
- package/lib/entity/accountRecon/accountReconReducer.d.ts +2 -1
- package/lib/entity/accountRecon/accountReconReducer.js +22 -10
- package/lib/entity/accountRecon/accountReconSelector.d.ts +1 -0
- package/lib/entity/accountRecon/accountReconSelector.js +1 -0
- package/lib/entity/approvalRule/approvalRuleConflict.d.ts +13 -0
- package/lib/entity/approvalRule/approvalRuleConflict.js +16 -1
- package/lib/entity/jeSchedules/jeScheduleHelper.d.ts +1 -0
- package/lib/entity/jeSchedules/jeScheduleHelper.js +7 -0
- package/lib/entity/jeSchedules/jeSchedulesPayload.d.ts +78 -1
- package/lib/entity/jeSchedules/jeSchedulesPayload.js +183 -4
- package/lib/entity/jeSchedules/jeSchedulesReducer.d.ts +4 -2
- package/lib/entity/jeSchedules/jeSchedulesReducer.js +30 -2
- package/lib/entity/jeSchedules/jeSchedulesSelector.d.ts +11 -2
- package/lib/entity/jeSchedules/jeSchedulesSelector.js +38 -3
- package/lib/entity/jeSchedules/jeSchedulesState.d.ts +123 -1
- package/lib/entity/jeSchedules/jeSchedulesTypes.d.ts +24 -1
- package/lib/entity/jeSchedules/jeSchedulesTypes.js +96 -1
- package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
- package/lib/entity/snackbar/snackbarTypes.js +3 -0
- package/lib/entity/transaction/payloadTypes/scheduleTransactionPayload.d.ts +2 -0
- package/lib/entity/transaction/payloadTypes/scheduleTransactionPayload.js +2 -0
- package/lib/entity/transaction/stateTypes/scheduleTransaction.d.ts +2 -0
- package/lib/epic.d.ts +10 -1
- package/lib/epic.js +18 -0
- package/lib/esm/entity/accountRecon/accountReconReducer.js +22 -10
- package/lib/esm/entity/accountRecon/accountReconSelector.js +1 -0
- package/lib/esm/entity/approvalRule/approvalRuleConflict.js +16 -1
- package/lib/esm/entity/jeSchedules/jeScheduleHelper.js +6 -0
- package/lib/esm/entity/jeSchedules/jeSchedulesPayload.js +183 -5
- package/lib/esm/entity/jeSchedules/jeSchedulesReducer.js +30 -2
- package/lib/esm/entity/jeSchedules/jeSchedulesSelector.js +36 -2
- package/lib/esm/entity/jeSchedules/jeSchedulesTypes.js +86 -0
- package/lib/esm/entity/snackbar/snackbarTypes.js +3 -0
- package/lib/esm/entity/transaction/payloadTypes/scheduleTransactionPayload.js +2 -0
- package/lib/esm/epic.js +18 -0
- package/lib/esm/index.js +16 -10
- package/lib/esm/view/expenseAutomationView/epics/accountRecon/confirmStatementMappingEpic.js +2 -2
- package/lib/esm/view/expenseAutomationView/epics/accountRecon/deleteCombinedStatementEpic.js +54 -0
- package/lib/esm/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.js +1 -1
- package/lib/esm/view/expenseAutomationView/epics/accountRecon/updateCombinedStatementInfoEpic.js +3 -6
- package/lib/esm/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.js +6 -3
- package/lib/esm/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulePageEpic.js +9 -1
- package/lib/esm/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulesEpic.js +41 -5
- package/lib/esm/view/expenseAutomationView/epics/jeSchedule/fetchOneTimeAccrualEpic.js +45 -0
- package/lib/esm/view/expenseAutomationView/epics/jeSchedule/ignoreRecommendedJeScheduleEpic.js +14 -2
- package/lib/esm/view/expenseAutomationView/epics/jeSchedule/newSchedule/createOneTimeAccrualEpic.js +104 -0
- package/lib/esm/view/expenseAutomationView/epics/jeSchedule/newSchedule/initializeNewScheduleEpic.js +25 -0
- package/lib/esm/view/expenseAutomationView/epics/jeSchedule/newSchedule/saveNewScheduleEpic.js +138 -0
- package/lib/esm/view/expenseAutomationView/epics/jeSchedule/newSchedule/searchTransactionsForNewScheduleEpic.js +79 -0
- package/lib/esm/view/expenseAutomationView/epics/jeSchedule/oneTimeAccrualActionsEpic.js +180 -0
- package/lib/esm/view/expenseAutomationView/epics/jeSchedule/revertJeScheduleEpic.js +111 -0
- package/lib/esm/view/expenseAutomationView/epics/jeSchedule/switchJESchedulesTabEpic.js +28 -0
- package/lib/esm/view/expenseAutomationView/helpers/newScheduleLocalDataHelper.js +140 -0
- package/lib/esm/view/expenseAutomationView/helpers/reconciliationHelpers.js +12 -0
- package/lib/esm/view/expenseAutomationView/payload/jeSchedulesPayload.js +55 -0
- package/lib/esm/view/expenseAutomationView/reducers/jeSchedulesViewReducer.js +319 -29
- package/lib/esm/view/expenseAutomationView/reducers/reconciliationViewReducer.js +20 -2
- package/lib/esm/view/expenseAutomationView/selectorTypes/jeNewScheduleViewSelectorTypes.js +1 -0
- package/lib/esm/view/expenseAutomationView/selectors/jeAccountSettingsViewSelector.js +1 -0
- package/lib/esm/view/expenseAutomationView/selectors/jeNewScheduleViewSelector.js +106 -0
- package/lib/esm/view/expenseAutomationView/selectors/jeSchedulesViewSelector.js +327 -22
- package/lib/esm/view/expenseAutomationView/types/jeSchedulesViewState.js +5 -6
- package/lib/esm/view/scheduleView/scheduleListView/epics/fetchAccruedScheduleListEpic.js +1 -1
- package/lib/esm/view/scheduleView/scheduleListView/epics/fetchDownloadSchedulesEpic.js +7 -2
- package/lib/esm/view/scheduleView/scheduleListView/scheduleListReducer.js +5 -3
- package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewSelector.js +20 -1
- package/lib/esm/view/spendManagement/reimbursement/remiSetupApproverView/remiSetupApproverViewSelector.js +20 -1
- package/lib/index.d.ts +18 -13
- package/lib/index.js +92 -47
- package/lib/view/expenseAutomationView/epics/accountRecon/confirmStatementMappingEpic.d.ts +10 -2
- package/lib/view/expenseAutomationView/epics/accountRecon/confirmStatementMappingEpic.js +1 -1
- package/lib/view/expenseAutomationView/epics/accountRecon/deleteCombinedStatementEpic.d.ts +9 -0
- package/lib/view/expenseAutomationView/epics/accountRecon/deleteCombinedStatementEpic.js +58 -0
- package/lib/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.js +1 -1
- package/lib/view/expenseAutomationView/epics/accountRecon/updateCombinedStatementInfoEpic.js +3 -6
- package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.js +6 -3
- package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulePageEpic.js +9 -1
- package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulesEpic.d.ts +3 -2
- package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulesEpic.js +39 -3
- package/lib/view/expenseAutomationView/epics/jeSchedule/fetchOneTimeAccrualEpic.d.ts +21 -0
- package/lib/view/expenseAutomationView/epics/jeSchedule/fetchOneTimeAccrualEpic.js +49 -0
- package/lib/view/expenseAutomationView/epics/jeSchedule/ignoreRecommendedJeScheduleEpic.js +14 -2
- package/lib/view/expenseAutomationView/epics/jeSchedule/newSchedule/createOneTimeAccrualEpic.d.ts +9 -0
- package/lib/view/expenseAutomationView/epics/jeSchedule/newSchedule/createOneTimeAccrualEpic.js +108 -0
- package/lib/view/expenseAutomationView/epics/jeSchedule/newSchedule/initializeNewScheduleEpic.d.ts +8 -0
- package/lib/view/expenseAutomationView/epics/jeSchedule/newSchedule/initializeNewScheduleEpic.js +29 -0
- package/lib/view/expenseAutomationView/epics/jeSchedule/newSchedule/saveNewScheduleEpic.d.ts +9 -0
- package/lib/view/expenseAutomationView/epics/jeSchedule/newSchedule/saveNewScheduleEpic.js +142 -0
- package/lib/view/expenseAutomationView/epics/jeSchedule/newSchedule/searchTransactionsForNewScheduleEpic.d.ts +8 -0
- package/lib/view/expenseAutomationView/epics/jeSchedule/newSchedule/searchTransactionsForNewScheduleEpic.js +83 -0
- package/lib/view/expenseAutomationView/epics/jeSchedule/oneTimeAccrualActionsEpic.d.ts +13 -0
- package/lib/view/expenseAutomationView/epics/jeSchedule/oneTimeAccrualActionsEpic.js +187 -0
- package/lib/view/expenseAutomationView/epics/jeSchedule/revertJeScheduleEpic.d.ts +65 -0
- package/lib/view/expenseAutomationView/epics/jeSchedule/revertJeScheduleEpic.js +115 -0
- package/lib/view/expenseAutomationView/epics/jeSchedule/switchJESchedulesTabEpic.d.ts +6 -0
- package/lib/view/expenseAutomationView/epics/jeSchedule/switchJESchedulesTabEpic.js +32 -0
- package/lib/view/expenseAutomationView/helpers/newScheduleLocalDataHelper.d.ts +36 -0
- package/lib/view/expenseAutomationView/helpers/newScheduleLocalDataHelper.js +145 -0
- package/lib/view/expenseAutomationView/helpers/reconciliationHelpers.d.ts +6 -0
- package/lib/view/expenseAutomationView/helpers/reconciliationHelpers.js +13 -0
- package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +1 -1
- package/lib/view/expenseAutomationView/payload/jeSchedulesPayload.d.ts +86 -3
- package/lib/view/expenseAutomationView/payload/jeSchedulesPayload.js +58 -1
- package/lib/view/expenseAutomationView/payload/reconciliationPayload.d.ts +4 -0
- package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.d.ts +93 -12
- package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.js +321 -29
- package/lib/view/expenseAutomationView/reducers/missingReceiptsViewReducer.d.ts +1 -1
- package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.d.ts +6 -1
- package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.js +22 -4
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +2 -2
- package/lib/view/expenseAutomationView/selectorTypes/jeAccountSettingsViewSelectorTypes.d.ts +1 -0
- package/lib/view/expenseAutomationView/selectorTypes/jeNewScheduleViewSelectorTypes.d.ts +42 -0
- package/lib/view/expenseAutomationView/selectorTypes/jeNewScheduleViewSelectorTypes.js +2 -0
- package/lib/view/expenseAutomationView/selectorTypes/jeSchedulesSelectorTypes.d.ts +41 -7
- package/lib/view/expenseAutomationView/selectors/jeAccountSettingsViewSelector.js +1 -0
- package/lib/view/expenseAutomationView/selectors/jeNewScheduleViewSelector.d.ts +21 -0
- package/lib/view/expenseAutomationView/selectors/jeNewScheduleViewSelector.js +112 -0
- package/lib/view/expenseAutomationView/selectors/jeSchedulesViewSelector.d.ts +34 -0
- package/lib/view/expenseAutomationView/selectors/jeSchedulesViewSelector.js +335 -21
- package/lib/view/expenseAutomationView/types/completedSubTab.d.ts +1 -1
- package/lib/view/expenseAutomationView/types/jeSchedulesViewState.d.ts +83 -8
- package/lib/view/expenseAutomationView/types/jeSchedulesViewState.js +8 -8
- package/lib/view/expenseAutomationView/types/reconciliationViewState.d.ts +1 -1
- package/lib/view/scheduleView/scheduleListView/epics/fetchAccruedScheduleListEpic.js +1 -1
- package/lib/view/scheduleView/scheduleListView/epics/fetchDownloadSchedulesEpic.js +7 -2
- package/lib/view/scheduleView/scheduleListView/scheduleListReducer.d.ts +4 -2
- package/lib/view/scheduleView/scheduleListView/scheduleListReducer.js +5 -3
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewSelector.js +20 -1
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewSelectorTypes.d.ts +3 -0
- package/lib/view/spendManagement/reimbursement/remiSetupApproverView/remiSetupApproverViewSelector.js +20 -1
- package/lib/view/spendManagement/reimbursement/remiSetupApproverView/remiSetupApproverViewSelectorTypes.d.ts +3 -0
- package/package.json +1 -1
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var _a;
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
4
|
+
exports.saveNewScheduleSuccess = exports.saveNewScheduleFailure = exports.saveNewSchedule = exports.saveAccountSettingsSuccess = exports.saveAccountSettingsLocalData = exports.saveAccountSettingsFailure = exports.saveAccountSettings = exports.retryJeScheduleSuccess = exports.retryJeScheduleFailure = exports.retryJeSchedule = exports.resetNewScheduleLocalData = exports.removeJeScheduleTransactionKey = exports.removeJeAccruedScheduleKey = exports.removeJeScheduleLocalDataById = exports.removeFailedJeScheduleTransactionKey = exports.initializeNewSchedule = exports.initializeJeScheduleLocalData = exports.initializeAccountSettingsView = exports.ignoreRecommendedJeScheduleSuccess = exports.ignoreRecommendedJeScheduleFailure = exports.ignoreRecommendedJeSchedule = exports.fetchRecommendationForAccountSettings = exports.fetchOneTimeAccrualSuccess = exports.fetchOneTimeAccrualFailure = exports.fetchOneTimeAccrual = exports.fetchJeSchedulesSuccess = exports.fetchJeSchedulesPage = exports.fetchJeSchedulesFailure = exports.fetchJeSchedules = exports.fetchAccountSettingsListForAccountTypes = exports.revertOneTimeAccrual = exports.revertJeScheduleSuccess = exports.revertJeScheduleFailure = exports.revertJeSchedule = exports.promoteOneTimeAccrual = exports.oneTimeAccrualActionSuccess = exports.oneTimeAccrualActionFailure = exports.ignoreOneTimeAccrual = exports.createOneTimeAccrualSuccess = exports.createOneTimeAccrualFailure = exports.createOneTimeAccrual = exports.clearSearchTransactionsForNewSchedule = exports.clearJeScheduleLocalData = exports.clearJeAccountSettingsLocalData = exports.clearExpenseAutomationJESchedulesView = exports.initialState = exports.searchTransactionsInitialState = exports.newScheduleInitialState = exports.getBaseNewScheduleLocalData = exports.accountSettingsInitialState = void 0;
|
|
5
|
+
exports.updateRecommendationForAccountSettingsFailure = exports.updateRecommendationForAccountSettings = exports.updateNewScheduleLocalData = exports.updateJeScheduleTransactionKeys = exports.updateJeScheduleLocalDataById = exports.updateJEScheduleTypeFilter = exports.updateJESchedulesUIState = exports.updateAccountSettingsListForAccountTypesFailure = exports.updateAccountSettingsListForAccountTypes = exports.toggleJEPendingGroupCollapsed = exports.toggleJECreatedGroupCollapsed = exports.searchTransactionsForNewScheduleSuccess = exports.searchTransactionsForNewScheduleFailure = exports.searchTransactionsForNewSchedule = void 0;
|
|
5
6
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
7
|
const getNestedAccountIDHierarchyForReport_1 = require("../../../commonStateTypes/accountView/getNestedAccountIDHierarchyForReport");
|
|
7
8
|
const timePeriod_1 = require("../../../commonStateTypes/timePeriod");
|
|
8
9
|
const accountPayload_1 = require("../../../entity/account/accountPayload");
|
|
10
|
+
const jeScheduleHelper_1 = require("../../../entity/jeSchedules/jeScheduleHelper");
|
|
9
11
|
const jeSchedulesPayload_1 = require("../../../entity/jeSchedules/jeSchedulesPayload");
|
|
10
12
|
const rootActions_1 = require("../../../rootActions");
|
|
11
13
|
const accountTypeRecommendationPayload_1 = require("../../accountMappingView/accountTypeRecommendation/accountTypeRecommendationPayload");
|
|
14
|
+
const jeSchedulesViewState_1 = require("../types/jeSchedulesViewState");
|
|
15
|
+
function removeKeyFromEveryTabSlot(keysByPeriodAndTab, keyToRemove) {
|
|
16
|
+
for (const periodTabKey of Object.keys(keysByPeriodAndTab)) {
|
|
17
|
+
keysByPeriodAndTab[periodTabKey] = keysByPeriodAndTab[periodTabKey].filter((jeScheduleKey) => jeScheduleKey !== keyToRemove);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
12
20
|
exports.accountSettingsInitialState = {
|
|
13
21
|
localData: {
|
|
14
22
|
selectedPrepaidExpensesAccountIds: [],
|
|
@@ -22,6 +30,7 @@ exports.accountSettingsInitialState = {
|
|
|
22
30
|
error: undefined,
|
|
23
31
|
fetchState: 'Not-Started',
|
|
24
32
|
},
|
|
33
|
+
hasLoadedAccountSettings: false,
|
|
25
34
|
recommendationFetchState: {
|
|
26
35
|
error: undefined,
|
|
27
36
|
fetchState: 'Not-Started',
|
|
@@ -40,16 +49,38 @@ exports.accountSettingsInitialState = {
|
|
|
40
49
|
accruedExpensesNestedAccountListHierarchy: [],
|
|
41
50
|
accruedExpensesRecommendations: [],
|
|
42
51
|
};
|
|
52
|
+
const getBaseNewScheduleLocalData = (scheduleType) => ({
|
|
53
|
+
scheduleType,
|
|
54
|
+
jeScheduleDetails: [],
|
|
55
|
+
});
|
|
56
|
+
exports.getBaseNewScheduleLocalData = getBaseNewScheduleLocalData;
|
|
57
|
+
exports.newScheduleInitialState = {
|
|
58
|
+
fixed_assets: (0, exports.getBaseNewScheduleLocalData)('fixed_assets'),
|
|
59
|
+
prepaid_expenses: (0, exports.getBaseNewScheduleLocalData)('prepaid_expenses'),
|
|
60
|
+
};
|
|
61
|
+
exports.searchTransactionsInitialState = {
|
|
62
|
+
searchResults: [],
|
|
63
|
+
fetchState: 'Not-Started',
|
|
64
|
+
error: undefined,
|
|
65
|
+
};
|
|
43
66
|
exports.initialState = {
|
|
44
|
-
|
|
45
|
-
|
|
67
|
+
jeScheduleTransactionKeysByPeriodAndTab: {},
|
|
68
|
+
jeScheduleAccruedKeysByPeriodAndTab: {},
|
|
69
|
+
jeScheduleOneTimeAccrualKeysByPeriodAndTab: {},
|
|
70
|
+
failedJeScheduleTransactionKeysByPeriodAndTab: {},
|
|
46
71
|
postStatusById: {},
|
|
47
72
|
ignoreStatusById: {},
|
|
73
|
+
revertStatusById: {},
|
|
48
74
|
jeScheduleLocalDataById: {},
|
|
75
|
+
oneTimeAccrualActionStatusById: {},
|
|
76
|
+
oneTimeAccrualFetchStatusById: {},
|
|
49
77
|
uiState: {
|
|
50
|
-
|
|
78
|
+
createdGroupCollapsed: false,
|
|
79
|
+
pendingGroupCollapsed: false,
|
|
51
80
|
scrollPosition: { scrollTop: 0, scrollLeft: undefined },
|
|
52
|
-
|
|
81
|
+
searchString: '',
|
|
82
|
+
selectedJETypeFilter: null,
|
|
83
|
+
selectedPageTab: 'schedules',
|
|
53
84
|
sortKey: 'transactionDate',
|
|
54
85
|
sortOrder: 'descending',
|
|
55
86
|
totalCount: 0,
|
|
@@ -60,6 +91,14 @@ exports.initialState = {
|
|
|
60
91
|
error: undefined,
|
|
61
92
|
},
|
|
62
93
|
accountSettings: exports.accountSettingsInitialState,
|
|
94
|
+
newSchedule: {
|
|
95
|
+
createOneTimeAccrualStatus: { fetchState: 'Not-Started', error: undefined },
|
|
96
|
+
newScheduleState: exports.newScheduleInitialState,
|
|
97
|
+
saveStatus: { fetchState: 'Not-Started', error: undefined },
|
|
98
|
+
searchTransactions: exports.searchTransactionsInitialState,
|
|
99
|
+
fetchState: 'Not-Started',
|
|
100
|
+
error: undefined,
|
|
101
|
+
},
|
|
63
102
|
fetchState: 'Not-Started',
|
|
64
103
|
error: undefined,
|
|
65
104
|
hasValidState() {
|
|
@@ -104,9 +143,12 @@ const expenseAutomationJESchedulesView = (0, toolkit_1.createSlice)({
|
|
|
104
143
|
},
|
|
105
144
|
},
|
|
106
145
|
fetchJeSchedulesSuccess(draft, action) {
|
|
107
|
-
const { jeSchedules, selectedPeriod, failedJeSchedules, refreshViewInBackground, } = action.payload;
|
|
146
|
+
const { jeSchedules, selectedPeriod, selectedPageTab, failedJeSchedules, accruedJeSchedules, oneTimeAccruals, refreshViewInBackground, } = action.payload;
|
|
147
|
+
const periodTabKey = (0, jeSchedulesViewState_1.getJESchedulePeriodTabKey)(selectedPageTab, (0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod));
|
|
108
148
|
const jeScheduleTransactionKeys = jeSchedules.map((schedules) => (0, jeSchedulesPayload_1.getJEScheduleTransactionDetailKeyPayload)(schedules.base_transaction));
|
|
109
149
|
const failedJeScheduleTransactionKeys = failedJeSchedules.map((schedules) => (0, jeSchedulesPayload_1.getJEScheduleTransactionDetailKeyPayload)(schedules.base_transaction));
|
|
150
|
+
const jeScheduleAccruedKeys = accruedJeSchedules.map((schedule) => (0, jeSchedulesPayload_1.getJEScheduleKey)(schedule));
|
|
151
|
+
const jeScheduleOneTimeAccrualKeys = oneTimeAccruals.map((accrual) => (0, jeScheduleHelper_1.generateJEOneTimeAccrualKey)(accrual._id));
|
|
110
152
|
if (refreshViewInBackground === true &&
|
|
111
153
|
draft.refreshStatus.fetchState === 'In-Progress') {
|
|
112
154
|
draft.refreshStatus = { fetchState: 'Completed', error: undefined };
|
|
@@ -115,19 +157,31 @@ const expenseAutomationJESchedulesView = (0, toolkit_1.createSlice)({
|
|
|
115
157
|
draft.fetchState = 'Completed';
|
|
116
158
|
draft.error = undefined;
|
|
117
159
|
}
|
|
118
|
-
draft.
|
|
119
|
-
|
|
160
|
+
draft.jeScheduleTransactionKeysByPeriodAndTab[periodTabKey] =
|
|
161
|
+
jeScheduleTransactionKeys;
|
|
162
|
+
draft.jeScheduleAccruedKeysByPeriodAndTab[periodTabKey] =
|
|
163
|
+
jeScheduleAccruedKeys;
|
|
164
|
+
draft.jeScheduleOneTimeAccrualKeysByPeriodAndTab[periodTabKey] =
|
|
165
|
+
jeScheduleOneTimeAccrualKeys;
|
|
166
|
+
draft.failedJeScheduleTransactionKeysByPeriodAndTab[periodTabKey] =
|
|
167
|
+
failedJeScheduleTransactionKeys;
|
|
120
168
|
},
|
|
121
169
|
fetchJeSchedulesFailure(draft, action) {
|
|
122
|
-
const { status, selectedPeriod } = action.payload;
|
|
170
|
+
const { status, selectedPeriod, selectedPageTab } = action.payload;
|
|
171
|
+
const periodTabKey = (0, jeSchedulesViewState_1.getJESchedulePeriodTabKey)(selectedPageTab, (0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod));
|
|
123
172
|
if (draft.refreshStatus.fetchState === 'In-Progress') {
|
|
124
173
|
draft.refreshStatus = { fetchState: 'Error', error: status };
|
|
125
174
|
}
|
|
126
175
|
else {
|
|
127
176
|
draft.fetchState = 'Error';
|
|
128
177
|
draft.error = status;
|
|
178
|
+
draft.jeScheduleTransactionKeysByPeriodAndTab[periodTabKey] = [];
|
|
179
|
+
draft.jeScheduleAccruedKeysByPeriodAndTab[periodTabKey] = [];
|
|
180
|
+
draft.jeScheduleOneTimeAccrualKeysByPeriodAndTab[periodTabKey] = [];
|
|
181
|
+
// Cleared with the rest: leaving it behind kept the previous fetch's resolve rows on an
|
|
182
|
+
// otherwise empty errored tab, which reads as "these are all the schedules there are".
|
|
183
|
+
draft.failedJeScheduleTransactionKeysByPeriodAndTab[periodTabKey] = [];
|
|
129
184
|
}
|
|
130
|
-
draft.jeScheduleTransactionKeysByPeriod[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)] = [];
|
|
131
185
|
},
|
|
132
186
|
retryJeSchedule(draft, action) {
|
|
133
187
|
const { scheduledJournalEntryID } = action.payload;
|
|
@@ -163,11 +217,13 @@ const expenseAutomationJESchedulesView = (0, toolkit_1.createSlice)({
|
|
|
163
217
|
};
|
|
164
218
|
},
|
|
165
219
|
ignoreRecommendedJeSchedule: {
|
|
166
|
-
prepare(jeScheduleTransactionKey, scheduleType) {
|
|
220
|
+
prepare(jeScheduleTransactionKey, scheduleType, reason, note) {
|
|
167
221
|
return {
|
|
168
222
|
payload: {
|
|
169
223
|
jeScheduleTransactionKey,
|
|
170
224
|
scheduleType,
|
|
225
|
+
reason,
|
|
226
|
+
note,
|
|
171
227
|
},
|
|
172
228
|
};
|
|
173
229
|
},
|
|
@@ -183,6 +239,41 @@ const expenseAutomationJESchedulesView = (0, toolkit_1.createSlice)({
|
|
|
183
239
|
};
|
|
184
240
|
},
|
|
185
241
|
},
|
|
242
|
+
revertJeSchedule: {
|
|
243
|
+
// jeScheduleTransactionKey is a JEScheduleKey for an accrued schedule, which has no base
|
|
244
|
+
// transaction to derive a transaction key from. It is only ever used as an opaque row
|
|
245
|
+
// identifier here -- for the row's spinner and for dropping the row from the list -- so one
|
|
246
|
+
// action serves both shapes rather than two near-identical ones.
|
|
247
|
+
prepare(jeScheduleId, jeScheduleTransactionKey, scheduleType, reason, note) {
|
|
248
|
+
return {
|
|
249
|
+
payload: {
|
|
250
|
+
jeScheduleId,
|
|
251
|
+
jeScheduleTransactionKey,
|
|
252
|
+
scheduleType,
|
|
253
|
+
reason,
|
|
254
|
+
note,
|
|
255
|
+
},
|
|
256
|
+
};
|
|
257
|
+
},
|
|
258
|
+
reducer(draft, action) {
|
|
259
|
+
draft.revertStatusById[action.payload.jeScheduleTransactionKey] = {
|
|
260
|
+
fetchState: 'In-Progress',
|
|
261
|
+
error: undefined,
|
|
262
|
+
};
|
|
263
|
+
},
|
|
264
|
+
},
|
|
265
|
+
revertJeScheduleSuccess(draft, action) {
|
|
266
|
+
draft.revertStatusById[action.payload.jeScheduleTransactionKey] = {
|
|
267
|
+
fetchState: 'Completed',
|
|
268
|
+
error: undefined,
|
|
269
|
+
};
|
|
270
|
+
},
|
|
271
|
+
revertJeScheduleFailure(draft, action) {
|
|
272
|
+
draft.revertStatusById[action.payload.jeScheduleTransactionKey] = {
|
|
273
|
+
fetchState: 'Error',
|
|
274
|
+
error: action.payload.status,
|
|
275
|
+
};
|
|
276
|
+
},
|
|
186
277
|
ignoreRecommendedJeScheduleSuccess: {
|
|
187
278
|
reducer(draft, action) {
|
|
188
279
|
const { jeScheduleTransactionKey } = action.payload;
|
|
@@ -215,17 +306,18 @@ const expenseAutomationJESchedulesView = (0, toolkit_1.createSlice)({
|
|
|
215
306
|
};
|
|
216
307
|
},
|
|
217
308
|
updateJeScheduleTransactionKeys: {
|
|
218
|
-
prepare(jeScheduleKeys, selectedPeriod) {
|
|
309
|
+
prepare(jeScheduleKeys, selectedPeriod, selectedPageTab) {
|
|
219
310
|
return {
|
|
220
311
|
payload: {
|
|
221
312
|
jeScheduleKeys: jeScheduleKeys,
|
|
222
313
|
selectedPeriod: selectedPeriod,
|
|
314
|
+
selectedPageTab: selectedPageTab,
|
|
223
315
|
},
|
|
224
316
|
};
|
|
225
317
|
},
|
|
226
318
|
reducer(draft, action) {
|
|
227
|
-
const { selectedPeriod, jeScheduleKeys } = action.payload;
|
|
228
|
-
draft.
|
|
319
|
+
const { selectedPeriod, selectedPageTab, jeScheduleKeys } = action.payload;
|
|
320
|
+
draft.jeScheduleTransactionKeysByPeriodAndTab[(0, jeSchedulesViewState_1.getJESchedulePeriodTabKey)(selectedPageTab, (0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod))] = jeScheduleKeys;
|
|
229
321
|
},
|
|
230
322
|
},
|
|
231
323
|
removeJeScheduleTransactionKey: {
|
|
@@ -238,12 +330,20 @@ const expenseAutomationJESchedulesView = (0, toolkit_1.createSlice)({
|
|
|
238
330
|
};
|
|
239
331
|
},
|
|
240
332
|
reducer(draft, action) {
|
|
241
|
-
const {
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
333
|
+
const { jeScheduleKey } = action.payload;
|
|
334
|
+
// Dropped from every tab's slot, not just the visible one: once a schedule is ignored or
|
|
335
|
+
// resolved it must not reappear when the user switches tabs and hits a cached list.
|
|
336
|
+
removeKeyFromEveryTabSlot(draft.jeScheduleTransactionKeysByPeriodAndTab, jeScheduleKey);
|
|
337
|
+
},
|
|
338
|
+
},
|
|
339
|
+
removeJeAccruedScheduleKey: {
|
|
340
|
+
prepare(jeAccruedScheduleKey) {
|
|
341
|
+
return { payload: { jeAccruedScheduleKey } };
|
|
342
|
+
},
|
|
343
|
+
reducer(draft, action) {
|
|
344
|
+
// Accrued keys live in their own per-tab map, so removeJeScheduleTransactionKey cannot drop
|
|
345
|
+
// them -- a reverted accrued schedule stayed on the list until the next fetch.
|
|
346
|
+
removeKeyFromEveryTabSlot(draft.jeScheduleAccruedKeysByPeriodAndTab, action.payload.jeAccruedScheduleKey);
|
|
247
347
|
},
|
|
248
348
|
},
|
|
249
349
|
removeFailedJeScheduleTransactionKey: {
|
|
@@ -256,12 +356,8 @@ const expenseAutomationJESchedulesView = (0, toolkit_1.createSlice)({
|
|
|
256
356
|
};
|
|
257
357
|
},
|
|
258
358
|
reducer(draft, action) {
|
|
259
|
-
const {
|
|
260
|
-
|
|
261
|
-
...(draft.failedJeScheduleTransactionKeysByPeriod[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)] ?? []),
|
|
262
|
-
];
|
|
263
|
-
const filteredKeys = prevData.filter((jeKey) => jeKey !== failedJeScheduleKey);
|
|
264
|
-
draft.failedJeScheduleTransactionKeysByPeriod[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)] = filteredKeys;
|
|
359
|
+
const { failedJeScheduleKey } = action.payload;
|
|
360
|
+
removeKeyFromEveryTabSlot(draft.failedJeScheduleTransactionKeysByPeriodAndTab, failedJeScheduleKey);
|
|
265
361
|
},
|
|
266
362
|
},
|
|
267
363
|
initializeJeScheduleLocalData: {
|
|
@@ -340,6 +436,9 @@ const expenseAutomationJESchedulesView = (0, toolkit_1.createSlice)({
|
|
|
340
436
|
error: status,
|
|
341
437
|
fetchState: 'Error',
|
|
342
438
|
};
|
|
439
|
+
// Set on failure too: a tenant whose account list errors must still reach the page rather
|
|
440
|
+
// than sit under a skeleton forever.
|
|
441
|
+
draft.accountSettings.hasLoadedAccountSettings = true;
|
|
343
442
|
},
|
|
344
443
|
updateAccountSettingsListForAccountTypes(draft, action) {
|
|
345
444
|
doUpdateAccountSettingsListForAccountTypes(draft.accountSettings, action.payload.accountPayload);
|
|
@@ -373,6 +472,187 @@ const expenseAutomationJESchedulesView = (0, toolkit_1.createSlice)({
|
|
|
373
472
|
clearJeAccountSettingsLocalData(draft) {
|
|
374
473
|
draft.accountSettings.localData = exports.accountSettingsInitialState.localData;
|
|
375
474
|
},
|
|
475
|
+
initializeNewSchedule: {
|
|
476
|
+
prepare({ scheduleType, shouldResetEnteredData = true, }) {
|
|
477
|
+
return { payload: { scheduleType, shouldResetEnteredData } };
|
|
478
|
+
},
|
|
479
|
+
reducer() {
|
|
480
|
+
// Purely an epic-trigger action — the epic fans out the account/class
|
|
481
|
+
// list fetches, and clears entered data only when asked to.
|
|
482
|
+
},
|
|
483
|
+
},
|
|
484
|
+
resetNewScheduleLocalData: {
|
|
485
|
+
prepare({ scheduleType, }) {
|
|
486
|
+
return { payload: { scheduleType } };
|
|
487
|
+
},
|
|
488
|
+
reducer(draft, action) {
|
|
489
|
+
const { scheduleType } = action.payload;
|
|
490
|
+
draft.newSchedule.newScheduleState[scheduleType] =
|
|
491
|
+
(0, exports.getBaseNewScheduleLocalData)(scheduleType);
|
|
492
|
+
},
|
|
493
|
+
},
|
|
494
|
+
updateNewScheduleLocalData(draft, action) {
|
|
495
|
+
const { scheduleType, localData } = action.payload;
|
|
496
|
+
draft.newSchedule.newScheduleState[scheduleType] = {
|
|
497
|
+
...draft.newSchedule.newScheduleState[scheduleType],
|
|
498
|
+
...localData,
|
|
499
|
+
};
|
|
500
|
+
},
|
|
501
|
+
searchTransactionsForNewSchedule: {
|
|
502
|
+
prepare({ query, scheduleType, }) {
|
|
503
|
+
return { payload: { query, scheduleType } };
|
|
504
|
+
},
|
|
505
|
+
reducer(draft, action) {
|
|
506
|
+
const trimmed = action.payload.query.trim();
|
|
507
|
+
// Cleared or too-short query: no API (see epic) — reset immediately.
|
|
508
|
+
if (trimmed.length < jeSchedulesViewState_1.MIN_NEW_SCHEDULE_SEARCH_LENGTH) {
|
|
509
|
+
draft.newSchedule.searchTransactions = exports.searchTransactionsInitialState;
|
|
510
|
+
return;
|
|
511
|
+
}
|
|
512
|
+
draft.newSchedule.searchTransactions = {
|
|
513
|
+
...draft.newSchedule.searchTransactions,
|
|
514
|
+
searchString: action.payload.query,
|
|
515
|
+
fetchState: 'In-Progress',
|
|
516
|
+
};
|
|
517
|
+
},
|
|
518
|
+
},
|
|
519
|
+
searchTransactionsForNewScheduleSuccess(draft, action) {
|
|
520
|
+
draft.newSchedule.searchTransactions = {
|
|
521
|
+
...draft.newSchedule.searchTransactions,
|
|
522
|
+
searchResults: action.payload.searchResults,
|
|
523
|
+
fetchState: 'Completed',
|
|
524
|
+
error: undefined,
|
|
525
|
+
};
|
|
526
|
+
},
|
|
527
|
+
searchTransactionsForNewScheduleFailure(draft, action) {
|
|
528
|
+
draft.newSchedule.searchTransactions = {
|
|
529
|
+
...draft.newSchedule.searchTransactions,
|
|
530
|
+
fetchState: 'Error',
|
|
531
|
+
error: action.payload.status,
|
|
532
|
+
};
|
|
533
|
+
},
|
|
534
|
+
clearSearchTransactionsForNewSchedule(draft) {
|
|
535
|
+
draft.newSchedule.searchTransactions = exports.searchTransactionsInitialState;
|
|
536
|
+
},
|
|
537
|
+
saveNewSchedule: {
|
|
538
|
+
prepare({ scheduleType, }) {
|
|
539
|
+
return { payload: { scheduleType } };
|
|
540
|
+
},
|
|
541
|
+
reducer(draft) {
|
|
542
|
+
draft.newSchedule.saveStatus = {
|
|
543
|
+
fetchState: 'In-Progress',
|
|
544
|
+
error: undefined,
|
|
545
|
+
};
|
|
546
|
+
},
|
|
547
|
+
},
|
|
548
|
+
saveNewScheduleSuccess(draft) {
|
|
549
|
+
draft.newSchedule.saveStatus = {
|
|
550
|
+
fetchState: 'Completed',
|
|
551
|
+
error: undefined,
|
|
552
|
+
};
|
|
553
|
+
},
|
|
554
|
+
saveNewScheduleFailure(draft, action) {
|
|
555
|
+
draft.newSchedule.saveStatus = {
|
|
556
|
+
fetchState: 'Error',
|
|
557
|
+
error: action.payload.status,
|
|
558
|
+
};
|
|
559
|
+
},
|
|
560
|
+
createOneTimeAccrual: {
|
|
561
|
+
prepare(localData) {
|
|
562
|
+
return { payload: { localData } };
|
|
563
|
+
},
|
|
564
|
+
reducer(draft) {
|
|
565
|
+
draft.newSchedule.createOneTimeAccrualStatus = {
|
|
566
|
+
fetchState: 'In-Progress',
|
|
567
|
+
error: undefined,
|
|
568
|
+
};
|
|
569
|
+
},
|
|
570
|
+
},
|
|
571
|
+
createOneTimeAccrualSuccess(draft) {
|
|
572
|
+
draft.newSchedule.createOneTimeAccrualStatus = {
|
|
573
|
+
fetchState: 'Completed',
|
|
574
|
+
error: undefined,
|
|
575
|
+
};
|
|
576
|
+
},
|
|
577
|
+
createOneTimeAccrualFailure(draft, action) {
|
|
578
|
+
draft.newSchedule.createOneTimeAccrualStatus = {
|
|
579
|
+
fetchState: 'Error',
|
|
580
|
+
error: action.payload.status,
|
|
581
|
+
};
|
|
582
|
+
},
|
|
583
|
+
/**
|
|
584
|
+
* Promote applies the body and posts in one step, so it carries whatever the user edited on the
|
|
585
|
+
* detail page. `edits` is absent when nothing was changed -- the epic then falls back to the
|
|
586
|
+
* stored accrual, which is what the list's inline Post does.
|
|
587
|
+
*/
|
|
588
|
+
promoteOneTimeAccrual: {
|
|
589
|
+
prepare(accrualId, amount, edits) {
|
|
590
|
+
return { payload: { accrualId, amount, edits } };
|
|
591
|
+
},
|
|
592
|
+
reducer(draft, action) {
|
|
593
|
+
draft.oneTimeAccrualActionStatusById[action.payload.accrualId] = {
|
|
594
|
+
fetchState: 'In-Progress',
|
|
595
|
+
error: undefined,
|
|
596
|
+
};
|
|
597
|
+
},
|
|
598
|
+
},
|
|
599
|
+
revertOneTimeAccrual: {
|
|
600
|
+
prepare(accrualId, reason, note) {
|
|
601
|
+
return { payload: { accrualId, reason, note } };
|
|
602
|
+
},
|
|
603
|
+
reducer(draft, action) {
|
|
604
|
+
draft.oneTimeAccrualActionStatusById[action.payload.accrualId] = {
|
|
605
|
+
fetchState: 'In-Progress',
|
|
606
|
+
error: undefined,
|
|
607
|
+
};
|
|
608
|
+
},
|
|
609
|
+
},
|
|
610
|
+
ignoreOneTimeAccrual: {
|
|
611
|
+
prepare(accrualId, reason, note) {
|
|
612
|
+
return { payload: { accrualId, reason, note } };
|
|
613
|
+
},
|
|
614
|
+
reducer(draft, action) {
|
|
615
|
+
draft.oneTimeAccrualActionStatusById[action.payload.accrualId] = {
|
|
616
|
+
fetchState: 'In-Progress',
|
|
617
|
+
error: undefined,
|
|
618
|
+
};
|
|
619
|
+
},
|
|
620
|
+
},
|
|
621
|
+
fetchOneTimeAccrual: {
|
|
622
|
+
prepare(accrualId) {
|
|
623
|
+
return { payload: { accrualId } };
|
|
624
|
+
},
|
|
625
|
+
reducer(draft, action) {
|
|
626
|
+
draft.oneTimeAccrualFetchStatusById[action.payload.accrualId] = {
|
|
627
|
+
fetchState: 'In-Progress',
|
|
628
|
+
error: undefined,
|
|
629
|
+
};
|
|
630
|
+
},
|
|
631
|
+
},
|
|
632
|
+
fetchOneTimeAccrualSuccess(draft, action) {
|
|
633
|
+
draft.oneTimeAccrualFetchStatusById[action.payload.accrualId] = {
|
|
634
|
+
fetchState: 'Completed',
|
|
635
|
+
error: undefined,
|
|
636
|
+
};
|
|
637
|
+
},
|
|
638
|
+
fetchOneTimeAccrualFailure(draft, action) {
|
|
639
|
+
draft.oneTimeAccrualFetchStatusById[action.payload.accrualId] = {
|
|
640
|
+
fetchState: 'Error',
|
|
641
|
+
error: action.payload.status,
|
|
642
|
+
};
|
|
643
|
+
},
|
|
644
|
+
oneTimeAccrualActionSuccess(draft, action) {
|
|
645
|
+
draft.oneTimeAccrualActionStatusById[action.payload.accrualId] = {
|
|
646
|
+
fetchState: 'Completed',
|
|
647
|
+
error: undefined,
|
|
648
|
+
};
|
|
649
|
+
},
|
|
650
|
+
oneTimeAccrualActionFailure(draft, action) {
|
|
651
|
+
draft.oneTimeAccrualActionStatusById[action.payload.accrualId] = {
|
|
652
|
+
fetchState: 'Error',
|
|
653
|
+
error: action.payload.status,
|
|
654
|
+
};
|
|
655
|
+
},
|
|
376
656
|
updateJESchedulesUIState(draft, action) {
|
|
377
657
|
if (action.payload.sortKey != null) {
|
|
378
658
|
draft.uiState.sortKey = action.payload.sortKey;
|
|
@@ -386,10 +666,21 @@ const expenseAutomationJESchedulesView = (0, toolkit_1.createSlice)({
|
|
|
386
666
|
if (action.payload.scrollPosition != null) {
|
|
387
667
|
draft.uiState.scrollPosition = action.payload.scrollPosition;
|
|
388
668
|
}
|
|
389
|
-
if (action.payload.
|
|
390
|
-
draft.uiState.
|
|
669
|
+
if (action.payload.selectedPageTab != null) {
|
|
670
|
+
draft.uiState.selectedPageTab = action.payload.selectedPageTab;
|
|
391
671
|
}
|
|
392
672
|
},
|
|
673
|
+
updateJEScheduleTypeFilter(draft, action) {
|
|
674
|
+
draft.uiState.selectedJETypeFilter = action.payload;
|
|
675
|
+
},
|
|
676
|
+
toggleJEPendingGroupCollapsed(draft) {
|
|
677
|
+
draft.uiState.pendingGroupCollapsed =
|
|
678
|
+
!draft.uiState.pendingGroupCollapsed;
|
|
679
|
+
},
|
|
680
|
+
toggleJECreatedGroupCollapsed(draft) {
|
|
681
|
+
draft.uiState.createdGroupCollapsed =
|
|
682
|
+
!draft.uiState.createdGroupCollapsed;
|
|
683
|
+
},
|
|
393
684
|
clearExpenseAutomationJESchedulesView(draft) {
|
|
394
685
|
Object.assign(draft, exports.initialState);
|
|
395
686
|
},
|
|
@@ -400,7 +691,7 @@ const expenseAutomationJESchedulesView = (0, toolkit_1.createSlice)({
|
|
|
400
691
|
});
|
|
401
692
|
},
|
|
402
693
|
});
|
|
403
|
-
_a = expenseAutomationJESchedulesView.actions, exports.clearExpenseAutomationJESchedulesView = _a.clearExpenseAutomationJESchedulesView, exports.clearJeAccountSettingsLocalData = _a.clearJeAccountSettingsLocalData, exports.clearJeScheduleLocalData = _a.clearJeScheduleLocalData, exports.fetchAccountSettingsListForAccountTypes = _a.fetchAccountSettingsListForAccountTypes, exports.fetchJeSchedules = _a.fetchJeSchedules, exports.fetchJeSchedulesFailure = _a.fetchJeSchedulesFailure, exports.fetchJeSchedulesPage = _a.fetchJeSchedulesPage, exports.fetchJeSchedulesSuccess = _a.fetchJeSchedulesSuccess, exports.fetchRecommendationForAccountSettings = _a.fetchRecommendationForAccountSettings, exports.ignoreRecommendedJeSchedule = _a.ignoreRecommendedJeSchedule, exports.ignoreRecommendedJeScheduleFailure = _a.ignoreRecommendedJeScheduleFailure, exports.ignoreRecommendedJeScheduleSuccess = _a.ignoreRecommendedJeScheduleSuccess, exports.initializeAccountSettingsView = _a.initializeAccountSettingsView, exports.initializeJeScheduleLocalData = _a.initializeJeScheduleLocalData, exports.removeFailedJeScheduleTransactionKey = _a.removeFailedJeScheduleTransactionKey, exports.removeJeScheduleLocalDataById = _a.removeJeScheduleLocalDataById, exports.removeJeScheduleTransactionKey = _a.removeJeScheduleTransactionKey, exports.retryJeSchedule = _a.retryJeSchedule, exports.retryJeScheduleFailure = _a.retryJeScheduleFailure, exports.retryJeScheduleSuccess = _a.retryJeScheduleSuccess, exports.saveAccountSettings = _a.saveAccountSettings, exports.saveAccountSettingsFailure = _a.saveAccountSettingsFailure, exports.saveAccountSettingsLocalData = _a.saveAccountSettingsLocalData, exports.saveAccountSettingsSuccess = _a.saveAccountSettingsSuccess, exports.updateAccountSettingsListForAccountTypes = _a.updateAccountSettingsListForAccountTypes, exports.updateAccountSettingsListForAccountTypesFailure = _a.updateAccountSettingsListForAccountTypesFailure, exports.updateJESchedulesUIState = _a.updateJESchedulesUIState, exports.updateJeScheduleLocalDataById = _a.updateJeScheduleLocalDataById, exports.updateJeScheduleTransactionKeys = _a.updateJeScheduleTransactionKeys, exports.updateRecommendationForAccountSettings = _a.updateRecommendationForAccountSettings, exports.updateRecommendationForAccountSettingsFailure = _a.updateRecommendationForAccountSettingsFailure;
|
|
694
|
+
_a = expenseAutomationJESchedulesView.actions, exports.clearExpenseAutomationJESchedulesView = _a.clearExpenseAutomationJESchedulesView, exports.clearJeAccountSettingsLocalData = _a.clearJeAccountSettingsLocalData, exports.clearJeScheduleLocalData = _a.clearJeScheduleLocalData, exports.clearSearchTransactionsForNewSchedule = _a.clearSearchTransactionsForNewSchedule, exports.createOneTimeAccrual = _a.createOneTimeAccrual, exports.createOneTimeAccrualFailure = _a.createOneTimeAccrualFailure, exports.createOneTimeAccrualSuccess = _a.createOneTimeAccrualSuccess, exports.ignoreOneTimeAccrual = _a.ignoreOneTimeAccrual, exports.oneTimeAccrualActionFailure = _a.oneTimeAccrualActionFailure, exports.oneTimeAccrualActionSuccess = _a.oneTimeAccrualActionSuccess, exports.promoteOneTimeAccrual = _a.promoteOneTimeAccrual, exports.revertJeSchedule = _a.revertJeSchedule, exports.revertJeScheduleFailure = _a.revertJeScheduleFailure, exports.revertJeScheduleSuccess = _a.revertJeScheduleSuccess, exports.revertOneTimeAccrual = _a.revertOneTimeAccrual, exports.fetchAccountSettingsListForAccountTypes = _a.fetchAccountSettingsListForAccountTypes, exports.fetchJeSchedules = _a.fetchJeSchedules, exports.fetchJeSchedulesFailure = _a.fetchJeSchedulesFailure, exports.fetchJeSchedulesPage = _a.fetchJeSchedulesPage, exports.fetchJeSchedulesSuccess = _a.fetchJeSchedulesSuccess, exports.fetchOneTimeAccrual = _a.fetchOneTimeAccrual, exports.fetchOneTimeAccrualFailure = _a.fetchOneTimeAccrualFailure, exports.fetchOneTimeAccrualSuccess = _a.fetchOneTimeAccrualSuccess, exports.fetchRecommendationForAccountSettings = _a.fetchRecommendationForAccountSettings, exports.ignoreRecommendedJeSchedule = _a.ignoreRecommendedJeSchedule, exports.ignoreRecommendedJeScheduleFailure = _a.ignoreRecommendedJeScheduleFailure, exports.ignoreRecommendedJeScheduleSuccess = _a.ignoreRecommendedJeScheduleSuccess, exports.initializeAccountSettingsView = _a.initializeAccountSettingsView, exports.initializeJeScheduleLocalData = _a.initializeJeScheduleLocalData, exports.initializeNewSchedule = _a.initializeNewSchedule, exports.removeFailedJeScheduleTransactionKey = _a.removeFailedJeScheduleTransactionKey, exports.removeJeScheduleLocalDataById = _a.removeJeScheduleLocalDataById, exports.removeJeAccruedScheduleKey = _a.removeJeAccruedScheduleKey, exports.removeJeScheduleTransactionKey = _a.removeJeScheduleTransactionKey, exports.resetNewScheduleLocalData = _a.resetNewScheduleLocalData, exports.retryJeSchedule = _a.retryJeSchedule, exports.retryJeScheduleFailure = _a.retryJeScheduleFailure, exports.retryJeScheduleSuccess = _a.retryJeScheduleSuccess, exports.saveAccountSettings = _a.saveAccountSettings, exports.saveAccountSettingsFailure = _a.saveAccountSettingsFailure, exports.saveAccountSettingsLocalData = _a.saveAccountSettingsLocalData, exports.saveAccountSettingsSuccess = _a.saveAccountSettingsSuccess, exports.saveNewSchedule = _a.saveNewSchedule, exports.saveNewScheduleFailure = _a.saveNewScheduleFailure, exports.saveNewScheduleSuccess = _a.saveNewScheduleSuccess, exports.searchTransactionsForNewSchedule = _a.searchTransactionsForNewSchedule, exports.searchTransactionsForNewScheduleFailure = _a.searchTransactionsForNewScheduleFailure, exports.searchTransactionsForNewScheduleSuccess = _a.searchTransactionsForNewScheduleSuccess, exports.toggleJECreatedGroupCollapsed = _a.toggleJECreatedGroupCollapsed, exports.toggleJEPendingGroupCollapsed = _a.toggleJEPendingGroupCollapsed, exports.updateAccountSettingsListForAccountTypes = _a.updateAccountSettingsListForAccountTypes, exports.updateAccountSettingsListForAccountTypesFailure = _a.updateAccountSettingsListForAccountTypesFailure, exports.updateJESchedulesUIState = _a.updateJESchedulesUIState, exports.updateJEScheduleTypeFilter = _a.updateJEScheduleTypeFilter, exports.updateJeScheduleLocalDataById = _a.updateJeScheduleLocalDataById, exports.updateJeScheduleTransactionKeys = _a.updateJeScheduleTransactionKeys, exports.updateNewScheduleLocalData = _a.updateNewScheduleLocalData, exports.updateRecommendationForAccountSettings = _a.updateRecommendationForAccountSettings, exports.updateRecommendationForAccountSettingsFailure = _a.updateRecommendationForAccountSettingsFailure;
|
|
404
695
|
exports.default = expenseAutomationJESchedulesView.reducer;
|
|
405
696
|
const doUpdateRecommendationForAccountSettings = (draft, payload) => {
|
|
406
697
|
const { prepaidExpensesRecommendations, fixedAssetsRecommendations, accruedExpensesRecommendations, } = (0, accountTypeRecommendationPayload_1.mapAccountTypeRecommendationPayloadToAccountRecommendationByType)(payload);
|
|
@@ -468,4 +759,5 @@ const doUpdateAccountSettingsListForAccountTypes = (draft, accountPayloadList) =
|
|
|
468
759
|
error: undefined,
|
|
469
760
|
fetchState: 'Completed',
|
|
470
761
|
};
|
|
762
|
+
draft.hasLoadedAccountSettings = true;
|
|
471
763
|
};
|
|
@@ -97,7 +97,7 @@ export declare const fetchMissingReceipts: import("@reduxjs/toolkit").ActionCrea
|
|
|
97
97
|
transactionId: ID;
|
|
98
98
|
}, "expenseAutomationMissingReceiptsView/confirmBulkUploadMatchSuccess">, confirmBulkUploadMatchFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
99
99
|
error: ZeniAPIStatus;
|
|
100
|
-
}, "expenseAutomationMissingReceiptsView/confirmBulkUploadMatchFailure">, setBulkUploadResultsTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"completed" | "unmatched", "expenseAutomationMissingReceiptsView/setBulkUploadResultsTab">, setBulkUploadCompletedSubTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"
|
|
100
|
+
}, "expenseAutomationMissingReceiptsView/confirmBulkUploadMatchFailure">, setBulkUploadResultsTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"completed" | "unmatched", "expenseAutomationMissingReceiptsView/setBulkUploadResultsTab">, setBulkUploadCompletedSubTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"manual" | "all" | "ai_accountant", "expenseAutomationMissingReceiptsView/setBulkUploadCompletedSubTab">, setBulkUploadSortConfig: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
101
101
|
sortKey: BulkUploadSortKey | undefined;
|
|
102
102
|
sortOrder: SortOrder | undefined;
|
|
103
103
|
}, "expenseAutomationMissingReceiptsView/setBulkUploadSortConfig">, clearBulkUpload: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"expenseAutomationMissingReceiptsView/clearBulkUpload">, searchTransactionsForManualMatch: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[query: string, pageToken?: string | null | undefined], {
|
|
@@ -95,7 +95,12 @@ export declare const fetchReconciliation: import("@reduxjs/toolkit").ActionCreat
|
|
|
95
95
|
fileId: ID;
|
|
96
96
|
selectedPeriod: MonthYearPeriod;
|
|
97
97
|
statementUploadId: ID;
|
|
98
|
-
}, "expenseAutomationReconciliationView/deleteAccountStatement">,
|
|
98
|
+
}, "expenseAutomationReconciliationView/deleteAccountStatement">, deleteCombinedStatement: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
99
|
+
accountId: ID;
|
|
100
|
+
combinedStatementGroupId: string;
|
|
101
|
+
selectedPeriod: MonthYearPeriod;
|
|
102
|
+
fileId?: ID;
|
|
103
|
+
}, "expenseAutomationReconciliationView/deleteCombinedStatement">, deleteAccountStatementSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
99
104
|
accountId: ID;
|
|
100
105
|
selectedPeriod: MonthYearPeriod;
|
|
101
106
|
}, "expenseAutomationReconciliationView/deleteAccountStatementSuccess">, deleteAccountStatementFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var _a;
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
exports.updateNodeCollapseState = exports.updateStatementUploadChosen = exports.confirmStatementMappingFailure = exports.confirmStatementMappingSuccess = exports.confirmStatementMapping = exports.clearStatementDateConflict = exports.submitStatementUpdateFailure = exports.submitStatementUpdateSuccess = exports.submitCombinedStatementUpdate = exports.submitStatementUpdate = exports.updateStatementUpdateLocalData = exports.updateParsedStatementData = void 0;
|
|
4
|
+
exports.reparseStatementFailure = exports.reparseStatementSuccess = exports.reparseStatement = exports.parseStatementFailure = exports.parseStatementSuccess = exports.parseCombinedStatement = exports.parseStatement = exports.uploadAccountStatementFailure = exports.uploadAccountStatementSuccess = exports.uploadAccountStatement = exports.includeAccountInReconciliationFailure = exports.includeAccountInReconciliationSuccess = exports.includeAccountInReconciliation = exports.excludeAccountFromReconciliationFailure = exports.excludeAccountFromReconciliationSuccess = exports.excludeAccountFromReconciliation = exports.deleteAccountStatementFailure = exports.deleteAccountStatementSuccess = exports.deleteCombinedStatement = exports.deleteAccountStatement = exports.updateAccountReconciliationLocalData = exports.updateReconListScrollPosition = exports.updateSaveReconciliationReviewFetchStatus = exports.saveReconciliationReview = exports.updateReviewTabLocalData = exports.initializeReconciliationReviewTabLocalData = exports.updateReviewTabSortState = exports.updateStatementProcessingFailed = exports.updateSelectedDrawerAccountId = exports.clearExpenseAutomationReconciliationView = exports.initialiseLocalDataForSelectedAccountId = exports.updateBalancesLocalData = exports.updateSelectedTab = exports.saveReconciliationDetailSuccess = exports.updateReconcileTabListScrollState = exports.updateReconcileTabListSortState = exports.updateReconcileTabLocalData = exports.updateStatementProcessingBackgroundCompletedSteps = exports.setStatementProcessingDismissedToBackground = exports.setStatementParseInProgress = exports.setConnectionInProgressForAccount = exports.updateSelectedAccountId = exports.saveReconciliationDetailFailure = exports.saveReconciliationDetail = exports.fetchReconciliationSuccess = exports.fetchReconciliationFailure = exports.fetchReconciliation = exports.initialState = exports.initialActionFetchState = exports.initialReconciliationTabsState = void 0;
|
|
5
|
+
exports.updateNodeCollapseState = exports.updateStatementUploadChosen = exports.confirmStatementMappingFailure = exports.confirmStatementMappingSuccess = exports.confirmStatementMapping = exports.clearStatementDateConflict = exports.submitStatementUpdateFailure = exports.submitStatementUpdateSuccess = exports.submitCombinedStatementUpdate = exports.submitStatementUpdate = exports.updateStatementUpdateLocalData = exports.updateParsedStatementData = exports.resetReparseStatementStatus = void 0;
|
|
6
6
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
7
7
|
const timePeriod_1 = require("../../../commonStateTypes/timePeriod");
|
|
8
8
|
const accountState_1 = require("../../../entity/account/accountState");
|
|
@@ -507,6 +507,18 @@ const expenseAutomationReconciliationView = (0, toolkit_1.createSlice)({
|
|
|
507
507
|
// Drop sticky parse latch on discard so the drawer shows empty upload UI.
|
|
508
508
|
accountRecon.statementParseInProgress = false;
|
|
509
509
|
},
|
|
510
|
+
deleteCombinedStatement: (draft, action) => {
|
|
511
|
+
const { accountId, selectedPeriod } = action.payload;
|
|
512
|
+
const accountRecon = draft.accountReconciliationRecordsBySelectedPeriod[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)]?.reconciliationByAccountID[accountId];
|
|
513
|
+
if (accountRecon == null) {
|
|
514
|
+
return;
|
|
515
|
+
}
|
|
516
|
+
accountRecon.statementDeleteStatus = {
|
|
517
|
+
fetchState: 'In-Progress',
|
|
518
|
+
error: undefined,
|
|
519
|
+
};
|
|
520
|
+
accountRecon.statementParseInProgress = false;
|
|
521
|
+
},
|
|
510
522
|
deleteAccountStatementSuccess: (draft, action) => {
|
|
511
523
|
const { accountId, selectedPeriod } = action.payload;
|
|
512
524
|
const accountRecon = draft.accountReconciliationRecordsBySelectedPeriod[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)]?.reconciliationByAccountID[accountId];
|
|
@@ -917,7 +929,7 @@ const expenseAutomationReconciliationView = (0, toolkit_1.createSlice)({
|
|
|
917
929
|
},
|
|
918
930
|
});
|
|
919
931
|
// Export actions
|
|
920
|
-
_a = expenseAutomationReconciliationView.actions, exports.fetchReconciliation = _a.fetchReconciliation, exports.fetchReconciliationFailure = _a.fetchReconciliationFailure, exports.fetchReconciliationSuccess = _a.fetchReconciliationSuccess, exports.saveReconciliationDetail = _a.saveReconciliationDetail, exports.saveReconciliationDetailFailure = _a.saveReconciliationDetailFailure, exports.updateSelectedAccountId = _a.updateSelectedAccountId, exports.setConnectionInProgressForAccount = _a.setConnectionInProgressForAccount, exports.setStatementParseInProgress = _a.setStatementParseInProgress, exports.setStatementProcessingDismissedToBackground = _a.setStatementProcessingDismissedToBackground, exports.updateStatementProcessingBackgroundCompletedSteps = _a.updateStatementProcessingBackgroundCompletedSteps, exports.updateReconcileTabLocalData = _a.updateReconcileTabLocalData, exports.updateReconcileTabListSortState = _a.updateReconcileTabListSortState, exports.updateReconcileTabListScrollState = _a.updateReconcileTabListScrollState, exports.saveReconciliationDetailSuccess = _a.saveReconciliationDetailSuccess, exports.updateSelectedTab = _a.updateSelectedTab, exports.updateBalancesLocalData = _a.updateBalancesLocalData, exports.initialiseLocalDataForSelectedAccountId = _a.initialiseLocalDataForSelectedAccountId, exports.clearExpenseAutomationReconciliationView = _a.clearExpenseAutomationReconciliationView, exports.updateSelectedDrawerAccountId = _a.updateSelectedDrawerAccountId, exports.updateStatementProcessingFailed = _a.updateStatementProcessingFailed, exports.updateReviewTabSortState = _a.updateReviewTabSortState, exports.initializeReconciliationReviewTabLocalData = _a.initializeReconciliationReviewTabLocalData, exports.updateReviewTabLocalData = _a.updateReviewTabLocalData, exports.saveReconciliationReview = _a.saveReconciliationReview, exports.updateSaveReconciliationReviewFetchStatus = _a.updateSaveReconciliationReviewFetchStatus, exports.updateReconListScrollPosition = _a.updateReconListScrollPosition, exports.updateAccountReconciliationLocalData = _a.updateAccountReconciliationLocalData, exports.deleteAccountStatement = _a.deleteAccountStatement, exports.deleteAccountStatementSuccess = _a.deleteAccountStatementSuccess, exports.deleteAccountStatementFailure = _a.deleteAccountStatementFailure, exports.excludeAccountFromReconciliation = _a.excludeAccountFromReconciliation, exports.excludeAccountFromReconciliationSuccess = _a.excludeAccountFromReconciliationSuccess, exports.excludeAccountFromReconciliationFailure = _a.excludeAccountFromReconciliationFailure, exports.includeAccountInReconciliation = _a.includeAccountInReconciliation, exports.includeAccountInReconciliationSuccess = _a.includeAccountInReconciliationSuccess, exports.includeAccountInReconciliationFailure = _a.includeAccountInReconciliationFailure, exports.uploadAccountStatement = _a.uploadAccountStatement, exports.uploadAccountStatementSuccess = _a.uploadAccountStatementSuccess, exports.uploadAccountStatementFailure = _a.uploadAccountStatementFailure, exports.parseStatement = _a.parseStatement, exports.parseCombinedStatement = _a.parseCombinedStatement, exports.parseStatementSuccess = _a.parseStatementSuccess, exports.parseStatementFailure = _a.parseStatementFailure, exports.reparseStatement = _a.reparseStatement, exports.reparseStatementSuccess = _a.reparseStatementSuccess, exports.reparseStatementFailure = _a.reparseStatementFailure, exports.resetReparseStatementStatus = _a.resetReparseStatementStatus, exports.updateParsedStatementData = _a.updateParsedStatementData, exports.updateStatementUpdateLocalData = _a.updateStatementUpdateLocalData, exports.submitStatementUpdate = _a.submitStatementUpdate, exports.submitCombinedStatementUpdate = _a.submitCombinedStatementUpdate, exports.submitStatementUpdateSuccess = _a.submitStatementUpdateSuccess, exports.submitStatementUpdateFailure = _a.submitStatementUpdateFailure, exports.clearStatementDateConflict = _a.clearStatementDateConflict, exports.confirmStatementMapping = _a.confirmStatementMapping, exports.confirmStatementMappingSuccess = _a.confirmStatementMappingSuccess, exports.confirmStatementMappingFailure = _a.confirmStatementMappingFailure, exports.updateStatementUploadChosen = _a.updateStatementUploadChosen, exports.updateNodeCollapseState = _a.updateNodeCollapseState;
|
|
932
|
+
_a = expenseAutomationReconciliationView.actions, exports.fetchReconciliation = _a.fetchReconciliation, exports.fetchReconciliationFailure = _a.fetchReconciliationFailure, exports.fetchReconciliationSuccess = _a.fetchReconciliationSuccess, exports.saveReconciliationDetail = _a.saveReconciliationDetail, exports.saveReconciliationDetailFailure = _a.saveReconciliationDetailFailure, exports.updateSelectedAccountId = _a.updateSelectedAccountId, exports.setConnectionInProgressForAccount = _a.setConnectionInProgressForAccount, exports.setStatementParseInProgress = _a.setStatementParseInProgress, exports.setStatementProcessingDismissedToBackground = _a.setStatementProcessingDismissedToBackground, exports.updateStatementProcessingBackgroundCompletedSteps = _a.updateStatementProcessingBackgroundCompletedSteps, exports.updateReconcileTabLocalData = _a.updateReconcileTabLocalData, exports.updateReconcileTabListSortState = _a.updateReconcileTabListSortState, exports.updateReconcileTabListScrollState = _a.updateReconcileTabListScrollState, exports.saveReconciliationDetailSuccess = _a.saveReconciliationDetailSuccess, exports.updateSelectedTab = _a.updateSelectedTab, exports.updateBalancesLocalData = _a.updateBalancesLocalData, exports.initialiseLocalDataForSelectedAccountId = _a.initialiseLocalDataForSelectedAccountId, exports.clearExpenseAutomationReconciliationView = _a.clearExpenseAutomationReconciliationView, exports.updateSelectedDrawerAccountId = _a.updateSelectedDrawerAccountId, exports.updateStatementProcessingFailed = _a.updateStatementProcessingFailed, exports.updateReviewTabSortState = _a.updateReviewTabSortState, exports.initializeReconciliationReviewTabLocalData = _a.initializeReconciliationReviewTabLocalData, exports.updateReviewTabLocalData = _a.updateReviewTabLocalData, exports.saveReconciliationReview = _a.saveReconciliationReview, exports.updateSaveReconciliationReviewFetchStatus = _a.updateSaveReconciliationReviewFetchStatus, exports.updateReconListScrollPosition = _a.updateReconListScrollPosition, exports.updateAccountReconciliationLocalData = _a.updateAccountReconciliationLocalData, exports.deleteAccountStatement = _a.deleteAccountStatement, exports.deleteCombinedStatement = _a.deleteCombinedStatement, exports.deleteAccountStatementSuccess = _a.deleteAccountStatementSuccess, exports.deleteAccountStatementFailure = _a.deleteAccountStatementFailure, exports.excludeAccountFromReconciliation = _a.excludeAccountFromReconciliation, exports.excludeAccountFromReconciliationSuccess = _a.excludeAccountFromReconciliationSuccess, exports.excludeAccountFromReconciliationFailure = _a.excludeAccountFromReconciliationFailure, exports.includeAccountInReconciliation = _a.includeAccountInReconciliation, exports.includeAccountInReconciliationSuccess = _a.includeAccountInReconciliationSuccess, exports.includeAccountInReconciliationFailure = _a.includeAccountInReconciliationFailure, exports.uploadAccountStatement = _a.uploadAccountStatement, exports.uploadAccountStatementSuccess = _a.uploadAccountStatementSuccess, exports.uploadAccountStatementFailure = _a.uploadAccountStatementFailure, exports.parseStatement = _a.parseStatement, exports.parseCombinedStatement = _a.parseCombinedStatement, exports.parseStatementSuccess = _a.parseStatementSuccess, exports.parseStatementFailure = _a.parseStatementFailure, exports.reparseStatement = _a.reparseStatement, exports.reparseStatementSuccess = _a.reparseStatementSuccess, exports.reparseStatementFailure = _a.reparseStatementFailure, exports.resetReparseStatementStatus = _a.resetReparseStatementStatus, exports.updateParsedStatementData = _a.updateParsedStatementData, exports.updateStatementUpdateLocalData = _a.updateStatementUpdateLocalData, exports.submitStatementUpdate = _a.submitStatementUpdate, exports.submitCombinedStatementUpdate = _a.submitCombinedStatementUpdate, exports.submitStatementUpdateSuccess = _a.submitStatementUpdateSuccess, exports.submitStatementUpdateFailure = _a.submitStatementUpdateFailure, exports.clearStatementDateConflict = _a.clearStatementDateConflict, exports.confirmStatementMapping = _a.confirmStatementMapping, exports.confirmStatementMappingSuccess = _a.confirmStatementMappingSuccess, exports.confirmStatementMappingFailure = _a.confirmStatementMappingFailure, exports.updateStatementUploadChosen = _a.updateStatementUploadChosen, exports.updateNodeCollapseState = _a.updateNodeCollapseState;
|
|
921
933
|
// Export reducer
|
|
922
934
|
exports.default = expenseAutomationReconciliationView.reducer;
|
|
923
935
|
function isEntityStatementParsing(reconciliation) {
|
|
@@ -1044,7 +1056,13 @@ function updateAllReconciliation(draft, accounts, selectedPeriod, reconciliation
|
|
|
1044
1056
|
accountReconciliationRecords.reconciliationByAccountID[reconciliation.account_id] = {
|
|
1045
1057
|
accountId: reconciliation.account_id,
|
|
1046
1058
|
reconciliationId: reconciliation.reconciliation_id ?? undefined,
|
|
1047
|
-
|
|
1059
|
+
// Full list fetch does not load transactions; keep per-account detail
|
|
1060
|
+
// fetch status so an in-flight/completed review load is not reset to
|
|
1061
|
+
// Not-Started (review UI treats that as loading).
|
|
1062
|
+
transactionFetchState: oldRecord?.transactionFetchState ?? {
|
|
1063
|
+
fetchState: 'Not-Started',
|
|
1064
|
+
error: undefined,
|
|
1065
|
+
},
|
|
1048
1066
|
refreshStatus: { fetchState: 'Not-Started', error: undefined },
|
|
1049
1067
|
statementDeleteStatus: { fetchState: 'Not-Started', error: undefined },
|
|
1050
1068
|
statementUploadStatus: preserveStatementUploadStatusAfterFetch(oldRecord),
|
|
@@ -68,8 +68,8 @@ export declare const fetchTransactionCategorization: import("@reduxjs/toolkit").
|
|
|
68
68
|
cotTrackingByTransactionId: COTTransactionTrackingByTransactionId;
|
|
69
69
|
}, "expenseAutomationTransactionsView/updateTransactionCategorization", never, never>, updateCurrentSelectedTransactionCategorizationTab: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[newSelectedTab: "review" | "autoCategorized"], {
|
|
70
70
|
newSelectedTab: "review" | "autoCategorized";
|
|
71
|
-
}, "expenseAutomationTransactionsView/updateCurrentSelectedTransactionCategorizationTab", never, never>, updateTransactionCategorizationCompletedSubTab: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[newSubTab: "
|
|
72
|
-
newSubTab: "
|
|
71
|
+
}, "expenseAutomationTransactionsView/updateCurrentSelectedTransactionCategorizationTab", never, never>, updateTransactionCategorizationCompletedSubTab: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[newSubTab: "manual" | "all" | "ai_accountant"], {
|
|
72
|
+
newSubTab: "manual" | "all" | "ai_accountant";
|
|
73
73
|
}, "expenseAutomationTransactionsView/updateTransactionCategorizationCompletedSubTab", never, never>, updateTransactionGroup: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[newGroup: "income" | "expense" | "all"], {
|
|
74
74
|
newGroup: "income" | "expense" | "all";
|
|
75
75
|
}, "expenseAutomationTransactionsView/updateTransactionGroup", never, never>, updateTransactionCategorizationSaveStatus: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[selectedTab: "review" | "autoCategorized", fetchState: FetchState, error?: ZeniAPIStatus<Record<string, unknown>> | undefined], {
|
package/lib/view/expenseAutomationView/selectorTypes/jeAccountSettingsViewSelectorTypes.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export interface JEAccountSettingsView extends SelectorView {
|
|
|
12
12
|
fixedAssetsAccountHierarchy: NestedAccountHierarchyForReport[];
|
|
13
13
|
fixedAssetsAccountList: AccountBase[];
|
|
14
14
|
fixedAssetsRecommendations: Recommendation[];
|
|
15
|
+
hasLoaded: boolean;
|
|
15
16
|
prepaidExpensesAccountHierarchy: NestedAccountHierarchyForReport[];
|
|
16
17
|
prepaidExpensesAccountList: AccountBase[];
|
|
17
18
|
prepaidExpensesRecommendations: Recommendation[];
|