@zeniai/client-epic-state 4.20.2-betaAK1 → 4.20.2-betaJK2
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/commonStateTypes/viewAndReport/viewAndReport.d.ts +2 -2
- package/lib/commonStateTypes/viewAndReport/viewAndReport.js +1 -0
- package/lib/entity/account/accountPayload.d.ts +2 -0
- package/lib/entity/account/accountReducer.d.ts +5 -2
- package/lib/entity/account/accountReducer.js +7 -2
- package/lib/entity/account/accountState.d.ts +1 -1
- package/lib/entity/accountGroup/accountGroupState.d.ts +1 -1
- package/lib/entity/class/classReducer.d.ts +4 -4
- package/lib/entity/class/classState.d.ts +1 -1
- package/lib/entity/forecast/forecastState.d.ts +1 -1
- package/lib/entity/sectionAccountsView/sectionAccountsView.d.ts +1 -1
- package/lib/entity/sectionClassesViewV2/sectionClassesView.d.ts +1 -1
- package/lib/entity/sectionClassesViewV2/sectionClassesViewReducer.d.ts +2 -2
- package/lib/entity/transaction/payloadTypes/transactionPayload.js +1 -0
- package/lib/epic.d.ts +3 -1
- package/lib/epic.js +3 -1
- package/lib/esm/commonStateTypes/viewAndReport/viewAndReport.js +1 -0
- package/lib/esm/entity/account/accountReducer.js +6 -1
- package/lib/esm/entity/transaction/payloadTypes/transactionPayload.js +1 -0
- package/lib/esm/epic.js +3 -1
- package/lib/esm/index.js +2 -2
- package/lib/esm/view/expenseAutomationView/epics/accountRecon/excludeAccountFromReconciliationEpic.js +44 -0
- package/lib/esm/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.js +4 -9
- package/lib/esm/view/expenseAutomationView/epics/accountRecon/includeAccountInReconciliationEpic.js +44 -0
- package/lib/esm/view/expenseAutomationView/reducers/reconciliationViewReducer.js +151 -3
- package/lib/esm/view/expenseAutomationView/selectors/reconciliationViewSelector.js +69 -0
- package/lib/esm/view/profitAndLossClassesView/profitAndLossClassesByClassHorizontalSelector.js +3 -0
- package/lib/esm/view/transactionDetail/transactionDetailSelector.js +9 -2
- package/lib/index.d.ts +4 -4
- package/lib/index.js +33 -31
- package/lib/view/auditReportView/auditReportViewState.d.ts +1 -1
- package/lib/view/billPayCard/billPayCardSelector.d.ts +1 -1
- package/lib/view/cardBalance/cardBalanceSelector.d.ts +1 -1
- package/lib/view/cashBalance/cashBalanceSelector.d.ts +1 -1
- package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +1 -1
- package/lib/view/cashPosition/cashPositionSelector.d.ts +1 -1
- package/lib/view/dashboard/dashboardReducer.d.ts +2 -2
- package/lib/view/expenseAutomationView/epics/accountRecon/excludeAccountFromReconciliationEpic.d.ts +8 -0
- package/lib/view/expenseAutomationView/epics/accountRecon/excludeAccountFromReconciliationEpic.js +48 -0
- package/lib/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.js +4 -9
- package/lib/view/expenseAutomationView/epics/accountRecon/includeAccountInReconciliationEpic.d.ts +9 -0
- package/lib/view/expenseAutomationView/epics/accountRecon/includeAccountInReconciliationEpic.js +48 -0
- package/lib/view/expenseAutomationView/payload/reconciliationPayload.d.ts +33 -0
- package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.d.ts +14 -3
- package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.js +152 -4
- package/lib/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.d.ts +11 -1
- package/lib/view/expenseAutomationView/selectors/reconciliationViewSelector.js +69 -0
- package/lib/view/expenseAutomationView/types/reconciliationViewState.d.ts +12 -0
- package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
- package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +2 -2
- package/lib/view/profitAndLossClassesView/profitAndLossClassesByClassHorizontalSelector.js +3 -0
- package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +1 -1
- package/lib/view/reportsResync/reportsResyncReducer.d.ts +2 -2
- package/lib/view/tasksCard/tasksCardSelector.d.ts +1 -1
- package/lib/view/topEx/topExSelector.d.ts +1 -1
- package/lib/view/transactionDetail/transactionDetailSelector.d.ts +1 -0
- package/lib/view/transactionDetail/transactionDetailSelector.js +9 -2
- package/package.json +1 -1
- package/lib/tsconfig.typecheck.tsbuildinfo +0 -1
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { of } from 'rxjs';
|
|
2
|
+
import { catchError, filter, mergeMap } from 'rxjs/operators';
|
|
3
|
+
import { changeAccountKey } from '../../../../entity/account/accountReducer';
|
|
4
|
+
import { getAccountKey } from '../../../../entity/account/accountState';
|
|
5
|
+
import { getAccountReconByAccountIdAndSelectedPeriod } from '../../../../entity/accountRecon/accountReconSelector';
|
|
6
|
+
import { getCurrentTenant } from '../../../../entity/tenant/tenantSelector';
|
|
7
|
+
import { createZeniAPIStatus, isSuccessResponse, } from '../../../../responsePayload';
|
|
8
|
+
import { excludeAccountFromReconciliation, excludeAccountFromReconciliationFailure, excludeAccountFromReconciliationSuccess, } from '../../reducers/reconciliationViewReducer';
|
|
9
|
+
export const excludeAccountFromReconciliationEpic = (actions$, state$, zeniAPI) => actions$.pipe(filter(excludeAccountFromReconciliation.match), mergeMap((action) => {
|
|
10
|
+
const { accountId } = action.payload;
|
|
11
|
+
const state = state$.value;
|
|
12
|
+
const currentTenant = getCurrentTenant(state);
|
|
13
|
+
const selectedPeriod = state.expenseAutomationViewState.selectedPeriodByTenantId[currentTenant.tenantId];
|
|
14
|
+
const reconciliationData = getAccountReconByAccountIdAndSelectedPeriod(state, accountId, selectedPeriod);
|
|
15
|
+
const payload = {
|
|
16
|
+
account_id: accountId,
|
|
17
|
+
bank_balance: reconciliationData?.balance?.amount ?? null,
|
|
18
|
+
cleared_balance: reconciliationData?.clearedBalance?.amount ?? null,
|
|
19
|
+
variance: reconciliationData?.variance?.amount ?? null,
|
|
20
|
+
};
|
|
21
|
+
const apiUrl = `${zeniAPI.apiEndPoints.reconciliationMicroServiceBaseUrl}/1.0/reconciliation/excluded-accounts`;
|
|
22
|
+
return zeniAPI
|
|
23
|
+
.postAndGetJSON(apiUrl, payload)
|
|
24
|
+
.pipe(mergeMap((response) => {
|
|
25
|
+
if (isSuccessResponse(response)) {
|
|
26
|
+
const newAccountKey = getAccountKey('excluded_account_reconciliation', accountId);
|
|
27
|
+
const oldAccountKey = getAccountKey('account_reconciliation', accountId);
|
|
28
|
+
return of(excludeAccountFromReconciliationSuccess({
|
|
29
|
+
account: response.data?.excluded_account ?? undefined,
|
|
30
|
+
selectedPeriod,
|
|
31
|
+
}), changeAccountKey({
|
|
32
|
+
oldKey: oldAccountKey,
|
|
33
|
+
newKey: newAccountKey,
|
|
34
|
+
}));
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
return of(excludeAccountFromReconciliationFailure({
|
|
38
|
+
error: response.status,
|
|
39
|
+
}));
|
|
40
|
+
}
|
|
41
|
+
}), catchError((error) => of(excludeAccountFromReconciliationFailure({
|
|
42
|
+
error: createZeniAPIStatus('Unexpected Error', `Exclude account from reconciliation REST API call errored out ${JSON.stringify(error)}`),
|
|
43
|
+
}))));
|
|
44
|
+
}));
|
package/lib/esm/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.js
CHANGED
|
@@ -53,22 +53,17 @@ export const fetchReconciliationViewEpic = (actions$, state$, zeniAPI) => action
|
|
|
53
53
|
return zeniAPI.getJSON(apiUrl).pipe(mergeMap((response) => {
|
|
54
54
|
if (isSuccessResponse(response) && response.data != null) {
|
|
55
55
|
const updateActions = [];
|
|
56
|
-
|
|
57
|
-
updateActions.push(updateAllUsers({
|
|
56
|
+
const allTransactionsPerRecon = getAllReviewTransactionsFromReconcilePayload(response.data.reconciliation);
|
|
57
|
+
updateActions.push(updateAccounts(response.data.accounts, 'account_reconciliation'), updateAccounts(response.data.excluded_accounts, 'excluded_account_reconciliation'), updateAllUsers({
|
|
58
58
|
users: response.data.users ?? [],
|
|
59
59
|
updateType: 'merge',
|
|
60
|
-
}));
|
|
61
|
-
updateActions.push(updateFiles({ files: response.data.files ?? [] }));
|
|
62
|
-
const allTransactionsPerRecon = getAllReviewTransactionsFromReconcilePayload(response.data.reconciliation);
|
|
63
|
-
updateActions.push(updateMultipleReconcileTransactions(allTransactionsPerRecon, 'merge'));
|
|
64
|
-
updateActions.push(updateAccountRecon(selectedPeriod, response.data.reconciliation));
|
|
60
|
+
}), updateFiles({ files: response.data.files ?? [] }), updateMultipleReconcileTransactions(allTransactionsPerRecon, 'merge'), updateAccountRecon(selectedPeriod, response.data.reconciliation));
|
|
65
61
|
const reviewTabLocalData = prepareReviewTabLocalData(response.data.reconciliation[0]?.transactions?.review ?? []);
|
|
66
62
|
if (accountId != null) {
|
|
67
63
|
const selectedTransactionIds = getTransactionIdFromCheckedMatchedTransactionPayload(response.data.reconciliation[0].transactions.reconcile);
|
|
68
64
|
updateActions.push(updateReconcileTabLocalData({
|
|
69
65
|
selectedTransactionIds: selectedTransactionIds,
|
|
70
|
-
}));
|
|
71
|
-
updateActions.push(initializeReconciliationReviewTabLocalData(reviewTabLocalData));
|
|
66
|
+
}), initializeReconciliationReviewTabLocalData(reviewTabLocalData));
|
|
72
67
|
}
|
|
73
68
|
updateActions.push(fetchReconciliationSuccess(selectedPeriod, response.data, refreshViewInBackground, accountId));
|
|
74
69
|
return from(updateActions);
|
package/lib/esm/view/expenseAutomationView/epics/accountRecon/includeAccountInReconciliationEpic.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { of } from 'rxjs';
|
|
2
|
+
import { catchError, filter, mergeMap } from 'rxjs/operators';
|
|
3
|
+
import { convertToPeriod } from '../../../../commonStateTypes/timePeriod';
|
|
4
|
+
import { changeAccountKey } from '../../../../entity/account/accountReducer';
|
|
5
|
+
import { getAccountKey } from '../../../../entity/account/accountState';
|
|
6
|
+
import { updateAccountRecon } from '../../../../entity/accountRecon/accountReconReducer';
|
|
7
|
+
import { getCurrentTenant } from '../../../../entity/tenant/tenantSelector';
|
|
8
|
+
import { createZeniAPIStatus, isSuccessResponse, } from '../../../../responsePayload';
|
|
9
|
+
import { includeAccountInReconciliation, includeAccountInReconciliationFailure, includeAccountInReconciliationSuccess, } from '../../reducers/reconciliationViewReducer';
|
|
10
|
+
export const includeAccountInReconciliationEpic = (actions$, state$, zeniAPI) => actions$.pipe(filter(includeAccountInReconciliation.match), mergeMap((action) => {
|
|
11
|
+
const { accountId } = action.payload;
|
|
12
|
+
const state = state$.value;
|
|
13
|
+
const currentTenant = getCurrentTenant(state);
|
|
14
|
+
const selectedPeriod = state.expenseAutomationViewState.selectedPeriodByTenantId[currentTenant.tenantId];
|
|
15
|
+
const period = convertToPeriod(selectedPeriod, true);
|
|
16
|
+
const query = JSON.stringify({
|
|
17
|
+
start_date: period.start,
|
|
18
|
+
end_date: period.end,
|
|
19
|
+
});
|
|
20
|
+
const apiUrl = `${zeniAPI.apiEndPoints.reconciliationMicroServiceBaseUrl}/1.0/reconciliation/excluded-accounts/${accountId}?query=${encodeURIComponent(query)}`;
|
|
21
|
+
return zeniAPI
|
|
22
|
+
.deleteAndGetJSON(apiUrl)
|
|
23
|
+
.pipe(mergeMap((response) => {
|
|
24
|
+
if (isSuccessResponse(response) && response.data != null) {
|
|
25
|
+
const reconciliation = response.data.reconciliation;
|
|
26
|
+
const oldAccountKey = getAccountKey('excluded_account_reconciliation', reconciliation.account_id);
|
|
27
|
+
const newAccountKey = getAccountKey('account_reconciliation', reconciliation.account_id);
|
|
28
|
+
return of(updateAccountRecon(selectedPeriod, [reconciliation]), includeAccountInReconciliationSuccess({
|
|
29
|
+
reconciliation,
|
|
30
|
+
selectedPeriod,
|
|
31
|
+
}), changeAccountKey({
|
|
32
|
+
oldKey: oldAccountKey,
|
|
33
|
+
newKey: newAccountKey,
|
|
34
|
+
}));
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
return of(includeAccountInReconciliationFailure({
|
|
38
|
+
error: response.status,
|
|
39
|
+
}));
|
|
40
|
+
}
|
|
41
|
+
}), catchError((error) => of(includeAccountInReconciliationFailure({
|
|
42
|
+
error: createZeniAPIStatus('Unexpected Error', `Include account in reconciliation REST API call errored out ${JSON.stringify(error)}`),
|
|
43
|
+
}))));
|
|
44
|
+
}));
|
|
@@ -37,7 +37,15 @@ export const initialReconciliationTabsState = {
|
|
|
37
37
|
},
|
|
38
38
|
};
|
|
39
39
|
export const initialActionFetchState = {
|
|
40
|
+
excludeAccountFetch: {
|
|
41
|
+
fetchState: 'Not-Started',
|
|
42
|
+
error: undefined,
|
|
43
|
+
},
|
|
40
44
|
excludeFetchById: {},
|
|
45
|
+
includeAccountFetch: {
|
|
46
|
+
fetchState: 'Not-Started',
|
|
47
|
+
error: undefined,
|
|
48
|
+
},
|
|
41
49
|
reconcileFetch: {
|
|
42
50
|
fetchState: 'Not-Started',
|
|
43
51
|
error: undefined,
|
|
@@ -51,6 +59,7 @@ export const initialActionFetchState = {
|
|
|
51
59
|
export const initialState = {
|
|
52
60
|
accountReconciliationRecordsBySelectedPeriod: {},
|
|
53
61
|
accountConnectionStatusByAccountID: {},
|
|
62
|
+
excludedAccountExclusionInfo: {},
|
|
54
63
|
fetchState: 'Not-Started',
|
|
55
64
|
error: undefined,
|
|
56
65
|
selectedTab: 'review',
|
|
@@ -64,6 +73,7 @@ export const initialState = {
|
|
|
64
73
|
scrollTop: 0,
|
|
65
74
|
},
|
|
66
75
|
},
|
|
76
|
+
excludedAccountIDs: [],
|
|
67
77
|
};
|
|
68
78
|
// Create slice with reducers
|
|
69
79
|
const expenseAutomationReconciliationView = createSlice({
|
|
@@ -132,7 +142,7 @@ const expenseAutomationReconciliationView = createSlice({
|
|
|
132
142
|
fetchReconciliationSuccess: {
|
|
133
143
|
reducer(draft, action) {
|
|
134
144
|
if (action.payload.accountId == null) {
|
|
135
|
-
updateAllReconciliation(draft, action.payload.reconciliation.accounts, action.payload.selectedPeriod, action.payload.reconciliation.reconciliation, action.payload.refreshViewInBackground);
|
|
145
|
+
updateAllReconciliation(draft, action.payload.reconciliation.accounts, action.payload.selectedPeriod, action.payload.reconciliation.reconciliation, action.payload.refreshViewInBackground, action.payload.reconciliation.excluded_accounts);
|
|
136
146
|
}
|
|
137
147
|
else if (action.payload.reconciliation.reconciliation.length > 0 &&
|
|
138
148
|
action.payload.reconciliation.accounts.length > 0) {
|
|
@@ -421,6 +431,116 @@ const expenseAutomationReconciliationView = createSlice({
|
|
|
421
431
|
...localData,
|
|
422
432
|
};
|
|
423
433
|
},
|
|
434
|
+
excludeAccountFromReconciliation: {
|
|
435
|
+
reducer(draft) {
|
|
436
|
+
draft.actionFetchState.excludeAccountFetch = {
|
|
437
|
+
fetchState: 'In-Progress',
|
|
438
|
+
error: undefined,
|
|
439
|
+
};
|
|
440
|
+
},
|
|
441
|
+
prepare(payload) {
|
|
442
|
+
return { payload };
|
|
443
|
+
},
|
|
444
|
+
},
|
|
445
|
+
excludeAccountFromReconciliationSuccess: (draft, action) => {
|
|
446
|
+
draft.actionFetchState.excludeAccountFetch = {
|
|
447
|
+
fetchState: 'Completed',
|
|
448
|
+
error: undefined,
|
|
449
|
+
};
|
|
450
|
+
const { account, selectedPeriod } = action.payload;
|
|
451
|
+
if (account != null) {
|
|
452
|
+
if (!draft.excludedAccountIDs.includes(account.account_id)) {
|
|
453
|
+
draft.excludedAccountIDs.push(account.account_id);
|
|
454
|
+
}
|
|
455
|
+
draft.excludedAccountExclusionInfo[account.account_id] = {
|
|
456
|
+
bankBalance: account.bank_balance != null
|
|
457
|
+
? {
|
|
458
|
+
amount: account.bank_balance,
|
|
459
|
+
currencyCode: account.currency_code ?? 'USD',
|
|
460
|
+
currencySymbol: account.currency_symbol ?? '$',
|
|
461
|
+
}
|
|
462
|
+
: undefined,
|
|
463
|
+
clearedBalance: account.cleared_balance != null
|
|
464
|
+
? {
|
|
465
|
+
amount: account.cleared_balance,
|
|
466
|
+
currencyCode: account.currency_code ?? 'USD',
|
|
467
|
+
currencySymbol: account.currency_symbol ?? '$',
|
|
468
|
+
}
|
|
469
|
+
: undefined,
|
|
470
|
+
variance: account.variance != null
|
|
471
|
+
? {
|
|
472
|
+
amount: account.variance,
|
|
473
|
+
currencyCode: account.currency_code ?? 'USD',
|
|
474
|
+
currencySymbol: account.currency_symbol ?? '$',
|
|
475
|
+
}
|
|
476
|
+
: undefined,
|
|
477
|
+
};
|
|
478
|
+
const monthYearPeriodId = toMonthYearPeriodId(selectedPeriod);
|
|
479
|
+
if (draft.accountReconciliationRecordsBySelectedPeriod[monthYearPeriodId]
|
|
480
|
+
?.accountIDs != null) {
|
|
481
|
+
draft.accountReconciliationRecordsBySelectedPeriod[monthYearPeriodId].accountIDs = draft.accountReconciliationRecordsBySelectedPeriod[monthYearPeriodId].accountIDs.filter((id) => id !== account.account_id);
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
},
|
|
485
|
+
excludeAccountFromReconciliationFailure: (draft, action) => {
|
|
486
|
+
draft.actionFetchState.excludeAccountFetch = {
|
|
487
|
+
fetchState: 'Error',
|
|
488
|
+
error: action.payload.error,
|
|
489
|
+
};
|
|
490
|
+
},
|
|
491
|
+
includeAccountInReconciliation: {
|
|
492
|
+
reducer(draft) {
|
|
493
|
+
draft.actionFetchState.includeAccountFetch = {
|
|
494
|
+
fetchState: 'In-Progress',
|
|
495
|
+
error: undefined,
|
|
496
|
+
};
|
|
497
|
+
},
|
|
498
|
+
prepare(payload) {
|
|
499
|
+
return { payload };
|
|
500
|
+
},
|
|
501
|
+
},
|
|
502
|
+
includeAccountInReconciliationSuccess: (draft, action) => {
|
|
503
|
+
draft.actionFetchState.includeAccountFetch = {
|
|
504
|
+
fetchState: 'Completed',
|
|
505
|
+
error: undefined,
|
|
506
|
+
};
|
|
507
|
+
const { reconciliation, selectedPeriod } = action.payload;
|
|
508
|
+
if (reconciliation == null) {
|
|
509
|
+
return;
|
|
510
|
+
}
|
|
511
|
+
const accountId = reconciliation.account_id;
|
|
512
|
+
draft.excludedAccountIDs = draft.excludedAccountIDs.filter((id) => id !== accountId);
|
|
513
|
+
delete draft.excludedAccountExclusionInfo[accountId];
|
|
514
|
+
const monthYearPeriodId = toMonthYearPeriodId(selectedPeriod);
|
|
515
|
+
const accountReconciliationRecords = draft.accountReconciliationRecordsBySelectedPeriod[monthYearPeriodId];
|
|
516
|
+
if (accountReconciliationRecords != null) {
|
|
517
|
+
if (!accountReconciliationRecords.accountIDs.includes(accountId)) {
|
|
518
|
+
accountReconciliationRecords.accountIDs.push(accountId);
|
|
519
|
+
}
|
|
520
|
+
accountReconciliationRecords.reconciliationByAccountID[accountId] = {
|
|
521
|
+
accountId,
|
|
522
|
+
reconciliationId: reconciliation.reconciliation_id ?? undefined,
|
|
523
|
+
transactionFetchState: { fetchState: 'Not-Started', error: undefined },
|
|
524
|
+
refreshStatus: { fetchState: 'Not-Started', error: undefined },
|
|
525
|
+
statementDeleteStatus: { fetchState: 'Not-Started', error: undefined },
|
|
526
|
+
statementUploadStatus: { fetchState: 'Not-Started', error: undefined },
|
|
527
|
+
statementUpdateStatus: { fetchState: 'Not-Started', error: undefined },
|
|
528
|
+
statementParseInProgress: reconciliation.bank_status.code === 'parsing',
|
|
529
|
+
localData: {},
|
|
530
|
+
};
|
|
531
|
+
}
|
|
532
|
+
draft.accountConnectionStatusByAccountID[accountId] = {
|
|
533
|
+
status: toBankStatusCodeType(reconciliation.bank_status.code),
|
|
534
|
+
connectionInProgress: false,
|
|
535
|
+
paymentAccountId: undefined,
|
|
536
|
+
};
|
|
537
|
+
},
|
|
538
|
+
includeAccountInReconciliationFailure: (draft, action) => {
|
|
539
|
+
draft.actionFetchState.includeAccountFetch = {
|
|
540
|
+
fetchState: 'Error',
|
|
541
|
+
error: action.payload.error,
|
|
542
|
+
};
|
|
543
|
+
},
|
|
424
544
|
updateStatementUploadChosen: (draft, action) => {
|
|
425
545
|
draft.statementUploadChosen = action.payload.statementUploadChosen;
|
|
426
546
|
},
|
|
@@ -430,10 +550,38 @@ const expenseAutomationReconciliationView = createSlice({
|
|
|
430
550
|
},
|
|
431
551
|
});
|
|
432
552
|
// Export actions
|
|
433
|
-
export const { fetchReconciliation, fetchReconciliationFailure, fetchReconciliationSuccess, saveReconciliationDetail, saveReconciliationDetailFailure, updateSelectedAccountId, setConnectionInProgressForAccount, setStatementParseInProgress, updateReconcileTabLocalData, updateReconcileTabListSortState, updateReconcileTabListScrollState, saveReconciliationDetailSuccess, updateSelectedTab, updateBalancesLocalData, initialiseLocalDataForSelectedAccountId, clearExpenseAutomationReconciliationView, updateSelectedDrawerAccountId, updateReviewTabSortState, initializeReconciliationReviewTabLocalData, updateReviewTabLocalData, saveReconciliationReview, updateSaveReconciliationReviewFetchStatus, updateReconListScrollPosition, updateAccountReconciliationLocalData, deleteAccountStatement, deleteAccountStatementSuccess, deleteAccountStatementFailure, uploadAccountStatement, uploadAccountStatementSuccess, uploadAccountStatementFailure, updateStatementUploadChosen, } = expenseAutomationReconciliationView.actions;
|
|
553
|
+
export const { fetchReconciliation, fetchReconciliationFailure, fetchReconciliationSuccess, saveReconciliationDetail, saveReconciliationDetailFailure, updateSelectedAccountId, setConnectionInProgressForAccount, setStatementParseInProgress, updateReconcileTabLocalData, updateReconcileTabListSortState, updateReconcileTabListScrollState, saveReconciliationDetailSuccess, updateSelectedTab, updateBalancesLocalData, initialiseLocalDataForSelectedAccountId, clearExpenseAutomationReconciliationView, updateSelectedDrawerAccountId, updateReviewTabSortState, initializeReconciliationReviewTabLocalData, updateReviewTabLocalData, saveReconciliationReview, updateSaveReconciliationReviewFetchStatus, updateReconListScrollPosition, updateAccountReconciliationLocalData, deleteAccountStatement, deleteAccountStatementSuccess, deleteAccountStatementFailure, excludeAccountFromReconciliation, excludeAccountFromReconciliationSuccess, excludeAccountFromReconciliationFailure, includeAccountInReconciliation, includeAccountInReconciliationSuccess, includeAccountInReconciliationFailure, uploadAccountStatement, uploadAccountStatementSuccess, uploadAccountStatementFailure, updateStatementUploadChosen, } = expenseAutomationReconciliationView.actions;
|
|
434
554
|
// Export reducer
|
|
435
555
|
export default expenseAutomationReconciliationView.reducer;
|
|
436
|
-
function updateAllReconciliation(draft, accounts, selectedPeriod, reconciliationData, refreshViewInBackground) {
|
|
556
|
+
function updateAllReconciliation(draft, accounts, selectedPeriod, reconciliationData, refreshViewInBackground, excludedAccounts) {
|
|
557
|
+
draft.excludedAccountIDs = excludedAccounts.map((ea) => ea.account_id);
|
|
558
|
+
draft.excludedAccountExclusionInfo = {};
|
|
559
|
+
excludedAccounts.forEach((ea) => {
|
|
560
|
+
const { exclusion_info } = ea;
|
|
561
|
+
draft.excludedAccountExclusionInfo[ea.account_id] = {
|
|
562
|
+
bankBalance: exclusion_info.bank_balance != null
|
|
563
|
+
? {
|
|
564
|
+
amount: exclusion_info.bank_balance,
|
|
565
|
+
currencyCode: ea.currency_code ?? 'USD',
|
|
566
|
+
currencySymbol: ea.currency_symbol ?? '$',
|
|
567
|
+
}
|
|
568
|
+
: undefined,
|
|
569
|
+
clearedBalance: exclusion_info.cleared_balance != null
|
|
570
|
+
? {
|
|
571
|
+
amount: exclusion_info.cleared_balance,
|
|
572
|
+
currencyCode: ea.currency_code ?? 'USD',
|
|
573
|
+
currencySymbol: ea.currency_symbol ?? '$',
|
|
574
|
+
}
|
|
575
|
+
: undefined,
|
|
576
|
+
variance: exclusion_info.variance != null
|
|
577
|
+
? {
|
|
578
|
+
amount: exclusion_info.variance,
|
|
579
|
+
currencyCode: ea.currency_code ?? 'USD',
|
|
580
|
+
currencySymbol: ea.currency_symbol ?? '$',
|
|
581
|
+
}
|
|
582
|
+
: undefined,
|
|
583
|
+
};
|
|
584
|
+
});
|
|
437
585
|
draft.accountReconciliationRecordsBySelectedPeriod[toMonthYearPeriodId(selectedPeriod)] = {
|
|
438
586
|
accountIDs: [],
|
|
439
587
|
reconciliationByAccountID: {},
|
|
@@ -90,6 +90,30 @@ export const getExpenseAutomationReconciliationView = createSelector((state) =>
|
|
|
90
90
|
totalVariancePercentage: undefined,
|
|
91
91
|
},
|
|
92
92
|
},
|
|
93
|
+
excludedAccountReconciliationByAccountID: {},
|
|
94
|
+
excludedAccountReconciliationBySectionID: {
|
|
95
|
+
assets: {
|
|
96
|
+
sectionId: 'assets',
|
|
97
|
+
accountIDs: [],
|
|
98
|
+
totalBankBalance: undefined,
|
|
99
|
+
totalClearedBalance: undefined,
|
|
100
|
+
totalReconciledBalance: undefined,
|
|
101
|
+
totalVariance: undefined,
|
|
102
|
+
totalVariancePercentage: undefined,
|
|
103
|
+
},
|
|
104
|
+
liabilities: {
|
|
105
|
+
sectionId: 'liabilities',
|
|
106
|
+
accountIDs: [],
|
|
107
|
+
totalBankBalance: undefined,
|
|
108
|
+
totalClearedBalance: undefined,
|
|
109
|
+
totalReconciledBalance: undefined,
|
|
110
|
+
totalVariance: undefined,
|
|
111
|
+
totalVariancePercentage: undefined,
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
excludeAccountFetchState: reconciliationViewState.actionFetchState.excludeAccountFetch,
|
|
115
|
+
includeAccountFetchState: reconciliationViewState.actionFetchState.includeAccountFetch,
|
|
116
|
+
excludedAccountIDs: reconciliationViewState.excludedAccountIDs,
|
|
93
117
|
};
|
|
94
118
|
}
|
|
95
119
|
const allAccountIDs = accountReconForMonthYearPeriod.accountIDs;
|
|
@@ -249,6 +273,46 @@ export const getExpenseAutomationReconciliationView = createSelector((state) =>
|
|
|
249
273
|
totalVariancePercentage: liabilityTotals.variancePercentage,
|
|
250
274
|
},
|
|
251
275
|
};
|
|
276
|
+
const bankAccountIdSet = new Set(uniqueBankAccounts.map((a) => a.accountId));
|
|
277
|
+
const creditCardIdSet = new Set(uniqueCreditCards.map((a) => a.accountId));
|
|
278
|
+
const excludedAssetAccountIDs = [];
|
|
279
|
+
const excludedLiabilityAccountIDs = [];
|
|
280
|
+
reconciliationViewState.excludedAccountIDs.forEach((accountID) => {
|
|
281
|
+
const isAsset = bankAccountIdSet.has(accountID);
|
|
282
|
+
const isLiability = creditCardIdSet.has(accountID);
|
|
283
|
+
if (!isAsset && !isLiability) {
|
|
284
|
+
return;
|
|
285
|
+
}
|
|
286
|
+
if (isAsset) {
|
|
287
|
+
excludedAssetAccountIDs.push(accountID);
|
|
288
|
+
}
|
|
289
|
+
else {
|
|
290
|
+
excludedLiabilityAccountIDs.push(accountID);
|
|
291
|
+
}
|
|
292
|
+
});
|
|
293
|
+
const excludedAccountReconciliationBySectionID = {
|
|
294
|
+
assets: {
|
|
295
|
+
sectionId: 'assets',
|
|
296
|
+
accountIDs: excludedAssetAccountIDs,
|
|
297
|
+
},
|
|
298
|
+
liabilities: {
|
|
299
|
+
sectionId: 'liabilities',
|
|
300
|
+
accountIDs: excludedLiabilityAccountIDs,
|
|
301
|
+
},
|
|
302
|
+
};
|
|
303
|
+
const excludedAccountReconciliationByAccountID = {};
|
|
304
|
+
const accountsInState = Object.values(accountState.accountsByKey);
|
|
305
|
+
const accountsInStateMap = new Map(accountsInState.map((a) => [a.accountId, a]));
|
|
306
|
+
reconciliationViewState.excludedAccountIDs.forEach((excludedAccountID) => {
|
|
307
|
+
const account = accountsInStateMap.get(excludedAccountID);
|
|
308
|
+
const exclusionInfo = reconciliationViewState.excludedAccountExclusionInfo[excludedAccountID];
|
|
309
|
+
if (account != null) {
|
|
310
|
+
excludedAccountReconciliationByAccountID[excludedAccountID] = {
|
|
311
|
+
...account,
|
|
312
|
+
...exclusionInfo,
|
|
313
|
+
};
|
|
314
|
+
}
|
|
315
|
+
});
|
|
252
316
|
const accountListNestedAccountHierarchy = getNestedAccountListHierarchy(accountListState, 'accountList');
|
|
253
317
|
const classListNestedAccountHierarchy = getNestedClassListHierarchy(classListState);
|
|
254
318
|
const accountsList = getAccountList(accountState, accountListState, 'accountList');
|
|
@@ -309,6 +373,11 @@ export const getExpenseAutomationReconciliationView = createSelector((state) =>
|
|
|
309
373
|
allClassList: allClasses,
|
|
310
374
|
reviewTabSelectedVendorByTransactionId,
|
|
311
375
|
reconListUIState: reconciliationViewState.reconListUIState,
|
|
376
|
+
excludedAccountReconciliationBySectionID,
|
|
377
|
+
excludedAccountReconciliationByAccountID,
|
|
378
|
+
excludeAccountFetchState: reconciliationViewState.actionFetchState.excludeAccountFetch,
|
|
379
|
+
includeAccountFetchState: reconciliationViewState.actionFetchState.includeAccountFetch,
|
|
380
|
+
excludedAccountIDs: reconciliationViewState.excludedAccountIDs,
|
|
312
381
|
};
|
|
313
382
|
});
|
|
314
383
|
export const isAccountReconReport = (reportId) => {
|
package/lib/esm/view/profitAndLossClassesView/profitAndLossClassesByClassHorizontalSelector.js
CHANGED
|
@@ -3,6 +3,7 @@ import { getSummationFreeRangeTotalBalance } from '../../commonStateTypes/coaBal
|
|
|
3
3
|
import { defaultCustomerCurrency } from '../../commonStateTypes/currencyHelper';
|
|
4
4
|
import { reduceFetchStateParallelTimeframes } from '../../commonStateTypes/reduceFetchState';
|
|
5
5
|
import { getSectionClassesViewReport } from '../../entity/sectionClassesViewV2/sectionClassesViewSelector';
|
|
6
|
+
import { HORIZONTAL_CLASS_TOTAL_BALANCE_ID, } from './profitAndLossClassesByClassHorizontalSelectorTypes';
|
|
6
7
|
import { enrichProfitAndLossByClassHorizontalReport } from './profitAndLossHorizontalEnrichment';
|
|
7
8
|
export const profitAndLossHorizontalIdsInOrder = [
|
|
8
9
|
'income',
|
|
@@ -303,6 +304,7 @@ function buildHeaderBalances(classColumns, timeframe, selectedPeriod, currency)
|
|
|
303
304
|
startDate,
|
|
304
305
|
type: 'default',
|
|
305
306
|
label: col.className,
|
|
307
|
+
id: col.classId,
|
|
306
308
|
}));
|
|
307
309
|
// Add a "Total" column
|
|
308
310
|
balances.push({
|
|
@@ -312,6 +314,7 @@ function buildHeaderBalances(classColumns, timeframe, selectedPeriod, currency)
|
|
|
312
314
|
startDate,
|
|
313
315
|
type: 'default',
|
|
314
316
|
label: 'Total',
|
|
317
|
+
id: HORIZONTAL_CLASS_TOTAL_BALANCE_ID,
|
|
315
318
|
});
|
|
316
319
|
return balances;
|
|
317
320
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import recordGet from 'lodash/get';
|
|
2
2
|
import { reduceFetchState } from '../../commonStateTypes/reduceFetchState';
|
|
3
|
+
import { getIsAccountingClassesEnabled } from '../../entity/tenant/tenantSelector';
|
|
3
4
|
import { toTransactionTypeStrict } from '../../entity/transaction/stateTypes/transactionType';
|
|
4
5
|
import { getTransactionWithCOT } from '../../entity/transaction/transactionHelper';
|
|
5
6
|
import { getSupportedTransactionById } from '../../entity/transaction/transactionSelector';
|
|
@@ -51,9 +52,14 @@ export const getTransactionDetail = (state, transactionId, fetchLinkedTransactio
|
|
|
51
52
|
}
|
|
52
53
|
}
|
|
53
54
|
const accountsList = getAccountList(accountState, accountListState, 'accountList');
|
|
54
|
-
const
|
|
55
|
+
const isAccountingClassesEnabled = getIsAccountingClassesEnabled(state);
|
|
56
|
+
const classList = isAccountingClassesEnabled
|
|
57
|
+
? getClassList(classState, classListState)
|
|
58
|
+
: { classes: [], nestedClassHierarchy: [], fetchState: 'Completed', error: undefined, version: 0 };
|
|
55
59
|
const accountsHierarchyList = getNestedAccountListHierarchy(accountListState, 'accountList');
|
|
56
|
-
const classHierarchyList =
|
|
60
|
+
const classHierarchyList = isAccountingClassesEnabled
|
|
61
|
+
? getNestedClassListHierarchy(classListState)
|
|
62
|
+
: [];
|
|
57
63
|
const transactionDetailAnyUpdateStatus = reduceUpdateFetchStates(transactionDetail);
|
|
58
64
|
const vendors = getVendorsByVendorIds(vendorState, vendorListState.vendorIds);
|
|
59
65
|
return {
|
|
@@ -71,6 +77,7 @@ export const getTransactionDetail = (state, transactionId, fetchLinkedTransactio
|
|
|
71
77
|
classHierarchyList,
|
|
72
78
|
accountsHierarchyList,
|
|
73
79
|
classList: classList,
|
|
80
|
+
isAccountingClassesEnabled,
|
|
74
81
|
isUpdateNotAllowed: transactionDetail?.isUpdateNotAllowed,
|
|
75
82
|
transactionDetailLocalData: transactionDetail?.transactionDetailLocalData ??
|
|
76
83
|
initialSupportedTransactionDetail.transactionDetailLocalData,
|
package/lib/index.d.ts
CHANGED
|
@@ -268,7 +268,7 @@ import { UploadStatementDocumentAIPayload, UploadStatementDocumentAIResponse } f
|
|
|
268
268
|
import { clearExpenseAutomationFluxAnalysisView, fetchFluxAnalysisView, reviewFluxAnalysisView, updateFluxAnalysisViewPageMetaData, updateFluxAnalysisViewUIState, updateOperatingExpensesIdsForReview, updateSelectedSectionIdsForReview } from './view/expenseAutomationView/reducers/fluxAnalysisViewReducer';
|
|
269
269
|
import { clearJeScheduleLocalData as clearExpenseAutomationJEScheduleLocalData, clearExpenseAutomationJESchedulesView, fetchJeSchedulesPage as fetchExpenseAutomationJESchedulesPage, ignoreRecommendedJeSchedule as ignoreExpenseAutomationJESchedule, initializeAccountSettingsView as initializeJeAccountSettingsView, initializeJeScheduleLocalData, removeJeScheduleTransactionKey, retryJeSchedule as retryExpenseAutomationJESchedule, saveAccountSettings as saveJeAccountSettings, saveAccountSettingsLocalData as saveJeAccountSettingsLocalData, updateJESchedulesUIState as updateExpenseAutomationJESchedulesUIState, updateJeScheduleLocalDataById, updateJeScheduleTransactionKeys } from './view/expenseAutomationView/reducers/jeSchedulesViewReducer';
|
|
270
270
|
import { acknowledgeBulkUploadConfirmMatchComplete, bulkUploadAutomatchingTimedOut, bulkUploadReceipts, bulkUploadReceiptsFailure, bulkUploadReceiptsSuccess, clearBulkUpload, clearManualSearchResults, clearMissingReceiptsTabNavigation, confirmBulkUploadMatch, confirmBulkUploadMatchFailure, confirmBulkUploadMatchSuccess, fetchBulkUploadBatchDetails, fetchBulkUploadBatchDetailsFailure, fetchBulkUploadBatchDetailsSuccess, fetchBulkUploadBatches, fetchBulkUploadBatchesFailure, fetchBulkUploadBatchesSuccess, fetchCompletedTransactions, fetchCompletedTransactionsFailure, fetchCompletedTransactionsSuccess, fetchMissingReceipts as fetchExpenseAutomationMissingReceipts, fetchMoreBatchDetails, fetchMoreBatchDetailsComplete, fetchMoreBatchDetailsFailure, markMissingReceiptAsDone as markExpenseAutomationMissingReceiptAsDone, pusherBatchStatusUpdate, requestMissingReceiptsTabNavigation, searchTransactionsForManualMatch, searchTransactionsForManualMatchFailure, searchTransactionsForManualMatchSuccess, setBulkUploadCompletedSubTab, setBulkUploadResultsTab, setBulkUploadSortConfig, storeBatchDetails, updateBulkUploadProgress, updateMissingReceiptUploadState as updateExpenseAutomationMissingReceiptUploadState, updateMissingReceiptsUIState as updateExpenseAutomationMissingReceiptsUIState, uploadMissingReceiptSuccess as uploadExpenseAutomationMissingReceiptSuccess } from './view/expenseAutomationView/reducers/missingReceiptsViewReducer';
|
|
271
|
-
import { deleteAccountStatement, fetchReconciliation as fetchReconciliationView, saveReconciliationDetail as saveExpenseAutomationReconciliationDetail, saveReconciliationReview as saveExpenseAutomationReconciliationReview, setConnectionInProgressForAccount as setConnectionInProgressForAccountReconciliation, setStatementParseInProgress, 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, updateStatementUploadChosen, uploadAccountStatement } from './view/expenseAutomationView/reducers/reconciliationViewReducer';
|
|
271
|
+
import { deleteAccountStatement, excludeAccountFromReconciliation, includeAccountInReconciliation, fetchReconciliation as fetchReconciliationView, saveReconciliationDetail as saveExpenseAutomationReconciliationDetail, saveReconciliationReview as saveExpenseAutomationReconciliationReview, setConnectionInProgressForAccount as setConnectionInProgressForAccountReconciliation, setStatementParseInProgress, 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, updateStatementUploadChosen, uploadAccountStatement } from './view/expenseAutomationView/reducers/reconciliationViewReducer';
|
|
272
272
|
import { backgroundRefetchReviewTab, clearExpenseAutomationTransactionsView, fetchTransactionCategorization, fetchTransactionCategorizationFailure, fetchTransactionCategorizationView, initializeTransactionCategorizationViewLocalData, markTransactionAsNotMiscategorized, saveTransactionCategorization, saveTransactionCategorizationLocalData, setAllItemsToCategoryClassInLocalDataForCategorization, setEntityRecommendationForLineIdsForCategorization, syncTransactionCategorizationFromDetailSave, updateCurrentSelectedTransactionCategorizationTab, updateSelectedCheckboxTransactionIds, updateSelectedCustomerForTransaction, updateSelectedTransactionId, updateSelectedVendorForTransaction, updateTransactionCategorization, updateTransactionCategorizationSaveStatus, updateTransactionCategorizationUIState, updateTransactionCategorizationUploadReceiptState, uploadTransactionCategorizationReceiptSuccess } from './view/expenseAutomationView/reducers/transactionsViewReducer';
|
|
273
273
|
import { ExpenseAutomationStepDetails, ExpenseAutomationViewSelector } from './view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes';
|
|
274
274
|
import { ExpenseAutomationFluxAnalysisViewSelector, FluxAnalysisOperatingExpenseView, FluxAnalysisSectionType, FluxAnalysisVendorView, FluxAnalysisViewSectionReport, FluxVendorAccountsAndClassesView } from './view/expenseAutomationView/selectorTypes/fluxAnalysisViewSelectorTypes';
|
|
@@ -276,7 +276,7 @@ import { JEAccountSettingsView } from './view/expenseAutomationView/selectorType
|
|
|
276
276
|
import { ExpenseAutomationJESchedulesViewSelector } from './view/expenseAutomationView/selectorTypes/jeSchedulesSelectorTypes';
|
|
277
277
|
import { BulkUploadSelectorData, ExpenseAutomationMissingReceiptsViewSelector } from './view/expenseAutomationView/selectorTypes/missingReceiptsSelectorTypes';
|
|
278
278
|
import { CompletedTransactionsSelectorData, ResolvedBatchDetails, ResolvedBatchFile, ResolvedCandidate } from './view/expenseAutomationView/selectorTypes/missingReceiptsSelectorTypes';
|
|
279
|
-
import { AccountReconSectionID, AccountReconciliationByAccount, AccountReconciliationBySection, ExpenseAutomationReconciliationViewSelector } from './view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes';
|
|
279
|
+
import { AccountReconSectionID, AccountReconciliationByAccount, AccountReconciliationBySection, ExcludedAccountReconciliation, ExpenseAutomationReconciliationViewSelector } from './view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes';
|
|
280
280
|
import { ExpenseAutomationTransactionViewSelector, TransactionReviewLocalDataSelectorView } from './view/expenseAutomationView/selectorTypes/transactionsViewSelectorTypes';
|
|
281
281
|
import { getExpenseAutomationFluxAnalysisView } from './view/expenseAutomationView/selectors/fluxAnalysisViewSelector';
|
|
282
282
|
import { JEScheduledTransactionWithFailedEntries } from './view/expenseAutomationView/selectors/jeSchedulesViewSelector';
|
|
@@ -286,7 +286,7 @@ import { FluxAnalysisActionType, FluxAnalysisReviewStatus, FluxAnalysisSortKey,
|
|
|
286
286
|
import { AccountSettingsLocalData, JEScheduleSortKey as ExpenseAutomationJEScheduleSortKey, JESchedulesViewUIState as ExpenseAutomationJESchedulesViewUIState, JEScheduleLocalData, toJEScheduleSortKey as toExpenseAutomationJEScheduleSortKey } from './view/expenseAutomationView/types/jeSchedulesViewState';
|
|
287
287
|
import { BATCH_FILE_STATUSES, BatchDetails, BatchFile, BatchFileStatus, BatchListItem, BatchStatus, BatchStatusValue, BatchSummary, BulkUploadPhase, BulkUploadResultsTab, BulkUploadSortKey, BulkUploadState, CandidateRef, CompletedSubTab, MatchCandidate, MatchSource, MissingReceiptsTab, isUnmatchedTabFileStatus, toBatchFileStatus, toBatchStatusValue, toBulkUploadPhase, toBulkUploadResultsTab, toBulkUploadSortKey, toCompletedSubTab, toMatchSource, toMissingReceiptsTab } from './view/expenseAutomationView/types/missingReceiptsViewState';
|
|
288
288
|
import { MissingReceiptsSortKey as ExpenseAutomationMissingReceiptsSortKey, MissingReceiptsViewState as ExpenseAutomationMissingReceiptsViewState, MissingReceiptsViewUIState as ExpenseAutomationMissingReceiptsViewUIState, toMissingReceiptsSortKey as toExpenseAutomationMissingReceiptsSortKey } from './view/expenseAutomationView/types/missingReceiptsViewState';
|
|
289
|
-
import { AccountReconciliationLocalData, ReconciliationViewTabType as ExpenseAutomationReconciliationViewTab, ReconReconcileSortKey, ReconReviewSortKey, ReconciliationReconcileTabLocalData, ReconciliationReviewTabLocalData, SaveReconcileDetailActionPayload as SaveExpenseAutomationReconciliationActionType, toReconciliationTabsType } from './view/expenseAutomationView/types/reconciliationViewState';
|
|
289
|
+
import { AccountReconciliationLocalData, ExcludeAccountFromReconciliationPayload, ReconciliationViewTabType as ExpenseAutomationReconciliationViewTab, ReconReconcileSortKey, ReconReviewSortKey, ReconciliationReconcileTabLocalData, ReconciliationReviewTabLocalData, SaveReconcileDetailActionPayload as SaveExpenseAutomationReconciliationActionType, toReconciliationTabsType } from './view/expenseAutomationView/types/reconciliationViewState';
|
|
290
290
|
import { TransactionsTab as ExpenseAutomationTransactionsTab, TransactionsViewState as ExpenseAutomationTransactionsViewState, TransactionsViewUIState as ExpenseAutomationTransactionsViewUIState, SupportedTransactionCategorization, TransactionCategorizationLineItemData, TransactionReviewLocalData, TransactionsSortKey, TransactionsTab, toTransactionsTabKey as toExpenseAutomationTransactionsTabKey, toTransactionsSortKey } from './view/expenseAutomationView/types/transactionsViewState';
|
|
291
291
|
import downloadFile from './view/fileView/fileDownloadHelpers';
|
|
292
292
|
import uploadFile, { AuthParams, AuthParamsPayload, FileMetadataPayload } from './view/fileView/fileUploadHelpers';
|
|
@@ -628,7 +628,7 @@ export { TransactionsOrder, COABalancesSliceOrder, EntityOrder, Section, Section
|
|
|
628
628
|
export { ClassesViewSelectorReportV2 };
|
|
629
629
|
export { BalancesTimeseries, TrendTimeseries, BalanceKind };
|
|
630
630
|
export { fetchMonthEndCloseChecks, fetchMonthClosePerformanceTrend, MonthClosePerformanceTrend, MonthEndCloseCheck, getMonthEndCloseChecksViewByTenantId, MonthEndCloseChecksView, MonthEndCloseCheckFrequency, MonthCloseCheckMetrics, ALL_MONTH_END_CLOSE_CHECKS_FREQUENCY, MonthEndAuditSummary, };
|
|
631
|
-
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, MatchCandidate, MatchSource, MissingReceiptsTab, toBatchFileStatus, toBatchStatusValue, toBulkUploadPhase, toBulkUploadResultsTab, toBulkUploadSortKey, toCompletedSubTab, toMatchSource, toMissingReceiptsTab, ResolvedBatchFile, ResolvedBatchDetails, ResolvedCandidate, ExpenseAutomationJEScheduleSortKey, ExpenseAutomationJESchedulesViewUIState, toExpenseAutomationJEScheduleSortKey, getExpenseAutomationView, toExpenseAutomationMissingReceiptsSortKey, toExpenseAutomationTransactionsTabKey, toExpenseAutomationViewType, uploadExpenseAutomationMissingReceiptSuccess, markExpenseAutomationMissingReceiptAsDone, fetchAllExpenseAutomationTabs, refreshExpenseAutomationCurrentTab, updateCurrentSelectedTransactionCategorizationTab, fetchExpenseAutomationMissingReceipts, bulkUploadReceipts, bulkUploadAutomatchingTimedOut, bulkUploadReceiptsSuccess, bulkUploadReceiptsFailure, updateBulkUploadProgress, pusherBatchStatusUpdate, requestMissingReceiptsTabNavigation, clearMissingReceiptsTabNavigation, fetchBulkUploadBatchDetails, fetchBulkUploadBatchDetailsSuccess, fetchBulkUploadBatchDetailsFailure, storeBatchDetails, fetchMoreBatchDetails, fetchMoreBatchDetailsComplete, fetchMoreBatchDetailsFailure, fetchBulkUploadBatches, fetchBulkUploadBatchesSuccess, fetchBulkUploadBatchesFailure, confirmBulkUploadMatch, confirmBulkUploadMatchSuccess, confirmBulkUploadMatchFailure, setBulkUploadResultsTab, setBulkUploadCompletedSubTab, setBulkUploadSortConfig, 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, ReconReconcileSortKey, ReconciliationReconcileTabLocalData, FluxAnalysisReviewStatus, updateFluxAnalysisViewUIState, FluxAnalysisViewUIState, updateFluxAnalysisViewPageMetaData, MAX_SELECTION_LIMIT, checkIfAllLineItemsAreCategoryClassFilled, getLineItemsByTransactionIdsFromLocalData, isAnyItemWithUncategorizedExpenseAccount, SaveExpenseAutomationReconciliationActionType, saveExpenseAutomationReconciliationDetail, updateExpenseAutomationReconcileTabListScrollState, updateExpenseAutomationReconReviewTabListSortState, updateExpenseAutomationReconcileTabListSortState, updateExpenseAutomationReconcileTabLocalData, updateExpenseAutomationAccountReconciliationSelectedTab, updateExpenseAutomationAccountReconciliationSelectedAccountId, ExpenseAutomationReconciliationViewSelector, getExpenseAutomationReconciliationView, AccountReconciliationBySection, fetchReconciliationView, uploadAccountStatementIntoDocumentAI, UploadStatementDocumentAIResponse, updateExpenseAutomationReconListScrollPosition, setConnectionInProgressForAccountReconciliation, AccountReconciliationByAccount, AccountReconciliationEntity, getAccountReconByAccountIdAndSelectedPeriod, ExpenseAutomationReconciliationViewTab, toReconciliationTabsType, isAccountReconReport, ReconReviewSortKey, AccountReconSectionID, ReconciliationReviewTabLocalData, TransactionsToReview, RecommendedActionCodeType, ReconciliationStatusCodeType, BalanceDataStatusCodeType, updateExpenseAutomationReconReviewTabLocalData, updateExpenseAutomationSelectedDrawerAccountId, saveExpenseAutomationReconciliationReview, updateExpenseAutomationAccountReconciliationLocalData, BankStatusCodeType, ReconciliationAccountSourceType, toReconciliationAccountSource, StatementStatusCodeType, AccountReconciliationLocalData, StatementDataStatusCodeType, deleteAccountStatement, uploadAccountStatement, UploadStatementDocumentAIPayload, updateStatementUploadChosen, isReviewTransactionBankTransferType, isReviewTransactionBillPaymentType, isReviewTransactionCreditCardPaymentType, isReviewTransactionDepositType, isReviewTransactionExpenseType, isReviewTransactionCreditCardCreditType, setStatementParseInProgress, };
|
|
631
|
+
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, MatchCandidate, MatchSource, MissingReceiptsTab, toBatchFileStatus, toBatchStatusValue, toBulkUploadPhase, toBulkUploadResultsTab, toBulkUploadSortKey, toCompletedSubTab, toMatchSource, toMissingReceiptsTab, ResolvedBatchFile, ResolvedBatchDetails, ResolvedCandidate, ExpenseAutomationJEScheduleSortKey, ExpenseAutomationJESchedulesViewUIState, toExpenseAutomationJEScheduleSortKey, getExpenseAutomationView, toExpenseAutomationMissingReceiptsSortKey, toExpenseAutomationTransactionsTabKey, toExpenseAutomationViewType, uploadExpenseAutomationMissingReceiptSuccess, markExpenseAutomationMissingReceiptAsDone, fetchAllExpenseAutomationTabs, refreshExpenseAutomationCurrentTab, updateCurrentSelectedTransactionCategorizationTab, fetchExpenseAutomationMissingReceipts, bulkUploadReceipts, bulkUploadAutomatchingTimedOut, bulkUploadReceiptsSuccess, bulkUploadReceiptsFailure, updateBulkUploadProgress, pusherBatchStatusUpdate, requestMissingReceiptsTabNavigation, clearMissingReceiptsTabNavigation, fetchBulkUploadBatchDetails, fetchBulkUploadBatchDetailsSuccess, fetchBulkUploadBatchDetailsFailure, storeBatchDetails, fetchMoreBatchDetails, fetchMoreBatchDetailsComplete, fetchMoreBatchDetailsFailure, fetchBulkUploadBatches, fetchBulkUploadBatchesSuccess, fetchBulkUploadBatchesFailure, confirmBulkUploadMatch, confirmBulkUploadMatchSuccess, confirmBulkUploadMatchFailure, setBulkUploadResultsTab, setBulkUploadCompletedSubTab, setBulkUploadSortConfig, 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, ReconReconcileSortKey, ReconciliationReconcileTabLocalData, FluxAnalysisReviewStatus, updateFluxAnalysisViewUIState, FluxAnalysisViewUIState, updateFluxAnalysisViewPageMetaData, MAX_SELECTION_LIMIT, checkIfAllLineItemsAreCategoryClassFilled, getLineItemsByTransactionIdsFromLocalData, isAnyItemWithUncategorizedExpenseAccount, SaveExpenseAutomationReconciliationActionType, ExcludeAccountFromReconciliationPayload, excludeAccountFromReconciliation, includeAccountInReconciliation, saveExpenseAutomationReconciliationDetail, updateExpenseAutomationReconcileTabListScrollState, updateExpenseAutomationReconReviewTabListSortState, updateExpenseAutomationReconcileTabListSortState, updateExpenseAutomationReconcileTabLocalData, updateExpenseAutomationAccountReconciliationSelectedTab, updateExpenseAutomationAccountReconciliationSelectedAccountId, ExpenseAutomationReconciliationViewSelector, ExcludedAccountReconciliation, getExpenseAutomationReconciliationView, AccountReconciliationBySection, fetchReconciliationView, uploadAccountStatementIntoDocumentAI, UploadStatementDocumentAIResponse, updateExpenseAutomationReconListScrollPosition, setConnectionInProgressForAccountReconciliation, AccountReconciliationByAccount, AccountReconciliationEntity, getAccountReconByAccountIdAndSelectedPeriod, ExpenseAutomationReconciliationViewTab, toReconciliationTabsType, isAccountReconReport, ReconReviewSortKey, AccountReconSectionID, ReconciliationReviewTabLocalData, TransactionsToReview, RecommendedActionCodeType, ReconciliationStatusCodeType, BalanceDataStatusCodeType, updateExpenseAutomationReconReviewTabLocalData, updateExpenseAutomationSelectedDrawerAccountId, saveExpenseAutomationReconciliationReview, updateExpenseAutomationAccountReconciliationLocalData, BankStatusCodeType, ReconciliationAccountSourceType, toReconciliationAccountSource, StatementStatusCodeType, AccountReconciliationLocalData, StatementDataStatusCodeType, deleteAccountStatement, uploadAccountStatement, UploadStatementDocumentAIPayload, updateStatementUploadChosen, isReviewTransactionBankTransferType, isReviewTransactionBillPaymentType, isReviewTransactionCreditCardPaymentType, isReviewTransactionDepositType, isReviewTransactionExpenseType, isReviewTransactionCreditCardCreditType, setStatementParseInProgress, };
|
|
632
632
|
export { JEScheduleLocalData };
|
|
633
633
|
export { ExpenseAutomationJESchedulesViewSelector, JEAccountSettingsView, JEScheduledTransactionWithFailedEntries, };
|
|
634
634
|
export { fetchTransactionCategorization, fetchTransactionCategorizationView, updateTransactionCategorizationUIState, updateSelectedCheckboxTransactionIds, setEntityRecommendationForLineIdsForCategorization, initializeTransactionCategorizationViewLocalData, setAllItemsToCategoryClassInLocalDataForCategorization, saveTransactionCategorizationLocalData, fetchTransactionCategorizationFailure, saveTransactionCategorization, updateTransactionCategorization, updateTransactionCategorizationSaveStatus, markTransactionAsNotMiscategorized, updateSelectedVendorForTransaction, updateSelectedCustomerForTransaction, updateSelectedTransactionId, syncTransactionCategorizationFromDetailSave, backgroundRefetchReviewTab, clearExpenseAutomationTransactionsView, TransactionsSortKey, toTransactionsSortKey, TransactionsTab, TransactionCategorizationLineItemData, TransactionReviewLocalData, SupportedTransactionCategorization, ExpenseAutomationTransactionsViewState, ExpenseAutomationTransactionsViewUIState, ExpenseAutomationTransactionViewSelector, TransactionReviewLocalDataSelectorView, };
|