@zeniai/client-epic-state 5.2.56-betaRD1 → 5.2.56
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/invoicing/dunningCase/dunningCaseTypes.d.ts +1 -1
- package/lib/entity/jeSchedules/jeSchedulesReducer.d.ts +1 -4
- package/lib/entity/jeSchedules/jeSchedulesReducer.js +5 -79
- package/lib/entity/task/taskState.d.ts +1 -1
- package/lib/epic.d.ts +1 -2
- package/lib/epic.js +4 -6
- package/lib/esm/entity/jeSchedules/jeSchedulesReducer.js +4 -78
- package/lib/esm/epic.js +4 -6
- package/lib/esm/index.js +3 -3
- package/lib/esm/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulePageEpic.js +1 -14
- package/lib/esm/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulesEpic.js +13 -10
- package/lib/esm/view/expenseAutomationView/epics/jeSchedule/initializeJeScheduleLocalDataEpic.js +17 -38
- package/lib/esm/view/expenseAutomationView/epics/jeSchedule/retryJeSchedulesEpic.js +1 -17
- package/lib/esm/view/expenseAutomationView/reducers/jeSchedulesViewReducer.js +1 -74
- package/lib/esm/view/expenseAutomationView/selectors/jeSchedulesViewSelector.js +14 -49
- package/lib/esm/view/invoicing/invoicingDunningCaseListView/invoicingDunningCaseListViewState.js +6 -6
- package/lib/index.d.ts +3 -3
- package/lib/index.js +49 -50
- package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulePageEpic.d.ts +2 -2
- package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulePageEpic.js +0 -13
- package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulesEpic.js +11 -8
- package/lib/view/expenseAutomationView/epics/jeSchedule/initializeJeScheduleLocalDataEpic.js +17 -38
- package/lib/view/expenseAutomationView/epics/jeSchedule/retryJeSchedulesEpic.d.ts +2 -2
- package/lib/view/expenseAutomationView/epics/jeSchedule/retryJeSchedulesEpic.js +1 -17
- package/lib/view/expenseAutomationView/payload/jeSchedulesPayload.d.ts +0 -18
- package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.d.ts +3 -10
- package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.js +3 -76
- package/lib/view/expenseAutomationView/selectorTypes/jeSchedulesSelectorTypes.d.ts +0 -3
- package/lib/view/expenseAutomationView/selectors/jeSchedulesViewSelector.js +14 -49
- package/lib/view/expenseAutomationView/types/jeSchedulesViewState.d.ts +0 -16
- package/lib/view/invoicing/invoicingDunningCaseListView/invoicingDunningCaseListViewReducer.d.ts +1 -1
- package/lib/view/invoicing/invoicingDunningCaseListView/invoicingDunningCaseListViewState.d.ts +2 -2
- package/lib/view/invoicing/invoicingDunningCaseListView/invoicingDunningCaseListViewState.js +6 -6
- package/lib/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewReducer.d.ts +1 -1
- package/lib/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewState.d.ts +1 -1
- package/package.json +1 -1
- package/lib/esm/view/expenseAutomationView/epics/jeSchedule/fetchFailedJePostingsEpic.js +0 -39
- package/lib/tsconfig.mocks.tsbuildinfo +0 -1
- package/lib/tsconfig.typecheck.tsbuildinfo +0 -1
- package/lib/view/expenseAutomationView/epics/jeSchedule/fetchFailedJePostingsEpic.d.ts +0 -20
- package/lib/view/expenseAutomationView/epics/jeSchedule/fetchFailedJePostingsEpic.js +0 -43
|
@@ -3,7 +3,7 @@ import { filter, mergeMap } from 'rxjs/operators';
|
|
|
3
3
|
import { fetchAccountList } from '../../../accountList/accountListReducer';
|
|
4
4
|
import { getAccountsTypesForScheduleEpics } from '../../../scheduleView/scheduleListView/scheduleListHelper';
|
|
5
5
|
import { fetchActualMatchingPage } from '../../reducers/actualMatchingViewReducer';
|
|
6
|
-
import {
|
|
6
|
+
import { fetchJeSchedules, fetchJeSchedulesPage, initializeAccountSettingsView, } from '../../reducers/jeSchedulesViewReducer';
|
|
7
7
|
export const fetchJeSchedulesPageEpic = (actions$, state$) => actions$.pipe(filter(fetchJeSchedulesPage.match), mergeMap((action) => {
|
|
8
8
|
const jeSchedulePageActions = [];
|
|
9
9
|
const { period, refreshViewInBackground } = action.payload;
|
|
@@ -24,19 +24,6 @@ export const fetchJeSchedulesPageEpic = (actions$, state$) => actions$.pipe(filt
|
|
|
24
24
|
else {
|
|
25
25
|
jeSchedulePageActions.push(fetchJeSchedules(period, refreshViewInBackground));
|
|
26
26
|
}
|
|
27
|
-
// Failed postings are tenant-wide and carry no period, so a period change or a tab switch
|
|
28
|
-
// cannot invalidate them -- fetch once and let retry keep the list current from then on.
|
|
29
|
-
// Refreshes still refetch, silently, so a failure resolved elsewhere leaves eventually.
|
|
30
|
-
const { fetchState: failedPostingsFetchState } = state.expenseAutomationJESchedulesViewState.failedJePostings.fetchState;
|
|
31
|
-
const isBackgroundRefresh = refreshViewInBackground === true;
|
|
32
|
-
// 'Error' is retried, not just 'Not-Started'. A transient failure on first load would
|
|
33
|
-
// otherwise leave the bucket in Error, and a later period change -- which is not a
|
|
34
|
-
// background refresh -- would never ask again, so the tab stayed empty for the session.
|
|
35
|
-
if (failedPostingsFetchState === 'Not-Started' ||
|
|
36
|
-
failedPostingsFetchState === 'Error' ||
|
|
37
|
-
isBackgroundRefresh) {
|
|
38
|
-
jeSchedulePageActions.push(fetchFailedJePostings(isBackgroundRefresh));
|
|
39
|
-
}
|
|
40
27
|
// Only on the first page load. Account settings cannot change from a tab switch or a
|
|
41
28
|
// refresh, and re-initializing puts accountSettingsView back to 'In-Progress' -- which the
|
|
42
29
|
// page reads as "still loading" and answers with a full skeleton over rows it already has.
|
|
@@ -2,13 +2,13 @@ import { from, of } from 'rxjs';
|
|
|
2
2
|
import { catchError, filter, mergeMap, takeUntil } from 'rxjs/operators';
|
|
3
3
|
import { DEFAULT_DATE_FORMAT } from '../../../../commonStateTypes/timePeriod';
|
|
4
4
|
import { toAbsoluteDay, toString } from '../../../../commonStateTypes/timePeriod';
|
|
5
|
-
import { updateAccruedJESchedules, updateAccruedJESchedulesDetails, updateJEOneTimeAccruals, updateJESchedules, } from '../../../../entity/jeSchedules/jeSchedulesReducer';
|
|
5
|
+
import { updateAccruedJESchedules, updateAccruedJESchedulesDetails, updateJEOneTimeAccruals, updateJESchedules, updateJESchedulesDetails, } from '../../../../entity/jeSchedules/jeSchedulesReducer';
|
|
6
6
|
import { getCurrentTenant } from '../../../../entity/tenant/tenantSelector';
|
|
7
7
|
import { createZeniAPIStatus, isSuccessResponse, } from '../../../../responsePayload';
|
|
8
8
|
import { clearAll } from '../../../../rootActions';
|
|
9
9
|
import { date } from '../../../../zeniDayJS';
|
|
10
10
|
import { SERVICE_MONTH_FORMAT, } from '../../payload/jeSchedulesPayload';
|
|
11
|
-
import { fetchJeSchedules, fetchJeSchedulesFailure, fetchJeSchedulesSuccess, } from '../../reducers/jeSchedulesViewReducer';
|
|
11
|
+
import { fetchJeSchedules, fetchJeSchedulesFailure, fetchJeSchedulesSuccess, initializeJeScheduleLocalData, } from '../../reducers/jeSchedulesViewReducer';
|
|
12
12
|
/**
|
|
13
13
|
* How far back to look for accrued schedules, matching the Vendors page
|
|
14
14
|
* (`getDefaultSelectedTimeframeForScheduleType`, 'accrued_expenses'), which queries the same
|
|
@@ -81,9 +81,8 @@ export const fetchJeSchedulesEpic = (actions$, state$, zeniAPI) => actions$.pipe
|
|
|
81
81
|
one_time_accrual_service_month_end: parsedEndDate.format(SERVICE_MONTH_FORMAT),
|
|
82
82
|
// Existing lists what actually reached the books.
|
|
83
83
|
one_time_accrual_statuses: ['posted'],
|
|
84
|
-
//
|
|
85
|
-
//
|
|
86
|
-
// on Review. Dropping the key from the response is a server-side follow-up.
|
|
84
|
+
// A failed posting from an earlier month still needs to surface here, so this list
|
|
85
|
+
// is deliberately not windowed.
|
|
87
86
|
filter_failed_je_postings_by_date: false,
|
|
88
87
|
}),
|
|
89
88
|
};
|
|
@@ -94,10 +93,12 @@ export const fetchJeSchedulesEpic = (actions$, state$, zeniAPI) => actions$.pipe
|
|
|
94
93
|
const updateActions = [];
|
|
95
94
|
const accruedJeSchedules = response.data.accrued_je_schedules?.je_schedules ?? [];
|
|
96
95
|
const oneTimeAccruals = response.data.one_time_accruals ?? [];
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
96
|
+
updateActions.push(updateJESchedules([
|
|
97
|
+
...response.data.je_schedules,
|
|
98
|
+
...response.data.failed_je_postings.je_schedules,
|
|
99
|
+
]), updateJESchedulesDetails([...response.data.failed_je_postings.je_schedules], response.data.failed_je_postings.scheduled_journal_entries), initializeJeScheduleLocalData([
|
|
100
|
+
...response.data.failed_je_postings.je_schedules,
|
|
101
|
+
]));
|
|
101
102
|
if (accruedJeSchedules.length > 0) {
|
|
102
103
|
updateActions.push(updateAccruedJESchedules(accruedJeSchedules), updateAccruedJESchedulesDetails(accruedJeSchedules, response.data.accrued_je_schedules
|
|
103
104
|
?.scheduled_journal_entries));
|
|
@@ -110,7 +111,9 @@ export const fetchJeSchedulesEpic = (actions$, state$, zeniAPI) => actions$.pipe
|
|
|
110
111
|
}
|
|
111
112
|
updateActions.push(fetchJeSchedulesSuccess({
|
|
112
113
|
jeSchedules: [...response.data.je_schedules],
|
|
113
|
-
failedJeSchedules: [
|
|
114
|
+
failedJeSchedules: [
|
|
115
|
+
...response.data.failed_je_postings.je_schedules,
|
|
116
|
+
],
|
|
114
117
|
accruedJeSchedules: accruedJeSchedules,
|
|
115
118
|
oneTimeAccruals: oneTimeAccruals,
|
|
116
119
|
selectedPeriod: selectedPeriod,
|
package/lib/esm/view/expenseAutomationView/epics/jeSchedule/initializeJeScheduleLocalDataEpic.js
CHANGED
|
@@ -1,49 +1,28 @@
|
|
|
1
1
|
import { from } from 'rxjs';
|
|
2
2
|
import { filter, mergeMap } from 'rxjs/operators';
|
|
3
|
+
import { getJEScheduledTransactionByJEScheduleTransactionKey } from '../../../../entity/jeSchedules/jeSchedulesSelector';
|
|
3
4
|
import { initializeJeScheduleLocalData, updateJeScheduleLocalDataById, } from '../../reducers/jeSchedulesViewReducer';
|
|
4
5
|
export const initializeJeScheduleLocalDataEpic = (actions$, state$) => actions$.pipe(filter(initializeJeScheduleLocalData.match), mergeMap((action) => {
|
|
5
6
|
const state = state$.value;
|
|
6
|
-
const { jeScheduleLocalDataById } = state.expenseAutomationJESchedulesViewState;
|
|
7
7
|
const actions = [];
|
|
8
8
|
const { jeScheduleTransactionKeys } = action.payload;
|
|
9
9
|
jeScheduleTransactionKeys.forEach((jeScheduleTransactionKey) => {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
const { scheduledJournalEntryID } = journalEntry;
|
|
27
|
-
// Seeded once and never re-seeded. updateJeScheduleLocalDataById merges what it is
|
|
28
|
-
// given over what is there, and the seed carries explicit undefined edits -- so
|
|
29
|
-
// re-running it on a background refresh wiped a category the user had already picked
|
|
30
|
-
// and Retry went on to post the original broken one.
|
|
31
|
-
if (jeScheduleLocalDataById[scheduledJournalEntryID] != null) {
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
actions.push(updateJeScheduleLocalDataById({
|
|
35
|
-
localData: {
|
|
36
|
-
jeScheduleType: jeSchedule.jeScheduleType,
|
|
37
|
-
jeScheduleID: jeSchedule.jeScheduleId,
|
|
38
|
-
scheduledJournalEntryID,
|
|
39
|
-
updatedVendor: undefined,
|
|
40
|
-
updatedCategoryId: undefined,
|
|
41
|
-
updatedAccumulatedDepreciationCategoryID: undefined,
|
|
42
|
-
updatedClassId: undefined,
|
|
43
|
-
},
|
|
44
|
-
scheduledJournalEntryID,
|
|
45
|
-
}));
|
|
46
|
-
});
|
|
10
|
+
const jeScheduledTransaction = getJEScheduledTransactionByJEScheduleTransactionKey(jeScheduleTransactionKey, state);
|
|
11
|
+
const initLocalData = {
|
|
12
|
+
jeScheduleType: jeScheduledTransaction.jeScheduleType,
|
|
13
|
+
jeScheduleID: jeScheduledTransaction.jeScheduleId,
|
|
14
|
+
scheduledJournalEntryID: jeScheduledTransaction.scheduledJournalEntry[0]
|
|
15
|
+
.scheduledJournalEntryID,
|
|
16
|
+
updatedVendor: undefined,
|
|
17
|
+
updatedCategoryId: undefined,
|
|
18
|
+
updatedAccumulatedDepreciationCategoryID: undefined,
|
|
19
|
+
updatedClassId: undefined,
|
|
20
|
+
};
|
|
21
|
+
actions.push(updateJeScheduleLocalDataById({
|
|
22
|
+
localData: initLocalData,
|
|
23
|
+
scheduledJournalEntryID: jeScheduledTransaction.scheduledJournalEntry[0]
|
|
24
|
+
.scheduledJournalEntryID,
|
|
25
|
+
}));
|
|
47
26
|
});
|
|
48
27
|
return from(actions);
|
|
49
28
|
}));
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { from } from 'rxjs';
|
|
2
2
|
import { catchError, filter, mergeMap, switchMap } from 'rxjs/operators';
|
|
3
|
-
import { removeScheduledJournalEntryFromJESchedule, } from '../../../../entity/jeSchedules/jeSchedulesReducer';
|
|
4
3
|
import { openSnackbar } from '../../../../entity/snackbar/snackbarReducer';
|
|
5
4
|
import { getCurrentTenant } from '../../../../entity/tenant/tenantSelector';
|
|
6
5
|
import { createZeniAPIStatus, isSuccessStatus, } from '../../../../responsePayload';
|
|
@@ -23,21 +22,9 @@ export const retryJeScheduleEpic = (actions$, state$, zeniAPI) => actions$.pipe(
|
|
|
23
22
|
.pipe(mergeMap((response) => {
|
|
24
23
|
if (isSuccessStatus(response)) {
|
|
25
24
|
const updateActions = [];
|
|
26
|
-
// Retire this entry, and the schedule itself only when this was its last failed
|
|
27
|
-
// one. A schedule that failed in several months is several rows sharing one
|
|
28
|
-
// schedule key, so dropping the key outright took the still-failing months off the
|
|
29
|
-
// list with it and nothing would have surfaced them again.
|
|
30
|
-
// Counts only entries that actually carry an error, for the same reason the selector
|
|
31
|
-
// and the local-data seed do: opening a schedule's detail or Quick View replaces
|
|
32
|
-
// this array with every month it has, posted ones included. Counting those left the
|
|
33
|
-
// schedule key in the bucket after its last real failure was resolved, so a later
|
|
34
|
-
// details write could surface a resolved row again with nothing to retry.
|
|
35
|
-
const stillFailingEntriesForSchedule = state.jeSchedulesState.schedulesByTransactionKey[jeScheduleTransactionKey]?.scheduledJournalEntry.filter((journalEntry) => journalEntry.error.length > 0) ?? [];
|
|
36
|
-
const wasLastFailedEntryForSchedule = stillFailingEntriesForSchedule.filter((journalEntry) => journalEntry.scheduledJournalEntryID !==
|
|
37
|
-
scheduledJournalEntryID).length === 0;
|
|
38
25
|
updateActions.push(retryJeScheduleSuccess({
|
|
39
26
|
scheduledJournalEntryID,
|
|
40
|
-
}),
|
|
27
|
+
}), removeFailedJeScheduleTransactionKey(jeScheduleTransactionKey, selectedPeriod), removeJeScheduleLocalDataById({ scheduledJournalEntryID }), // Important to remove localdata after success.
|
|
41
28
|
fetchMonthEndCloseChecks({
|
|
42
29
|
tenantId: currentTenant.tenantId,
|
|
43
30
|
period: selectedPeriod,
|
|
@@ -47,9 +34,6 @@ export const retryJeScheduleEpic = (actions$, state$, zeniAPI) => actions$.pipe(
|
|
|
47
34
|
messageText: 'success',
|
|
48
35
|
type: 'success',
|
|
49
36
|
}));
|
|
50
|
-
if (wasLastFailedEntryForSchedule) {
|
|
51
|
-
updateActions.push(removeFailedJeScheduleTransactionKey(jeScheduleTransactionKey, selectedPeriod));
|
|
52
|
-
}
|
|
53
37
|
return from(updateActions);
|
|
54
38
|
}
|
|
55
39
|
else {
|
|
@@ -62,11 +62,6 @@ export const initialState = {
|
|
|
62
62
|
jeScheduleAccruedKeysByPeriodAndTab: {},
|
|
63
63
|
jeScheduleOneTimeAccrualKeysByPeriodAndTab: {},
|
|
64
64
|
failedJeScheduleTransactionKeysByPeriodAndTab: {},
|
|
65
|
-
failedJePostings: {
|
|
66
|
-
fetchState: { fetchState: 'Not-Started', error: undefined },
|
|
67
|
-
jeScheduleTransactionKeys: [],
|
|
68
|
-
scheduledJournalEntryIDs: [],
|
|
69
|
-
},
|
|
70
65
|
postStatusById: {},
|
|
71
66
|
ignoreStatusById: {},
|
|
72
67
|
revertStatusById: {},
|
|
@@ -76,9 +71,6 @@ export const initialState = {
|
|
|
76
71
|
oneTimeAccrualFetchStatusById: {},
|
|
77
72
|
uiState: {
|
|
78
73
|
createdGroupCollapsed: false,
|
|
79
|
-
// Expanded, like the other two. A failed posting is the only thing on this page that is
|
|
80
|
-
// actively wrong, so folding it away by default would hide the reason to open the tab.
|
|
81
|
-
failedGroupCollapsed: false,
|
|
82
74
|
pendingGroupCollapsed: false,
|
|
83
75
|
scrollPosition: { scrollTop: 0, scrollLeft: undefined },
|
|
84
76
|
searchString: '',
|
|
@@ -150,59 +142,6 @@ const expenseAutomationJESchedulesView = createSlice({
|
|
|
150
142
|
};
|
|
151
143
|
},
|
|
152
144
|
},
|
|
153
|
-
/**
|
|
154
|
-
* The Failed Postings list, fetched separately from the schedules it belongs to.
|
|
155
|
-
*
|
|
156
|
-
* No period and no tab in any of these three: the endpoint applies no date window, so there is
|
|
157
|
-
* one list per tenant and one slot to hold it. `refreshInBackground` keeps a silent refetch
|
|
158
|
-
* from dropping a skeleton over rows already on screen, the same way refreshStatus does for
|
|
159
|
-
* the schedules list.
|
|
160
|
-
*/
|
|
161
|
-
fetchFailedJePostings: {
|
|
162
|
-
reducer(draft, action) {
|
|
163
|
-
if (!action.payload.refreshInBackground) {
|
|
164
|
-
draft.failedJePostings.fetchState = {
|
|
165
|
-
fetchState: 'In-Progress',
|
|
166
|
-
error: undefined,
|
|
167
|
-
};
|
|
168
|
-
}
|
|
169
|
-
},
|
|
170
|
-
prepare(refreshInBackground = false) {
|
|
171
|
-
return { payload: { refreshInBackground } };
|
|
172
|
-
},
|
|
173
|
-
},
|
|
174
|
-
fetchFailedJePostingsSuccess: {
|
|
175
|
-
reducer(draft, action) {
|
|
176
|
-
// Both lists are replaced, never merged: this response is the whole current answer to
|
|
177
|
-
// "what is failing right now", so an entry it no longer names has stopped failing --
|
|
178
|
-
// resolved by someone else, or posted since -- and must drop out of the group.
|
|
179
|
-
draft.failedJePostings = {
|
|
180
|
-
fetchState: { fetchState: 'Completed', error: undefined },
|
|
181
|
-
jeScheduleTransactionKeys: action.payload.failedJeSchedules.map((schedule) => getJEScheduleTransactionDetailKeyPayload(schedule.base_transaction)),
|
|
182
|
-
// `?? ''` mirrors toScheduledJournalEntryState, so an entry the server sent without an
|
|
183
|
-
// id lands on the same value on both sides and still matches itself.
|
|
184
|
-
scheduledJournalEntryIDs: action.payload.failedScheduledJournalEntries.map((journalEntry) => journalEntry.scheduled_journal_entry_id ?? ''),
|
|
185
|
-
};
|
|
186
|
-
},
|
|
187
|
-
prepare(failedJeSchedules, failedScheduledJournalEntries) {
|
|
188
|
-
return { payload: { failedJeSchedules, failedScheduledJournalEntries } };
|
|
189
|
-
},
|
|
190
|
-
},
|
|
191
|
-
fetchFailedJePostingsFailure: {
|
|
192
|
-
reducer(draft, action) {
|
|
193
|
-
// Keys are deliberately left alone. The schedules list clears its buckets on failure so an
|
|
194
|
-
// errored tab cannot read as "these are all the schedules there are", but this list is a
|
|
195
|
-
// set of outstanding problems -- showing the last known ones beside an error beats
|
|
196
|
-
// implying there are none.
|
|
197
|
-
draft.failedJePostings.fetchState = {
|
|
198
|
-
fetchState: 'Error',
|
|
199
|
-
error: action.payload.status,
|
|
200
|
-
};
|
|
201
|
-
},
|
|
202
|
-
prepare(status) {
|
|
203
|
-
return { payload: { status } };
|
|
204
|
-
},
|
|
205
|
-
},
|
|
206
145
|
fetchJeSchedulesSuccess(draft, action) {
|
|
207
146
|
const { jeSchedules, selectedPeriod, selectedPageTab, failedJeSchedules, accruedJeSchedules, oneTimeAccruals, refreshViewInBackground, } = action.payload;
|
|
208
147
|
const periodTabKey = getJESchedulePeriodTabKey(selectedPageTab, toMonthYearPeriodId(selectedPeriod));
|
|
@@ -265,13 +204,6 @@ const expenseAutomationJESchedulesView = createSlice({
|
|
|
265
204
|
error: undefined,
|
|
266
205
|
},
|
|
267
206
|
};
|
|
268
|
-
// This posting has just succeeded, so it is no longer part of the failing set. Removing the
|
|
269
|
-
// entry from the schedule entity is not enough on its own: a later detail or Quick View
|
|
270
|
-
// fetch re-adds that month from the server, and because is_posting_failed is never cleared
|
|
271
|
-
// it can still arrive carrying its old error array. With the id left in place the selector
|
|
272
|
-
// would match it again and put a Retry button back on a posting that already went through.
|
|
273
|
-
draft.failedJePostings.scheduledJournalEntryIDs =
|
|
274
|
-
draft.failedJePostings.scheduledJournalEntryIDs.filter((failedEntryID) => failedEntryID !== scheduledJournalEntryID);
|
|
275
207
|
},
|
|
276
208
|
retryJeScheduleFailure(draft, action) {
|
|
277
209
|
const { status, scheduledJournalEntryID } = action.payload;
|
|
@@ -426,8 +358,6 @@ const expenseAutomationJESchedulesView = createSlice({
|
|
|
426
358
|
reducer(draft, action) {
|
|
427
359
|
const { failedJeScheduleKey } = action.payload;
|
|
428
360
|
removeKeyFromEveryTabSlot(draft.failedJeScheduleTransactionKeysByPeriodAndTab, failedJeScheduleKey);
|
|
429
|
-
draft.failedJePostings.jeScheduleTransactionKeys =
|
|
430
|
-
draft.failedJePostings.jeScheduleTransactionKeys.filter((jeScheduleKey) => jeScheduleKey !== failedJeScheduleKey);
|
|
431
361
|
},
|
|
432
362
|
},
|
|
433
363
|
initializeJeScheduleLocalData: {
|
|
@@ -770,9 +700,6 @@ const expenseAutomationJESchedulesView = createSlice({
|
|
|
770
700
|
draft.uiState.createdGroupCollapsed =
|
|
771
701
|
!draft.uiState.createdGroupCollapsed;
|
|
772
702
|
},
|
|
773
|
-
toggleJEFailedGroupCollapsed(draft) {
|
|
774
|
-
draft.uiState.failedGroupCollapsed = !draft.uiState.failedGroupCollapsed;
|
|
775
|
-
},
|
|
776
703
|
clearExpenseAutomationJESchedulesView(draft) {
|
|
777
704
|
Object.assign(draft, initialState);
|
|
778
705
|
},
|
|
@@ -783,7 +710,7 @@ const expenseAutomationJESchedulesView = createSlice({
|
|
|
783
710
|
});
|
|
784
711
|
},
|
|
785
712
|
});
|
|
786
|
-
export const { clearExpenseAutomationJESchedulesView, clearJeAccountSettingsLocalData, clearJeScheduleLocalData, clearSearchTransactionsForNewSchedule, createOneTimeAccrual, createOneTimeAccrualFailure, createOneTimeAccrualSuccess, ignoreOneTimeAccrual, oneTimeAccrualActionFailure, oneTimeAccrualActionSuccess, promoteOneTimeAccrual, revertJeSchedule, revertJeScheduleFailure, revertJeScheduleSuccess, revertOneTimeAccrual, fetchAccountSettingsListForAccountTypes, fetchJeSchedules,
|
|
713
|
+
export const { clearExpenseAutomationJESchedulesView, clearJeAccountSettingsLocalData, clearJeScheduleLocalData, clearSearchTransactionsForNewSchedule, createOneTimeAccrual, createOneTimeAccrualFailure, createOneTimeAccrualSuccess, ignoreOneTimeAccrual, oneTimeAccrualActionFailure, oneTimeAccrualActionSuccess, promoteOneTimeAccrual, revertJeSchedule, revertJeScheduleFailure, revertJeScheduleSuccess, revertOneTimeAccrual, fetchAccountSettingsListForAccountTypes, fetchJeSchedules, fetchJeSchedulesFailure, fetchJeSchedulesPage, fetchJeSchedulesSuccess, fetchOneTimeAccrual, fetchOneTimeAccrualFailure, fetchOneTimeAccrualSuccess, fetchRecommendationForAccountSettings, ignoreRecommendedJeSchedule, ignoreRecommendedJeScheduleFailure, ignoreRecommendedJeScheduleSuccess, initializeAccountSettingsView, initializeJeScheduleLocalData, initializeNewSchedule, removeFailedJeScheduleTransactionKey, removeJeOneTimeAccrualLocalData, removeJeScheduleLocalDataById, removeJeAccruedScheduleKey, removeJeScheduleTransactionKey, resetNewScheduleLocalData, retryJeSchedule, retryJeScheduleFailure, retryJeScheduleSuccess, saveAccountSettings, saveAccountSettingsFailure, saveAccountSettingsLocalData, saveAccountSettingsSuccess, saveNewSchedule, saveNewScheduleFailure, saveNewScheduleSuccess, searchTransactionsForNewSchedule, searchTransactionsForNewScheduleFailure, searchTransactionsForNewScheduleSuccess, toggleJECreatedGroupCollapsed, toggleJEPendingGroupCollapsed, updateAccountSettingsListForAccountTypes, updateAccountSettingsListForAccountTypesFailure, updateJESchedulesUIState, updateJEScheduleTypeFilter, updateJeOneTimeAccrualLocalData, updateJeScheduleLocalDataById, updateJeScheduleTransactionKeys, updateNewScheduleLocalData, updateRecommendationForAccountSettings, updateRecommendationForAccountSettingsFailure, } = expenseAutomationJESchedulesView.actions;
|
|
787
714
|
export default expenseAutomationJESchedulesView.reducer;
|
|
788
715
|
const doUpdateRecommendationForAccountSettings = (draft, payload) => {
|
|
789
716
|
const { prepaidExpensesRecommendations, fixedAssetsRecommendations, accruedExpensesRecommendations, } = mapAccountTypeRecommendationPayloadToAccountRecommendationByType(payload);
|
|
@@ -210,7 +210,7 @@ export function getExpenseAutomationJESchedulesView(state) {
|
|
|
210
210
|
const accruedSchedules = [];
|
|
211
211
|
const oneTimeAccruals = [];
|
|
212
212
|
const { accountState, accountListState, classState, classListState, expenseAutomationJESchedulesViewState, expenseAutomationViewState, monthEndCloseChecksState, } = state;
|
|
213
|
-
const { jeScheduleTransactionKeysByPeriodAndTab, jeScheduleAccruedKeysByPeriodAndTab, jeScheduleOneTimeAccrualKeysByPeriodAndTab,
|
|
213
|
+
const { jeScheduleTransactionKeysByPeriodAndTab, jeScheduleAccruedKeysByPeriodAndTab, jeScheduleOneTimeAccrualKeysByPeriodAndTab, failedJeScheduleTransactionKeysByPeriodAndTab, jeScheduleLocalDataById, postStatusById, ignoreStatusById, revertStatusById, oneTimeAccrualActionStatusById, uiState, error, fetchState, refreshStatus, newSchedule, } = expenseAutomationJESchedulesViewState;
|
|
214
214
|
const accountSettingsView = getJEAccountSettingsView(state);
|
|
215
215
|
const newScheduleView = newSchedule.selectedDetailScheduleType === 'fixed_assets' ||
|
|
216
216
|
newSchedule.selectedDetailScheduleType === 'prepaid_expenses'
|
|
@@ -249,11 +249,15 @@ export function getExpenseAutomationJESchedulesView(state) {
|
|
|
249
249
|
const jeScheduleTransactionKeysForSelectedTab = selectedPeriodTabKey != null
|
|
250
250
|
? jeScheduleTransactionKeysByPeriodAndTab[selectedPeriodTabKey]
|
|
251
251
|
: undefined;
|
|
252
|
+
const failedJeScheduleTransactionKeysForSelectedTab = selectedPeriodTabKey != null
|
|
253
|
+
? failedJeScheduleTransactionKeysByPeriodAndTab[selectedPeriodTabKey]
|
|
254
|
+
: undefined;
|
|
252
255
|
// Distinguishes "this tab has never been fetched for this period" from "fetched and genuinely
|
|
253
256
|
// empty". Without it the page cannot tell a first visit from a real empty state, and renders an
|
|
254
257
|
// empty table where it should render a skeleton.
|
|
255
258
|
const hasLoadedForSelectedTab = jeScheduleTransactionKeysForSelectedTab != null;
|
|
256
259
|
const jeScheduleTransactionKeys = jeScheduleTransactionKeysForSelectedTab ?? [];
|
|
260
|
+
const failedJeScheduleTransactionKeys = failedJeScheduleTransactionKeysForSelectedTab ?? [];
|
|
257
261
|
const jeScheduleAccruedKeys = (selectedPeriodTabKey != null
|
|
258
262
|
? jeScheduleAccruedKeysByPeriodAndTab[selectedPeriodTabKey]
|
|
259
263
|
: undefined) ?? [];
|
|
@@ -276,57 +280,24 @@ export function getExpenseAutomationJESchedulesView(state) {
|
|
|
276
280
|
accruedSchedules.push(accruedScheduleDetails);
|
|
277
281
|
}
|
|
278
282
|
});
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
failedJePostings.jeScheduleTransactionKeys.forEach((jeScheduleKey) => {
|
|
283
|
-
// getJEScheduledTransactionByJEScheduleTransactionKey throws three different ways: it
|
|
284
|
-
// destructures the result of recordGet without a null check, and it raises explicitly for a
|
|
285
|
-
// missing vendor and for a missing base transaction. Catching rather than pre-checking each
|
|
286
|
-
// one keeps this correct if a fourth is added, and none of the three is recoverable here --
|
|
287
|
-
// the row cannot be drawn either way.
|
|
288
|
-
//
|
|
289
|
-
// This matters more for this bucket than anywhere else on the page. It is tenant-wide, so it
|
|
290
|
-
// names schedules the close-month list never loaded, and the group is defined by deleted
|
|
291
|
-
// vendors and deleted categories -- precisely the rows whose entities are most likely to be
|
|
292
|
-
// missing. Unguarded, one such key takes down the whole JE tab instead of dropping one row.
|
|
293
|
-
try {
|
|
294
|
-
failedJeScheduledTransaction.push(getJEScheduledTransactionByJEScheduleTransactionKey(jeScheduleKey, state));
|
|
295
|
-
}
|
|
296
|
-
catch {
|
|
297
|
-
// Intentionally swallowed: a failed posting we cannot resolve is one missing row, and the
|
|
298
|
-
// alternative is a blank page for every other row too.
|
|
299
|
-
}
|
|
283
|
+
failedJeScheduleTransactionKeys.forEach((jeScheduleKey) => {
|
|
284
|
+
const jeScheduleDetails = getJEScheduledTransactionByJEScheduleTransactionKey(jeScheduleKey, state);
|
|
285
|
+
failedJeScheduledTransaction.push(jeScheduleDetails);
|
|
300
286
|
});
|
|
301
|
-
// What the endpoint last reported as failing. The entity store keeps every month a schedule
|
|
302
|
-
// has and an entry resolved by someone else keeps its old `error` array, so `error` alone would
|
|
303
|
-
// leave a Retry button on a posting that is no longer failing.
|
|
304
|
-
const failedScheduledJournalEntryIDs = new Set(failedJePostings.scheduledJournalEntryIDs);
|
|
305
287
|
const { sortKey, sortOrder, selectedJETypeFilter } = uiState;
|
|
306
|
-
const matchesTypeFilter = (schedule) => selectedJETypeFilter == null ||
|
|
307
|
-
getJEScheduleRowType(schedule) === selectedJETypeFilter;
|
|
308
288
|
const unsortedResolveSchedules = [];
|
|
309
289
|
failedJeScheduledTransaction.forEach((schedule) => {
|
|
310
|
-
|
|
311
|
-
// opening a schedule's detail page or Quick View replaces it with every month the schedule
|
|
312
|
-
// has, posted ones included, so fanning out over all of them turned one failed posting into a
|
|
313
|
-
// row per month -- and a month that never failed has nothing to resolve, so it rendered with
|
|
314
|
-
// an empty action column.
|
|
315
|
-
//
|
|
316
|
-
// Intersected with the ids the endpoint actually returned, not just `error`: the entry array
|
|
317
|
-
// is a cache of every month, and an entry whose failure someone else resolved keeps its stale
|
|
318
|
-
// error array until something overwrites it. Only what the last fetch named is still failing.
|
|
319
|
-
schedule.scheduledJournalEntry
|
|
320
|
-
.filter((journalEntry) => journalEntry.error.length > 0 &&
|
|
321
|
-
failedScheduledJournalEntryIDs.has(journalEntry.scheduledJournalEntryID))
|
|
322
|
-
.forEach((journalEntry) => {
|
|
290
|
+
schedule.scheduledJournalEntry.forEach((journalEntry) => {
|
|
323
291
|
unsortedResolveSchedules.push({
|
|
324
292
|
...schedule,
|
|
325
293
|
scheduledJournalEntry: journalEntry,
|
|
326
294
|
});
|
|
327
295
|
});
|
|
328
296
|
});
|
|
329
|
-
const resolveSchedules = sortJEScheduledTransactions(unsortedResolveSchedules
|
|
297
|
+
const resolveSchedules = sortJEScheduledTransactions(unsortedResolveSchedules, sortKey, sortOrder);
|
|
298
|
+
const validResolveForPending = unsortedResolveSchedules.filter((r) => jeScheduleLocalDataById[r.scheduledJournalEntry.scheduledJournalEntryID] != null);
|
|
299
|
+
const matchesTypeFilter = (schedule) => selectedJETypeFilter == null ||
|
|
300
|
+
getJEScheduleRowType(schedule) === selectedJETypeFilter;
|
|
330
301
|
const isCreatedStatus = (schedule) => {
|
|
331
302
|
// An accrual is "created" once it is not review work: posted, reversing, reversed, or in a
|
|
332
303
|
// transient posting claim.
|
|
@@ -344,6 +315,7 @@ export function getExpenseAutomationJESchedulesView(state) {
|
|
|
344
315
|
];
|
|
345
316
|
const pendingReviewSchedules = sortJEScheduledTransactions([
|
|
346
317
|
...allScheduleRows.filter((schedule) => isPendingReviewRow(schedule) && matchesTypeFilter(schedule)),
|
|
318
|
+
...validResolveForPending,
|
|
347
319
|
], sortKey, sortOrder);
|
|
348
320
|
const createdSchedules = sortJEScheduledTransactions(allScheduleRows.filter((schedule) => isCreatedStatus(schedule) && matchesTypeFilter(schedule)), sortKey, sortOrder);
|
|
349
321
|
// KPI summary — derived from unfiltered schedules so counts are always accurate
|
|
@@ -462,13 +434,6 @@ export function getExpenseAutomationJESchedulesView(state) {
|
|
|
462
434
|
kpiSummary,
|
|
463
435
|
pendingReviewSchedules,
|
|
464
436
|
pendingReviewTotal,
|
|
465
|
-
failedPostings: resolveSchedules,
|
|
466
|
-
// Exposed so a consumer can tell "still loading" and "the lookup failed" from "nothing has
|
|
467
|
-
// failed". The bucket keeps its rows on failure precisely so an error can be shown beside
|
|
468
|
-
// them, which is only possible if the state travels with them.
|
|
469
|
-
failedPostingsFetchState: failedJePostings.fetchState,
|
|
470
|
-
// Deprecated alias of failedPostings. Still read by the section's footer-form effect and by
|
|
471
|
-
// app-ui analytics; remove once both are repointed.
|
|
472
437
|
resolveSchedules: resolveSchedules,
|
|
473
438
|
accountSettingsView,
|
|
474
439
|
newScheduleView,
|
package/lib/esm/view/invoicing/invoicingDunningCaseListView/invoicingDunningCaseListViewState.js
CHANGED
|
@@ -22,11 +22,11 @@ export const INVOICING_DUNNING_CASE_COLUMNS = [
|
|
|
22
22
|
];
|
|
23
23
|
export const ALL_INVOICING_DUNNING_CASE_TAB_IDS = [
|
|
24
24
|
'all',
|
|
25
|
-
'
|
|
26
|
-
'
|
|
27
|
-
'
|
|
28
|
-
'
|
|
29
|
-
'
|
|
30
|
-
'
|
|
25
|
+
'retrying',
|
|
26
|
+
'scheduled',
|
|
27
|
+
'manual_review',
|
|
28
|
+
'paused',
|
|
29
|
+
'resolved',
|
|
30
|
+
'cancelled',
|
|
31
31
|
];
|
|
32
32
|
export const toInvoicingDunningCaseTabId = (v) => stringToUnion(v, ALL_INVOICING_DUNNING_CASE_TAB_IDS);
|
package/lib/index.d.ts
CHANGED
|
@@ -310,9 +310,9 @@ import { computeNewScheduleJeDetails } from './view/expenseAutomationView/helper
|
|
|
310
310
|
import { isReviewTransactionBankTransferType, isReviewTransactionBillPaymentType, isReviewTransactionCreditCardCreditType, isReviewTransactionCreditCardPaymentType, isReviewTransactionDepositType, isReviewTransactionExpenseType } from './view/expenseAutomationView/helpers/reconciliationHelpers';
|
|
311
311
|
import { MAX_SELECTION_LIMIT, checkIfAllLineItemsAreCategoryClassFilled, getLineItemsByTransactionIdsFromLocalData, isAnyItemWithUncategorizedExpenseAccount } from './view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper';
|
|
312
312
|
import { UploadStatementDocumentAIPayload, UploadStatementDocumentAIResponse } from './view/expenseAutomationView/payload/reconciliationPayload';
|
|
313
|
-
import { ackCloseMatchAfterUndo, clearActualMatchingView as clearExpenseAutomationActualMatchingView, clearMatchNewModal, closeMatchNewModal,
|
|
313
|
+
import { ackCloseMatchAfterUndo, clearActualMatchingView as clearExpenseAutomationActualMatchingView, clearMatchNewModal, closeMatchNewModal, fetchActualMatching as fetchExpenseAutomationActualMatching, fetchActualMatchingMatch, fetchActualMatchingPage as fetchExpenseAutomationActualMatchingPage, matchAndReverseAccruals, openMatchNewModal, searchMatchAccruals, searchMatchTransactions, undoReversalAccruals, updateActualMatchingUIState as updateExpenseAutomationActualMatchingUIState } from './view/expenseAutomationView/reducers/actualMatchingViewReducer';
|
|
314
314
|
import { clearExpenseAutomationFluxAnalysisView, fetchFluxAnalysisView, reviewFluxAnalysisView, updateFluxAnalysisViewPageMetaData, updateFluxAnalysisViewUIState, updateOperatingExpensesIdsForReview, updateSelectedSectionIdsForReview } from './view/expenseAutomationView/reducers/fluxAnalysisViewReducer';
|
|
315
|
-
import { clearJeScheduleLocalData as clearExpenseAutomationJEScheduleLocalData, clearExpenseAutomationJESchedulesView, clearSearchTransactionsForNewSchedule as clearJeSearchTransactionsForNewSchedule, createOneTimeAccrual, createOneTimeAccrualFailure, createOneTimeAccrualSuccess, fetchJeSchedulesPage as fetchExpenseAutomationJESchedulesPage, fetchOneTimeAccrual, ignoreRecommendedJeSchedule as ignoreExpenseAutomationJESchedule, ignoreOneTimeAccrual, initializeAccountSettingsView as initializeJeAccountSettingsView, initializeNewSchedule as initializeJeNewSchedule, initializeJeScheduleLocalData, promoteOneTimeAccrual, removeJeOneTimeAccrualLocalData, removeJeScheduleTransactionKey, resetNewScheduleLocalData as resetJeNewScheduleLocalData, retryJeSchedule as retryExpenseAutomationJESchedule, revertJeSchedule, revertOneTimeAccrual, saveAccountSettings as saveJeAccountSettings, saveAccountSettingsLocalData as saveJeAccountSettingsLocalData, saveNewSchedule as saveJeNewSchedule, saveNewScheduleFailure as saveJeNewScheduleFailure, saveNewScheduleSuccess as saveJeNewScheduleSuccess, searchTransactionsForNewSchedule as searchJeTransactionsForNewSchedule, searchTransactionsForNewScheduleFailure as searchJeTransactionsForNewScheduleFailure, searchTransactionsForNewScheduleSuccess as searchJeTransactionsForNewScheduleSuccess, toggleJECreatedGroupCollapsed,
|
|
315
|
+
import { clearJeScheduleLocalData as clearExpenseAutomationJEScheduleLocalData, clearExpenseAutomationJESchedulesView, clearSearchTransactionsForNewSchedule as clearJeSearchTransactionsForNewSchedule, createOneTimeAccrual, createOneTimeAccrualFailure, createOneTimeAccrualSuccess, fetchJeSchedulesPage as fetchExpenseAutomationJESchedulesPage, fetchOneTimeAccrual, ignoreRecommendedJeSchedule as ignoreExpenseAutomationJESchedule, ignoreOneTimeAccrual, initializeAccountSettingsView as initializeJeAccountSettingsView, initializeNewSchedule as initializeJeNewSchedule, initializeJeScheduleLocalData, promoteOneTimeAccrual, removeJeOneTimeAccrualLocalData, removeJeScheduleTransactionKey, resetNewScheduleLocalData as resetJeNewScheduleLocalData, retryJeSchedule as retryExpenseAutomationJESchedule, revertJeSchedule, revertOneTimeAccrual, saveAccountSettings as saveJeAccountSettings, saveAccountSettingsLocalData as saveJeAccountSettingsLocalData, saveNewSchedule as saveJeNewSchedule, saveNewScheduleFailure as saveJeNewScheduleFailure, saveNewScheduleSuccess as saveJeNewScheduleSuccess, searchTransactionsForNewSchedule as searchJeTransactionsForNewSchedule, searchTransactionsForNewScheduleFailure as searchJeTransactionsForNewScheduleFailure, searchTransactionsForNewScheduleSuccess as searchJeTransactionsForNewScheduleSuccess, toggleJECreatedGroupCollapsed, toggleJEPendingGroupCollapsed, updateJESchedulesUIState as updateExpenseAutomationJESchedulesUIState, updateJEScheduleTypeFilter, updateNewScheduleLocalData as updateJeNewScheduleLocalData, updateJeOneTimeAccrualLocalData, updateJeScheduleLocalDataById, updateJeScheduleTransactionKeys } from './view/expenseAutomationView/reducers/jeSchedulesViewReducer';
|
|
316
316
|
import { acknowledgeBulkUploadConfirmMatchComplete, bulkUploadAutomatchingTimedOut, bulkUploadReceipts, bulkUploadReceiptsFailure, bulkUploadReceiptsSuccess, clearBulkUpload, clearBulkUploadBatchDetailsForScopeChange, clearManualSearchResults, clearMissingReceiptsTabNavigation, confirmBulkUploadMatch, confirmBulkUploadMatchFailure, confirmBulkUploadMatchSuccess, fetchBulkUploadBatchDetails, fetchBulkUploadBatchDetailsFailure, fetchBulkUploadBatchDetailsSuccess, fetchBulkUploadBatches, fetchBulkUploadBatchesFailure, fetchBulkUploadBatchesSuccess, fetchCompletedTransactions, fetchCompletedTransactionsFailure, fetchCompletedTransactionsSuccess, fetchMissingReceipts as fetchExpenseAutomationMissingReceipts, fetchMoreBatchDetails, fetchMoreBatchDetailsComplete, fetchMoreBatchDetailsFailure, markBatchDetailRefreshAttempted, markMissingReceiptAsDone as markExpenseAutomationMissingReceiptAsDone, pusherBatchStatusUpdate, refreshBatchDetailsForBatchId, requestMissingReceiptsTabNavigation, restoreBulkUploadAutomatchingOnMount, restoreBulkUploadMatchingState, searchTransactionsForManualMatch, searchTransactionsForManualMatchFailure, searchTransactionsForManualMatchSuccess, setBulkUploadCompletedSubTab, setBulkUploadResultsTab, setBulkUploadSortConfig, setBulkUploadUploadedFileCount, storeBatchDetails, updateBulkUploadProgress, updateMissingReceiptUploadState as updateExpenseAutomationMissingReceiptUploadState, updateMissingReceiptsUIState as updateExpenseAutomationMissingReceiptsUIState, uploadMissingReceiptSuccess as uploadExpenseAutomationMissingReceiptSuccess } from './view/expenseAutomationView/reducers/missingReceiptsViewReducer';
|
|
317
317
|
import { clearStatementDateConflict, confirmStatementMapping, deleteAccountStatement, deleteCombinedStatement, excludeAccountFromReconciliation, fetchReconciliation as fetchReconciliationView, includeAccountInReconciliation, parseCombinedStatement, parseStatement, parseStatementFailure, parseStatementSuccess, reparseStatement, reparseStatementFailure, reparseStatementSuccess, resetReparseStatementStatus, saveReconciliationDetail as saveExpenseAutomationReconciliationDetail, saveReconciliationReview as saveExpenseAutomationReconciliationReview, setConnectionInProgressForAccount as setConnectionInProgressForAccountReconciliation, setStatementParseInProgress, setStatementProcessingDismissedToBackground, submitCombinedStatementUpdate, submitStatementUpdate, updateAccountReconciliationLocalData as updateExpenseAutomationAccountReconciliationLocalData, updateSelectedAccountId as updateExpenseAutomationAccountReconciliationSelectedAccountId, updateSelectedTab as updateExpenseAutomationAccountReconciliationSelectedTab, updateReconListScrollPosition as updateExpenseAutomationReconListScrollPosition, updateReviewTabSortState as updateExpenseAutomationReconReviewTabListSortState, updateReviewTabLocalData as updateExpenseAutomationReconReviewTabLocalData, updateReconcileTabListScrollState as updateExpenseAutomationReconcileTabListScrollState, updateReconcileTabListSortState as updateExpenseAutomationReconcileTabListSortState, updateReconcileTabLocalData as updateExpenseAutomationReconcileTabLocalData, updateSelectedDrawerAccountId as updateExpenseAutomationSelectedDrawerAccountId, updateNodeCollapseState, updateParsedStatementData, updateStatementProcessingBackgroundCompletedSteps, updateStatementProcessingFailed, updateStatementUpdateLocalData, updateStatementUploadChosen, uploadAccountStatement } from './view/expenseAutomationView/reducers/reconciliationViewReducer';
|
|
318
318
|
import { backgroundRefetchReviewTab, clearExpenseAutomationTransactionsView, fetchTransactionCategorization, fetchTransactionCategorizationFailure, fetchTransactionCategorizationView, initializeTransactionCategorizationViewLocalData, markCategoryClassRecommendationsFailureForCategorization, markTransactionAsNotMiscategorized, removeTransactionFromAllTabs, saveTransactionCategorization, saveTransactionCategorizationLocalData, setAllItemsToCategoryClassInLocalDataForCategorization, setEntityRecommendationForLineIdsForCategorization, syncTransactionCategorizationFromDetailSave, updateCurrentSelectedTransactionCategorizationTab, updateSelectedCheckboxTransactionIds, updateSelectedCustomerForTransaction, updateSelectedTransactionId, updateSelectedVendorForTransaction, updateTransactionCategorization, updateTransactionCategorizationCompletedSubTab, updateTransactionCategorizationSaveStatus, updateTransactionCategorizationUIState, updateTransactionCategorizationUploadReceiptState, updateTransactionFilters, updateTransactionGroup, uploadTransactionCategorizationReceiptSuccess } from './view/expenseAutomationView/reducers/transactionsViewReducer';
|
|
@@ -735,7 +735,7 @@ export { TransactionsOrder, COABalancesSliceOrder, EntityOrder, Section, Section
|
|
|
735
735
|
export { ClassesViewSelectorReportV2 };
|
|
736
736
|
export { BalancesTimeseries, TrendTimeseries, BalanceKind };
|
|
737
737
|
export { fetchMonthEndCloseChecks, fetchMonthClosePerformanceTrend, MonthClosePerformanceTrend, MonthEndCloseCheck, getMonthEndCloseChecksViewByTenantId, MonthEndCloseChecksView, MonthEndCloseCheckFrequency, MonthCloseCheckMetrics, MonthCloseCheckProgressJson, ALL_MONTH_END_CLOSE_CHECKS_FREQUENCY, MonthEndAuditSummary, };
|
|
738
|
-
export { ExpenseAutomationViewSelector, ExpenseAutomationStepDetails, ExpenseAutomationViewType, ExpenseAutomationMissingReceiptsViewSelector, BulkUploadSelectorData, ExpenseAutomationFluxAnalysisViewSelector, FluxAnalysisVendorView, FluxAnalysisViewSectionReport, FluxVendorAccountsAndClassesView, ExpenseAutomationMissingReceiptsViewUIState, ExpenseAutomationMissingReceiptsViewState, ExpenseAutomationViewState, ExpenseAutomationTransactionsTab, ExpenseAutomationMissingReceiptsSortKey, BATCH_FILE_STATUSES, BatchDetails, BatchFile, BatchFileStatus, BatchListItem, isUnmatchedTabFileStatus, BatchStatus, BatchStatusValue, BatchSummary, BulkUploadPhase, BulkUploadResultsTab, BulkUploadSortKey, BulkUploadState, CandidateRef, CompletedSubTab, CompletedTransactionsSelectorData, DEFAULT_COMPLETED_SUB_TAB, DEFAULT_TRANSACTION_GROUP, TRANSACTION_GROUPS, TransactionGroup, toTransactionGroup, MatchCandidate, MatchSource, MissingReceiptsTab, toBatchFileStatus, toBatchStatusValue, toBulkUploadPhase, toBulkUploadResultsTab, toBulkUploadSortKey, toCompletedSubTab, toMatchSource, toMissingReceiptsTab, ResolvedBatchFile, ResolvedBatchDetails, ResolvedCandidate, ExpenseAutomationJEScheduleSortKey, ExpenseAutomationJESchedulesViewUIState, ExpenseAutomationActualMatchingViewSelector, ActualMatchingKpiSummary, ActualMatchingMatchModalView, ActualMatchingRow, ActualMatchingRowKind, ExpenseAutomationActualMatchingSortKey, ExpenseAutomationActualMatchingViewUIState, ActualMatchingTransactionSearchResult, MatchAndReverseAccrualsParams, MatchAndReverseResult, MatchAndReverseResultStatus, UndoReversalAccrualsParams, UndoReversalResult, UndoReversalResultStatus, actualMatchingTransactionLineKey, JEKpiSummary, ALL_JE_PAGE_TABS, JEPageTab, MATCH_ACCRUAL_SEARCH_LIMIT, MATCH_SEARCH_DEBOUNCE_MS, MATCH_TRANSACTION_SEARCH_PAGE_SIZE, toExpenseAutomationJEScheduleSortKey, toExpenseAutomationActualMatchingSortKey, toJEPageTab, toMatchAndReverseResultStatus, toUndoReversalResultStatus, toggleJECreatedGroupCollapsed,
|
|
738
|
+
export { ExpenseAutomationViewSelector, ExpenseAutomationStepDetails, ExpenseAutomationViewType, ExpenseAutomationMissingReceiptsViewSelector, BulkUploadSelectorData, ExpenseAutomationFluxAnalysisViewSelector, FluxAnalysisVendorView, FluxAnalysisViewSectionReport, FluxVendorAccountsAndClassesView, ExpenseAutomationMissingReceiptsViewUIState, ExpenseAutomationMissingReceiptsViewState, ExpenseAutomationViewState, ExpenseAutomationTransactionsTab, ExpenseAutomationMissingReceiptsSortKey, BATCH_FILE_STATUSES, BatchDetails, BatchFile, BatchFileStatus, BatchListItem, isUnmatchedTabFileStatus, BatchStatus, BatchStatusValue, BatchSummary, BulkUploadPhase, BulkUploadResultsTab, BulkUploadSortKey, BulkUploadState, CandidateRef, CompletedSubTab, CompletedTransactionsSelectorData, DEFAULT_COMPLETED_SUB_TAB, DEFAULT_TRANSACTION_GROUP, TRANSACTION_GROUPS, TransactionGroup, toTransactionGroup, MatchCandidate, MatchSource, MissingReceiptsTab, toBatchFileStatus, toBatchStatusValue, toBulkUploadPhase, toBulkUploadResultsTab, toBulkUploadSortKey, toCompletedSubTab, toMatchSource, toMissingReceiptsTab, ResolvedBatchFile, ResolvedBatchDetails, ResolvedCandidate, ExpenseAutomationJEScheduleSortKey, ExpenseAutomationJESchedulesViewUIState, ExpenseAutomationActualMatchingViewSelector, ActualMatchingKpiSummary, ActualMatchingMatchModalView, ActualMatchingRow, ActualMatchingRowKind, ExpenseAutomationActualMatchingSortKey, ExpenseAutomationActualMatchingViewUIState, ActualMatchingTransactionSearchResult, MatchAndReverseAccrualsParams, MatchAndReverseResult, MatchAndReverseResultStatus, UndoReversalAccrualsParams, UndoReversalResult, UndoReversalResultStatus, actualMatchingTransactionLineKey, JEKpiSummary, ALL_JE_PAGE_TABS, JEPageTab, MATCH_ACCRUAL_SEARCH_LIMIT, MATCH_SEARCH_DEBOUNCE_MS, MATCH_TRANSACTION_SEARCH_PAGE_SIZE, toExpenseAutomationJEScheduleSortKey, toExpenseAutomationActualMatchingSortKey, toJEPageTab, toMatchAndReverseResultStatus, toUndoReversalResultStatus, toggleJECreatedGroupCollapsed, toggleJEPendingGroupCollapsed, updateJEScheduleTypeFilter, getExpenseAutomationView, toExpenseAutomationMissingReceiptsSortKey, toExpenseAutomationTransactionsTabKey, toExpenseAutomationViewType, toExpenseAutomationViewTypeStrict, uploadExpenseAutomationMissingReceiptSuccess, markExpenseAutomationMissingReceiptAsDone, fetchAllExpenseAutomationTabs, refreshExpenseAutomationCurrentTab, updateCurrentSelectedTransactionCategorizationTab, updateTransactionCategorizationCompletedSubTab, updateTransactionGroup, fetchExpenseAutomationMissingReceipts, bulkUploadReceipts, bulkUploadAutomatchingTimedOut, bulkUploadReceiptsSuccess, bulkUploadReceiptsFailure, restoreBulkUploadAutomatchingOnMount, restoreBulkUploadMatchingState, updateBulkUploadProgress, pusherBatchStatusUpdate, requestMissingReceiptsTabNavigation, clearMissingReceiptsTabNavigation, fetchBulkUploadBatchDetails, fetchBulkUploadBatchDetailsSuccess, fetchBulkUploadBatchDetailsFailure, storeBatchDetails, fetchMoreBatchDetails, fetchMoreBatchDetailsComplete, fetchMoreBatchDetailsFailure, fetchBulkUploadBatches, fetchBulkUploadBatchesSuccess, fetchBulkUploadBatchesFailure, clearBulkUploadBatchDetailsForScopeChange, markBatchDetailRefreshAttempted, refreshBatchDetailsForBatchId, confirmBulkUploadMatch, confirmBulkUploadMatchSuccess, confirmBulkUploadMatchFailure, setBulkUploadResultsTab, setBulkUploadCompletedSubTab, setBulkUploadSortConfig, setBulkUploadUploadedFileCount, clearBulkUpload, searchTransactionsForManualMatch, searchTransactionsForManualMatchSuccess, searchTransactionsForManualMatchFailure, clearManualSearchResults, acknowledgeBulkUploadConfirmMatchComplete, fetchCompletedTransactions, fetchCompletedTransactionsSuccess, fetchCompletedTransactionsFailure, fetchFluxAnalysisView, clearExpenseAutomationFluxAnalysisView, updateOperatingExpensesIdsForReview as updateFluxOperatingExpensesIdsForReview, updateSelectedSectionIdsForReview as updateFluxAnalysisSelectedSectionIdsForReview, reviewFluxAnalysisView, updateExpenseAutomationMissingReceiptUploadState, updateExpenseAutomationMissingReceiptsUIState, updateTransactionCategorizationUploadReceiptState, uploadTransactionCategorizationReceiptSuccess, FluxAnalysisOperatingExpenseView, FluxAnalysisSectionType, getExpenseAutomationFluxAnalysisView, FluxAnalysisSortKey, FluxAnalysisActionType, FluxBalancesByMonth, updateCurrentSelectedView, updateCurrentSelectedPeriod, getExpenseAutomationTransactionView, getLastTransferEntryReplacement, ReconReconcileSortKey, ReconciliationReconcileTabLocalData, FluxAnalysisReviewStatus, updateFluxAnalysisViewUIState, FluxAnalysisViewUIState, updateFluxAnalysisViewPageMetaData, MAX_SELECTION_LIMIT, checkIfAllLineItemsAreCategoryClassFilled, getLineItemsByTransactionIdsFromLocalData, isAnyItemWithUncategorizedExpenseAccount, SaveExpenseAutomationReconciliationActionType, ExcludeAccountFromReconciliationPayload, excludeAccountFromReconciliation, includeAccountInReconciliation, saveExpenseAutomationReconciliationDetail, updateExpenseAutomationReconcileTabListScrollState, updateExpenseAutomationReconReviewTabListSortState, updateExpenseAutomationReconcileTabListSortState, updateExpenseAutomationReconcileTabLocalData, updateExpenseAutomationAccountReconciliationSelectedTab, updateExpenseAutomationAccountReconciliationSelectedAccountId, ExpenseAutomationReconciliationViewSelector, getExpenseAutomationReconciliationView, getLedgerAccountIdsWithStatementOverrideWarning, getLedgerAccountsForCombinedStatementMapping, getReparseStatementStatusByAccountId, getUnavailableLedgerAccountIds, AccountReconciliationBySection, fetchReconciliationView, uploadAccountStatementIntoDocumentAI, UploadStatementDocumentAIResponse, updateExpenseAutomationReconListScrollPosition, setConnectionInProgressForAccountReconciliation, AccountReconciliationByAccount, AccountReconciliationEntity, getAccountReconByAccountIdAndSelectedPeriod, ExpenseAutomationReconciliationViewTab, toReconciliationTabsType, isAccountReconReport, ReconReviewSortKey, AccountReconSectionID, ReconciliationReviewTabLocalData, TransactionsToReview, RecommendedActionCodeType, ReconciliationStatusCodeType, BalanceDataStatusCodeType, updateExpenseAutomationReconReviewTabLocalData, updateExpenseAutomationSelectedDrawerAccountId, updateStatementProcessingFailed, saveExpenseAutomationReconciliationReview, updateExpenseAutomationAccountReconciliationLocalData, BankStatusCodeType, ReconciliationAccountSourceType, toReconciliationAccountSource, StatementStatusCodeType, AccountReconciliationLocalData, CombinedStatementAccount, StatementAccountScope, StatementDataStatusCodeType, deleteAccountStatement, deleteCombinedStatement, uploadAccountStatement, parseCombinedStatement, parseStatement, parseStatementSuccess, parseStatementFailure, reparseStatement, reparseStatementSuccess, reparseStatementFailure, resetReparseStatementStatus, updateParsedStatementData, updateNodeCollapseState, UploadStatementDocumentAIPayload, updateStatementUploadChosen, submitCombinedStatementUpdate, submitStatementUpdate, clearStatementDateConflict, confirmStatementMapping, StatementDateConflict, updateStatementUpdateLocalData, isReviewTransactionBankTransferType, isReviewTransactionBillPaymentType, isReviewTransactionCreditCardPaymentType, isReviewTransactionDepositType, isReviewTransactionExpenseType, isReviewTransactionCreditCardCreditType, setStatementParseInProgress, setStatementProcessingDismissedToBackground, updateStatementProcessingBackgroundCompletedSteps, ParsedStatementData, StatementUpdateLocalData, StatementMeta, StatementTransaction, StatementTransactionForUpdate, StatementTransactionsUpdate, };
|
|
739
739
|
export { JEScheduleLocalData };
|
|
740
740
|
export { ExpenseAutomationJESchedulesViewSelector, JEAccountSettingsView, ExpenseAutomationJEOneTimeAccrualDetailView, JEScheduleRow, JEScheduledTransactionWithFailedEntries, NewJeDetailLocalData, NewJeScheduleState, NewOneTimeAccrualLocalData, NewAccrualAccountsView, NewScheduleLocalData, NewScheduleLocalDataFixedAssets, NewScheduleSearchTransactionsView, NewScheduleView, SearchTransactionsState, computeNewScheduleJeDetails, createOneTimeAccrual, createOneTimeAccrualFailure, createOneTimeAccrualSuccess, fetchOneTimeAccrual, getJeNewAccrualAccountsView, ignoreOneTimeAccrual, promoteOneTimeAccrual, revertJeSchedule, revertOneTimeAccrual, getJeNewScheduleSearchTransactionsView, getJeNewScheduleView, };
|
|
741
741
|
export { fetchTransactionCategorization, fetchTransactionCategorizationView, updateTransactionCategorizationUIState, updateTransactionFilters, updateSelectedCheckboxTransactionIds, markCategoryClassRecommendationsFailureForCategorization, setEntityRecommendationForLineIdsForCategorization, initializeTransactionCategorizationViewLocalData, setAllItemsToCategoryClassInLocalDataForCategorization, saveTransactionCategorizationLocalData, fetchTransactionCategorizationFailure, saveTransactionCategorization, updateTransactionCategorization, updateTransactionCategorizationSaveStatus, markTransactionAsNotMiscategorized, updateSelectedVendorForTransaction, updateSelectedCustomerForTransaction, updateSelectedTransactionId, syncTransactionCategorizationFromDetailSave, backgroundRefetchReviewTab, createTransferEntry, createTransferEntryFailure, createTransferEntryReplacedTransaction, createTransferEntrySuccess, resetCreateTransferEntryStatus, clearTransferEntryRouteReplacement, fetchAccountsForTransferFlow, removeTransactionFromAllTabs, clearExpenseAutomationTransactionsView, TransactionsSortKey, toTransactionsSortKey, TransactionsTab, TransactionCategorizationLineItemData, TransactionReviewLocalData, SupportedTransactionCategorization, ExpenseAutomationTransactionsViewState, ExpenseAutomationTransactionsViewUIState, ExpenseAutomationTransactionViewSelector, TransactionReviewLocalDataSelectorView, };
|