@zeniai/client-epic-state 4.15.16 → 4.15.17
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/timePeriod.d.ts +1 -1
- package/lib/commonStateTypes/timePeriod.js +2 -2
- package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +2 -2
- package/lib/commonStateTypes/viewAndReport/viewAndReport.js +1 -0
- package/lib/configureStore.js +2 -1
- package/lib/entity/account/accountState.d.ts +1 -1
- package/lib/entity/accountGroup/accountGroupState.d.ts +1 -1
- package/lib/entity/accountRecon/accountReconPayload.d.ts +70 -0
- package/lib/entity/accountRecon/accountReconPayload.js +125 -0
- package/lib/entity/accountRecon/accountReconReducer.d.ts +16 -0
- package/lib/entity/accountRecon/accountReconReducer.js +71 -0
- package/lib/entity/accountRecon/accountReconSelector.d.ts +28 -0
- package/lib/entity/accountRecon/accountReconSelector.js +44 -0
- package/lib/entity/accountRecon/accountReconState.d.ts +70 -0
- package/lib/entity/accountRecon/accountReconState.js +28 -0
- 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/snackbar/snackbarTypes.d.ts +1 -1
- package/lib/entity/snackbar/snackbarTypes.js +4 -0
- package/lib/entity/task/taskState.d.ts +1 -1
- package/lib/entity/tenant/clearAllEpic.d.ts +4 -2
- package/lib/entity/tenant/clearAllEpic.js +4 -0
- package/lib/entity/tenant/tenantReducer.d.ts +1 -1
- package/lib/entity/tenant/tenantReducer.js +7 -2
- package/lib/entity/transaction/payloadTypes/reconciliationTransactionPayloads.d.ts +35 -0
- package/lib/entity/transaction/payloadTypes/reconciliationTransactionPayloads.js +53 -0
- package/lib/entity/transaction/stateTypes/reconciliationTransaction.d.ts +32 -0
- package/lib/entity/transaction/stateTypes/reconciliationTransaction.js +10 -0
- package/lib/entity/transaction/stateTypes/transaction.d.ts +1 -1
- package/lib/entity/transaction/stateTypes/transactionType.d.ts +1 -1
- package/lib/entity/transaction/stateTypes/transactionType.js +1 -0
- package/lib/entity/transaction/transactionReducer.d.ts +17 -0
- package/lib/entity/transaction/transactionReducer.js +47 -2
- package/lib/entity/transaction/transactionSelector.d.ts +2 -0
- package/lib/entity/transaction/transactionSelector.js +5 -0
- package/lib/entity/transaction/transactionState.d.ts +2 -0
- package/lib/entity/vendorExpense/vendorExpenseSelector.d.ts +2 -2
- package/lib/epic.d.ts +6 -1
- package/lib/epic.js +6 -1
- package/lib/index.d.ts +14 -6
- package/lib/index.js +52 -27
- package/lib/init.js +1 -1
- package/lib/reducer.d.ts +7 -1
- package/lib/reducer.js +6 -0
- 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/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewReducer.d.ts +2 -2
- package/lib/view/dashboard/dashboardReducer.d.ts +2 -2
- package/lib/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.d.ts +15 -0
- package/lib/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.js +118 -0
- package/lib/view/expenseAutomationView/epics/accountRecon/initialiseLocalDataForSelectedAccountIdEpic.d.ts +10 -0
- package/lib/view/expenseAutomationView/epics/accountRecon/initialiseLocalDataForSelectedAccountIdEpic.js +49 -0
- package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationDetailEpic.d.ts +14 -0
- package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationDetailEpic.js +169 -0
- package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationReviewEpic.d.ts +9 -0
- package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationReviewEpic.js +154 -0
- package/lib/view/expenseAutomationView/epics/accountRecon/updateReconcileTabLocalDataEpic.d.ts +6 -0
- package/lib/view/expenseAutomationView/epics/accountRecon/updateReconcileTabLocalDataEpic.js +110 -0
- package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.d.ts +2 -1
- package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.js +9 -0
- package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.d.ts +2 -1
- package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.js +14 -0
- package/lib/view/expenseAutomationView/expenseAutomationViewReducer.d.ts +2 -2
- package/lib/view/expenseAutomationView/expenseAutomationViewSelector.js +17 -2
- package/lib/view/expenseAutomationView/expenseAutomationViewState.d.ts +2 -2
- package/lib/view/expenseAutomationView/expenseAutomationViewState.js +1 -1
- package/lib/view/expenseAutomationView/helpers/reconciliationHelpers.d.ts +7 -0
- package/lib/view/expenseAutomationView/helpers/reconciliationHelpers.js +18 -0
- package/lib/view/expenseAutomationView/payload/reconciliationPayload.d.ts +25 -0
- package/lib/view/expenseAutomationView/payload/reconciliationPayload.js +51 -0
- package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.d.ts +66 -0
- package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.js +375 -0
- package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.d.ts +2 -0
- package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.js +1 -1
- package/lib/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.d.ts +50 -0
- package/lib/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.js +7 -0
- package/lib/view/expenseAutomationView/selectors/reconciliationViewSelector.d.ts +5 -0
- package/lib/view/expenseAutomationView/selectors/reconciliationViewSelector.js +249 -0
- package/lib/view/expenseAutomationView/types/reconciliationViewState.d.ts +102 -0
- package/lib/view/expenseAutomationView/types/reconciliationViewState.js +38 -0
- package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
- package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +2 -2
- package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +1 -1
- package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +1 -1
- package/lib/view/spendManagement/plaidAccount/epic/plaidConnection/establishPlaidConnectionEpic.js +11 -3
- package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.d.ts +2 -1
- package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.js +3 -1
- package/lib/view/spendManagement/plaidAccount/plaidAccountViewState.d.ts +1 -1
- package/lib/view/tasksCard/tasksCardSelector.d.ts +1 -1
- package/lib/view/topEx/topExSelector.d.ts +1 -1
- package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewState.d.ts +1 -1
- package/lib/zeniAPI.d.ts +1 -0
- package/package.json +2 -1
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateReconcileTabLocalDataEpic = void 0;
|
|
4
|
+
const rxjs_1 = require("rxjs");
|
|
5
|
+
const operators_1 = require("rxjs/operators");
|
|
6
|
+
const accountReconSelector_1 = require("../../../../entity/accountRecon/accountReconSelector");
|
|
7
|
+
const tenantSelector_1 = require("../../../../entity/tenant/tenantSelector");
|
|
8
|
+
const transactionSelector_1 = require("../../../../entity/transaction/transactionSelector");
|
|
9
|
+
const reconciliationViewReducer_1 = require("../../reducers/reconciliationViewReducer");
|
|
10
|
+
const updateReconcileTabLocalDataEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(reconciliationViewReducer_1.updateReconcileTabLocalData.match), (0, operators_1.mergeMap)((action) => {
|
|
11
|
+
var _a, _b;
|
|
12
|
+
const state = state$.value;
|
|
13
|
+
const { transactionState, expenseAutomationReconciliationViewState, expenseAutomationViewState: { selectedPeriodByTenantId }, } = state;
|
|
14
|
+
const { selectedAccountId } = expenseAutomationReconciliationViewState;
|
|
15
|
+
const currentTenant = (0, tenantSelector_1.getCurrentTenant)(state);
|
|
16
|
+
const selectedPeriod = selectedPeriodByTenantId[currentTenant.tenantId];
|
|
17
|
+
const actions = [];
|
|
18
|
+
const { selectedTransactionIds } = action.payload;
|
|
19
|
+
if (selectedAccountId != null) {
|
|
20
|
+
const transactions = [];
|
|
21
|
+
const reconEntity = (0, accountReconSelector_1.getAccountReconByAccountIdAndSelectedPeriod)(state, selectedAccountId, selectedPeriod);
|
|
22
|
+
if (reconEntity == null) {
|
|
23
|
+
return (0, rxjs_1.from)(actions);
|
|
24
|
+
}
|
|
25
|
+
const initialClearedBalance = (_a = reconEntity.initialClearedBalance) !== null && _a !== void 0 ? _a : {
|
|
26
|
+
amount: 0,
|
|
27
|
+
currencyCode: reconEntity.currency.currencyCode,
|
|
28
|
+
currencySymbol: reconEntity.currency.currencySymbol,
|
|
29
|
+
};
|
|
30
|
+
const bankBalance = (_b = reconEntity.balance) !== null && _b !== void 0 ? _b : {
|
|
31
|
+
amount: 0,
|
|
32
|
+
currencyCode: reconEntity.currency.currencyCode,
|
|
33
|
+
currencySymbol: reconEntity.currency.currencySymbol,
|
|
34
|
+
};
|
|
35
|
+
selectedTransactionIds.forEach((transactionId) => {
|
|
36
|
+
const transaction = (0, transactionSelector_1.getMatchedTransactionById)(transactionState, transactionId);
|
|
37
|
+
if (transaction != null) {
|
|
38
|
+
transactions.push(transaction);
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
const updatedClearedBalance = calculateUpdatedClearedBalance(transactions, initialClearedBalance);
|
|
42
|
+
const { variance, variancePercentage } = calculateVariance(updatedClearedBalance, bankBalance);
|
|
43
|
+
const currency = {
|
|
44
|
+
currencyCode: bankBalance.currencyCode,
|
|
45
|
+
currencySymbol: bankBalance.currencySymbol,
|
|
46
|
+
};
|
|
47
|
+
const depositsLocalData = calculateSplitAmounts(transactions, 'credit', currency);
|
|
48
|
+
const paymentLocalData = calculateSplitAmounts(transactions, 'debit', currency);
|
|
49
|
+
actions.push((0, reconciliationViewReducer_1.updateBalancesLocalData)({
|
|
50
|
+
clearedBalance: updatedClearedBalance,
|
|
51
|
+
variance: variance,
|
|
52
|
+
variancePercentage: variancePercentage,
|
|
53
|
+
deposits: depositsLocalData,
|
|
54
|
+
payments: paymentLocalData,
|
|
55
|
+
}));
|
|
56
|
+
}
|
|
57
|
+
return (0, rxjs_1.from)(actions);
|
|
58
|
+
}));
|
|
59
|
+
exports.updateReconcileTabLocalDataEpic = updateReconcileTabLocalDataEpic;
|
|
60
|
+
function calculateUpdatedClearedBalance(transactions, initialClearedBalance) {
|
|
61
|
+
// Reduce the transactions to calculate the updated cleared balance
|
|
62
|
+
const updatedClearedBalance = transactions.reduce((updatedBalance, transaction) => {
|
|
63
|
+
if (transaction.transactionDirection === 'debit') {
|
|
64
|
+
return updatedBalance - transaction.amount.amount; // Deduct for debit
|
|
65
|
+
}
|
|
66
|
+
else if (transaction.transactionDirection === 'credit') {
|
|
67
|
+
return updatedBalance + transaction.amount.amount; // Add for credit
|
|
68
|
+
}
|
|
69
|
+
return updatedBalance; // Return unchanged balance for other cases
|
|
70
|
+
}, initialClearedBalance.amount);
|
|
71
|
+
return {
|
|
72
|
+
amount: updatedClearedBalance,
|
|
73
|
+
currencyCode: initialClearedBalance.currencyCode,
|
|
74
|
+
currencySymbol: initialClearedBalance.currencySymbol,
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
function calculateSplitAmounts(transactions, transactionDirection, currency) {
|
|
78
|
+
if (transactions.length === 0) {
|
|
79
|
+
return {
|
|
80
|
+
count: 0,
|
|
81
|
+
totalAmount: Object.assign({ amount: 0 }, currency),
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
let count = 0;
|
|
85
|
+
let totalAmount = 0;
|
|
86
|
+
transactions.forEach((transaction) => {
|
|
87
|
+
if (transaction.transactionDirection === transactionDirection) {
|
|
88
|
+
count = count + 1;
|
|
89
|
+
totalAmount = totalAmount + transaction.amount.amount;
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
return {
|
|
93
|
+
count,
|
|
94
|
+
totalAmount: Object.assign({ amount: totalAmount }, currency),
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
function calculateVariance(updatedClearedBalance, bankBalance) {
|
|
98
|
+
const variance = Math.abs(bankBalance.amount - updatedClearedBalance.amount);
|
|
99
|
+
const variancePercent = bankBalance.amount != 0
|
|
100
|
+
? parseFloat(((variance / bankBalance.amount) * 100).toFixed(2))
|
|
101
|
+
: 0;
|
|
102
|
+
return {
|
|
103
|
+
variance: {
|
|
104
|
+
amount: variance,
|
|
105
|
+
currencyCode: bankBalance.currencyCode,
|
|
106
|
+
currencySymbol: bankBalance.currencySymbol,
|
|
107
|
+
},
|
|
108
|
+
variancePercentage: variancePercent,
|
|
109
|
+
};
|
|
110
|
+
}
|
|
@@ -6,6 +6,7 @@ import { fetchAllExpenseAutomationTabs } from '../../expenseAutomationViewReduce
|
|
|
6
6
|
import { fetchFluxAnalysisView } from '../../reducers/fluxAnalysisViewReducer';
|
|
7
7
|
import { fetchJeSchedulesPage } from '../../reducers/jeSchedulesViewReducer';
|
|
8
8
|
import { fetchMissingReceipts } from '../../reducers/missingReceiptsViewReducer';
|
|
9
|
+
import { fetchReconciliation } from '../../reducers/reconciliationViewReducer';
|
|
9
10
|
import { fetchTransactionCategorizationView } from '../../reducers/transactionsViewReducer';
|
|
10
|
-
export type ActionType = ReturnType<typeof fetchAllExpenseAutomationTabs> | ReturnType<typeof fetchMissingReceipts> | ReturnType<typeof fetchMonthEndCloseChecks> | ReturnType<typeof fetchFluxAnalysisView> | ReturnType<typeof fetchJeSchedulesPage> | ReturnType<typeof fetchTransactionCategorizationView>;
|
|
11
|
+
export type ActionType = ReturnType<typeof fetchAllExpenseAutomationTabs> | ReturnType<typeof fetchMissingReceipts> | ReturnType<typeof fetchMonthEndCloseChecks> | ReturnType<typeof fetchFluxAnalysisView> | ReturnType<typeof fetchJeSchedulesPage> | ReturnType<typeof fetchReconciliation> | ReturnType<typeof fetchTransactionCategorizationView>;
|
|
11
12
|
export declare const fetchAllExpenseAutomationTabsEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>) => Observable<ActionType>;
|
|
@@ -9,6 +9,7 @@ const expenseAutomationViewReducer_1 = require("../../expenseAutomationViewReduc
|
|
|
9
9
|
const fluxAnalysisViewReducer_1 = require("../../reducers/fluxAnalysisViewReducer");
|
|
10
10
|
const jeSchedulesViewReducer_1 = require("../../reducers/jeSchedulesViewReducer");
|
|
11
11
|
const missingReceiptsViewReducer_1 = require("../../reducers/missingReceiptsViewReducer");
|
|
12
|
+
const reconciliationViewReducer_1 = require("../../reducers/reconciliationViewReducer");
|
|
12
13
|
const transactionsViewReducer_1 = require("../../reducers/transactionsViewReducer");
|
|
13
14
|
const fetchAllExpenseAutomationTabsEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(expenseAutomationViewReducer_1.fetchAllExpenseAutomationTabs.match), (0, operators_1.switchMap)((action) => {
|
|
14
15
|
const { cacheOverride, refreshViewInBackground } = action.payload;
|
|
@@ -36,6 +37,7 @@ const fetchAllExpenseAutomationTabsEpic = (actions$, state$) => actions$.pipe((0
|
|
|
36
37
|
}, cacheOverride, refreshViewInBackground),
|
|
37
38
|
(0, fluxAnalysisViewReducer_1.fetchFluxAnalysisView)(selectedPeriod, cacheOverride, refreshViewInBackground, null),
|
|
38
39
|
(0, jeSchedulesViewReducer_1.fetchJeSchedulesPage)({ start: timePeriodStart, end: timePeriodEnd }, cacheOverride),
|
|
40
|
+
(0, reconciliationViewReducer_1.fetchReconciliation)(selectedPeriod, undefined, cacheOverride, refreshViewInBackground),
|
|
39
41
|
]);
|
|
40
42
|
}
|
|
41
43
|
else {
|
|
@@ -68,6 +70,13 @@ const fetchAllExpenseAutomationTabsEpic = (actions$, state$) => actions$.pipe((0
|
|
|
68
70
|
null)) {
|
|
69
71
|
fetchActions.push((0, jeSchedulesViewReducer_1.fetchJeSchedulesPage)({ start: timePeriodStart, end: timePeriodEnd }, cacheOverride));
|
|
70
72
|
}
|
|
73
|
+
if (state.expenseAutomationReconciliationViewState.fetchState !==
|
|
74
|
+
'In-Progress' &&
|
|
75
|
+
state.expenseAutomationReconciliationViewState
|
|
76
|
+
.accountReconciliationRecordsBySelectedPeriod[monthYearPeriodId] ==
|
|
77
|
+
null) {
|
|
78
|
+
fetchActions.push((0, reconciliationViewReducer_1.fetchReconciliation)(selectedPeriod, undefined, cacheOverride, refreshViewInBackground));
|
|
79
|
+
}
|
|
71
80
|
if (state.expenseAutomationTransactionsViewState
|
|
72
81
|
.transactionCategorizationView[selectedTransactionCategorizationTab]
|
|
73
82
|
.fetchState !== 'In-Progress' &&
|
package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { refreshExpenseAutomationCurrentTab } from '../../expenseAutomationViewR
|
|
|
7
7
|
import { fetchFluxAnalysisView } from '../../reducers/fluxAnalysisViewReducer';
|
|
8
8
|
import { fetchJeSchedulesPage } from '../../reducers/jeSchedulesViewReducer';
|
|
9
9
|
import { fetchMissingReceipts } from '../../reducers/missingReceiptsViewReducer';
|
|
10
|
+
import { fetchReconciliation } from '../../reducers/reconciliationViewReducer';
|
|
10
11
|
import { fetchTransactionCategorizationView } from '../../reducers/transactionsViewReducer';
|
|
11
|
-
export type ActionType = ReturnType<typeof refreshExpenseAutomationCurrentTab> | ReturnType<typeof fetchCompanyMonthEndReportView> | ReturnType<typeof fetchCompanyMonthEndReportTemplates> | ReturnType<typeof fetchMissingReceipts> | ReturnType<typeof fetchMonthEndCloseChecks> | ReturnType<typeof fetchFluxAnalysisView> | ReturnType<typeof fetchJeSchedulesPage> | ReturnType<typeof fetchTransactionCategorizationView>;
|
|
12
|
+
export type ActionType = ReturnType<typeof refreshExpenseAutomationCurrentTab> | ReturnType<typeof fetchCompanyMonthEndReportView> | ReturnType<typeof fetchCompanyMonthEndReportTemplates> | ReturnType<typeof fetchMissingReceipts> | ReturnType<typeof fetchMonthEndCloseChecks> | ReturnType<typeof fetchFluxAnalysisView> | ReturnType<typeof fetchReconciliation> | ReturnType<typeof fetchJeSchedulesPage> | ReturnType<typeof fetchTransactionCategorizationView>;
|
|
12
13
|
export declare const refreshExpenseAutomationCurrentTabEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>) => Observable<ActionType>;
|
package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.js
CHANGED
|
@@ -10,6 +10,7 @@ const expenseAutomationViewReducer_1 = require("../../expenseAutomationViewReduc
|
|
|
10
10
|
const fluxAnalysisViewReducer_1 = require("../../reducers/fluxAnalysisViewReducer");
|
|
11
11
|
const jeSchedulesViewReducer_1 = require("../../reducers/jeSchedulesViewReducer");
|
|
12
12
|
const missingReceiptsViewReducer_1 = require("../../reducers/missingReceiptsViewReducer");
|
|
13
|
+
const reconciliationViewReducer_1 = require("../../reducers/reconciliationViewReducer");
|
|
13
14
|
const transactionsViewReducer_1 = require("../../reducers/transactionsViewReducer");
|
|
14
15
|
const refreshExpenseAutomationCurrentTabEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(expenseAutomationViewReducer_1.refreshExpenseAutomationCurrentTab.match), (0, operators_1.switchMap)(() => {
|
|
15
16
|
const state = state$.value;
|
|
@@ -18,6 +19,7 @@ const refreshExpenseAutomationCurrentTabEpic = (actions$, state$) => actions$.pi
|
|
|
18
19
|
const { selectedTransactionCategorizationTab } = state.expenseAutomationTransactionsViewState;
|
|
19
20
|
const { selectedPeriodByTenantId, currentSelectedView } = state.expenseAutomationViewState;
|
|
20
21
|
const selectedPeriod = selectedPeriodByTenantId[currentTenant.tenantId];
|
|
22
|
+
const { selectedAccountId } = state.expenseAutomationReconciliationViewState;
|
|
21
23
|
const period = (0, timePeriod_1.convertToPeriod)(selectedPeriod);
|
|
22
24
|
const timePeriodStart = (0, timePeriod_1.toAbsoluteDay)(period.start);
|
|
23
25
|
const timePeriodEnd = (0, timePeriod_1.toAbsoluteDay)(period.end);
|
|
@@ -48,6 +50,18 @@ const refreshExpenseAutomationCurrentTabEpic = (actions$, state$) => actions$.pi
|
|
|
48
50
|
(0, companyMonthEndReportViewReducer_1.fetchCompanyMonthEndReportView)(true, companyId, currentTenant.tenantId),
|
|
49
51
|
(0, companyMonthEndReportViewReducer_1.fetchCompanyMonthEndReportTemplates)(companyId, currentTenant.tenantId),
|
|
50
52
|
]);
|
|
53
|
+
case 'reconciliation': {
|
|
54
|
+
if (selectedAccountId != null) {
|
|
55
|
+
return (0, rxjs_1.from)([
|
|
56
|
+
(0, reconciliationViewReducer_1.fetchReconciliation)(selectedPeriod, selectedAccountId, true, true),
|
|
57
|
+
]);
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
return (0, rxjs_1.from)([
|
|
61
|
+
(0, reconciliationViewReducer_1.fetchReconciliation)(selectedPeriod, undefined, true, true),
|
|
62
|
+
]);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
51
65
|
case 'transaction_categorization':
|
|
52
66
|
default:
|
|
53
67
|
return (0, rxjs_1.from)([
|
|
@@ -8,8 +8,8 @@ export declare const fetchAllExpenseAutomationTabs: import("@reduxjs/toolkit").A
|
|
|
8
8
|
}, "expenseAutomationView/fetchAllExpenseAutomationTabs", never, never>, updateCurrentSelectedPeriod: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[tenantId: string, newSelectedPeriod: MonthYearPeriod], {
|
|
9
9
|
newSelectedPeriod: MonthYearPeriod;
|
|
10
10
|
tenantId: string;
|
|
11
|
-
}, "expenseAutomationView/updateCurrentSelectedPeriod", never, never>, updateCurrentSelectedView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[newSelectedView: "transaction_categorization" | "je_schedules" | "
|
|
12
|
-
newSelectedView: "transaction_categorization" | "je_schedules" | "
|
|
11
|
+
}, "expenseAutomationView/updateCurrentSelectedPeriod", never, never>, updateCurrentSelectedView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[newSelectedView: "transaction_categorization" | "je_schedules" | "reconciliation" | "missing_receipts" | "flux_analysis" | "month_end_insights"], {
|
|
12
|
+
newSelectedView: "transaction_categorization" | "je_schedules" | "reconciliation" | "missing_receipts" | "flux_analysis" | "month_end_insights";
|
|
13
13
|
}, "expenseAutomationView/updateCurrentSelectedView", never, never>, clearExpenseAutomationView: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"expenseAutomationView/clearExpenseAutomationView">, initializeSelectedPeriodForTenants: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
14
14
|
selectedPeriodByTenantId: Record<ID, MonthYearPeriod>;
|
|
15
15
|
}, "expenseAutomationView/initializeSelectedPeriodForTenants">, refreshExpenseAutomationCurrentTab: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"expenseAutomationView/refreshExpenseAutomationCurrentTab">;
|
|
@@ -11,6 +11,7 @@ const expenseAutomationViewSelectorTypes_1 = require("./selectorTypes/expenseAut
|
|
|
11
11
|
const fluxAnalysisViewSelector_1 = require("./selectors/fluxAnalysisViewSelector");
|
|
12
12
|
const jeSchedulesViewSelector_1 = require("./selectors/jeSchedulesViewSelector");
|
|
13
13
|
const missingReceiptsSelector_1 = require("./selectors/missingReceiptsSelector");
|
|
14
|
+
const reconciliationViewSelector_1 = require("./selectors/reconciliationViewSelector");
|
|
14
15
|
const transactionCategorizationSelector_1 = require("./selectors/transactionCategorizationSelector");
|
|
15
16
|
const isPreviousStepDisabled = (selectedTransactionCategorizationTab, allSteps, stepIndex, currentTenant, selectedPeriod, userAllowedToAccessMonthEndInsights, reportEmailSentDate, auditSummary) => {
|
|
16
17
|
if (stepIndex === 0) {
|
|
@@ -24,7 +25,7 @@ const isPreviousStepDisabled = (selectedTransactionCategorizationTab, allSteps,
|
|
|
24
25
|
};
|
|
25
26
|
function getExpenseAutomationView(state) {
|
|
26
27
|
var _a, _b, _c;
|
|
27
|
-
const { expenseAutomationViewState, tenantState, expenseAutomationMissingReceiptsViewState, expenseAutomationJESchedulesViewState, expenseAutomationTransactionsViewState, monthEndCloseChecksState, companyState, } = state;
|
|
28
|
+
const { expenseAutomationViewState, tenantState, expenseAutomationMissingReceiptsViewState, expenseAutomationJESchedulesViewState, expenseAutomationTransactionsViewState, expenseAutomationReconciliationViewState, monthEndCloseChecksState, companyState, } = state;
|
|
28
29
|
const { loggedInUser, currentTenantId } = tenantState;
|
|
29
30
|
const currentTenant = (0, tenantSelector_1.getCurrentTenant)(state);
|
|
30
31
|
const { currentSelectedView, selectedPeriodByTenantId } = expenseAutomationViewState;
|
|
@@ -42,9 +43,15 @@ function getExpenseAutomationView(state) {
|
|
|
42
43
|
const missingReceipts = (0, missingReceiptsSelector_1.getExpenseAutomationMissingReceiptsView)(state);
|
|
43
44
|
const fluxAnalysis = (0, fluxAnalysisViewSelector_1.getExpenseAutomationFluxAnalysisView)(state);
|
|
44
45
|
const monthEndInsights = (0, companyMonthEndReportViewSelector_1.getCompanyMonthEndReportSelectorView)(state, currentTenant.companyId, loggedInUser);
|
|
46
|
+
const reconciliation = (0, reconciliationViewSelector_1.getExpenseAutomationReconciliationView)(state);
|
|
45
47
|
const expenseAutomationTransactionsView = (0, transactionCategorizationSelector_1.getExpenseAutomationTransactionView)(state);
|
|
46
48
|
const jeSchedules = (0, jeSchedulesViewSelector_1.getExpenseAutomationJESchedulesView)(state);
|
|
47
49
|
switch (currentSelectedView) {
|
|
50
|
+
case 'reconciliation':
|
|
51
|
+
currentSelectedViewFetchState = reconciliation.fetchStatus;
|
|
52
|
+
currentSelectedViewBackgroundRefreshFetchState =
|
|
53
|
+
reconciliation.refreshStatus;
|
|
54
|
+
break;
|
|
48
55
|
case 'flux_analysis':
|
|
49
56
|
currentSelectedViewFetchState = fluxAnalysis.fetchStatus;
|
|
50
57
|
currentSelectedViewBackgroundRefreshFetchState =
|
|
@@ -90,6 +97,7 @@ function getExpenseAutomationView(state) {
|
|
|
90
97
|
expenseAutomationJESchedulesViewState,
|
|
91
98
|
monthEndCloseChecksView,
|
|
92
99
|
expenseAutomationTransactionsView,
|
|
100
|
+
expenseAutomationReconciliationViewState,
|
|
93
101
|
];
|
|
94
102
|
let allSteps = [];
|
|
95
103
|
let auditSummary = undefined;
|
|
@@ -122,6 +130,9 @@ function getExpenseAutomationView(state) {
|
|
|
122
130
|
? (0, monthEndCloseChecksViewSelector_1.isMonthEndInsightDisabled)(currentTenant, selectedPeriod, userAllowedToAccessMonthEndInsights, auditSummary)
|
|
123
131
|
: true });
|
|
124
132
|
return;
|
|
133
|
+
case 'reconciliation':
|
|
134
|
+
allStepsOriginal[index] = Object.assign(Object.assign({}, stepDetail), { completionStatus: reconciliation.completionStatus });
|
|
135
|
+
return;
|
|
125
136
|
case 'flux_analysis':
|
|
126
137
|
default:
|
|
127
138
|
allStepsOriginal[index] = Object.assign(Object.assign({}, stepDetail), { completionStatus: fluxAnalysis.completionStatus });
|
|
@@ -131,7 +142,10 @@ function getExpenseAutomationView(state) {
|
|
|
131
142
|
allSteps.forEach((stepDetail, index, allStepsOriginal) => {
|
|
132
143
|
allStepsOriginal[index] = Object.assign(Object.assign({}, stepDetail), { isNextDisabled: index === allStepsOriginal.length - 1
|
|
133
144
|
? allStepsOriginal[0].isDisabled
|
|
134
|
-
:
|
|
145
|
+
: stepDetail.step === 'reconciliation' &&
|
|
146
|
+
reconciliation.selectedTab === 'review'
|
|
147
|
+
? false
|
|
148
|
+
: allStepsOriginal[index + 1].isDisabled, isPrevDisabled: isPreviousStepDisabled(selectedTransactionCategorizationTab, allStepsOriginal, index, currentTenant, selectedPeriod, userAllowedToAccessMonthEndInsights, reportEmailSentDate, auditSummary) });
|
|
135
149
|
});
|
|
136
150
|
}
|
|
137
151
|
const reducedFetchStatus = (0, reduceFetchState_1.reduceAnyFetchState)(fetchStateVariables); // Add more states
|
|
@@ -146,6 +160,7 @@ function getExpenseAutomationView(state) {
|
|
|
146
160
|
jeSchedules,
|
|
147
161
|
transactionView: expenseAutomationTransactionsView,
|
|
148
162
|
missingReceipts,
|
|
163
|
+
reconciliation,
|
|
149
164
|
currentSelectedViewFetchState,
|
|
150
165
|
currentSelectedViewBackgroundRefreshFetchState,
|
|
151
166
|
fluxAnalysis,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FetchStateAndError, FetchedState, ID } from '../../commonStateTypes/common';
|
|
2
2
|
import { MonthYearPeriod } from '../../commonStateTypes/timePeriod';
|
|
3
|
-
export declare const EXPENSE_AUTOMATION_VIEW_TYPES: readonly ["transaction_categorization", "je_schedules", "
|
|
4
|
-
export declare const toExpenseAutomationViewType: (v: string) => "transaction_categorization" | "je_schedules" | "
|
|
3
|
+
export declare const EXPENSE_AUTOMATION_VIEW_TYPES: readonly ["transaction_categorization", "je_schedules", "reconciliation", "missing_receipts", "flux_analysis", "month_end_insights"];
|
|
4
|
+
export declare const toExpenseAutomationViewType: (v: string) => "transaction_categorization" | "je_schedules" | "reconciliation" | "missing_receipts" | "flux_analysis" | "month_end_insights";
|
|
5
5
|
export type ExpenseAutomationViewType = ReturnType<typeof toExpenseAutomationViewType>;
|
|
6
6
|
export interface ExpenseAutomationViewState extends FetchedState {
|
|
7
7
|
saveStatus: FetchStateAndError;
|
|
@@ -5,7 +5,7 @@ const stringToUnion_1 = require("../../commonStateTypes/stringToUnion");
|
|
|
5
5
|
exports.EXPENSE_AUTOMATION_VIEW_TYPES = [
|
|
6
6
|
'transaction_categorization',
|
|
7
7
|
'je_schedules',
|
|
8
|
-
'
|
|
8
|
+
'reconciliation',
|
|
9
9
|
'missing_receipts',
|
|
10
10
|
'flux_analysis',
|
|
11
11
|
'month_end_insights',
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CurrencyPayload } from '../../../commonPayloadTypes/v2/viewAndReportPayloadv2';
|
|
2
|
+
import { ReconciliationDataPayload } from '../../../entity/accountRecon/accountReconPayload';
|
|
3
|
+
import { MatchedTransactionPayload } from '../../../entity/transaction/payloadTypes/reconciliationTransactionPayloads';
|
|
4
|
+
export declare const getAllReviewTransactionsFromReconcilePayload: (reconcilePayload: ReconciliationDataPayload[]) => {
|
|
5
|
+
allReconciledTransactions: MatchedTransactionPayload[];
|
|
6
|
+
currencyPayload: CurrencyPayload;
|
|
7
|
+
}[];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getAllReviewTransactionsFromReconcilePayload = void 0;
|
|
4
|
+
const getAllReviewTransactionsFromReconcilePayload = (reconcilePayload) => {
|
|
5
|
+
const transactionsPerRecon = reconcilePayload.map((reconcile) => {
|
|
6
|
+
const allReconciledTransactions = [];
|
|
7
|
+
const currencyPayload = reconcile.currency;
|
|
8
|
+
reconcile.transactions.reconcile.forEach((reconciledTransaction) => {
|
|
9
|
+
allReconciledTransactions.push(reconciledTransaction);
|
|
10
|
+
});
|
|
11
|
+
return {
|
|
12
|
+
allReconciledTransactions,
|
|
13
|
+
currencyPayload,
|
|
14
|
+
};
|
|
15
|
+
});
|
|
16
|
+
return transactionsPerRecon;
|
|
17
|
+
};
|
|
18
|
+
exports.getAllReviewTransactionsFromReconcilePayload = getAllReviewTransactionsFromReconcilePayload;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { MonthYearPeriod } from '../../../commonStateTypes/timePeriod';
|
|
2
|
+
import { AccountPayload } from '../../../entity/account/accountPayload';
|
|
3
|
+
import { ReconciliationDataPayload, TransactionsToReviewPayload } from '../../../entity/accountRecon/accountReconPayload';
|
|
4
|
+
import { AccountReconciliationEntity } from '../../../entity/accountRecon/accountReconSelector';
|
|
5
|
+
import { MatchedTransactionPayload } from '../../../entity/transaction/payloadTypes/reconciliationTransactionPayloads';
|
|
6
|
+
import { UserPayload } from '../../../entity/user/userPayload';
|
|
7
|
+
import { RootState } from '../../../reducer';
|
|
8
|
+
import { ZeniAPIResponse } from '../../../responsePayload';
|
|
9
|
+
import { BalancesLocalData, SaveReconcileDetailActionPayload } from '../types/reconciliationViewState';
|
|
10
|
+
export interface ReconciliationPayload {
|
|
11
|
+
accounts: AccountPayload[];
|
|
12
|
+
reconciliation: ReconciliationDataPayload[];
|
|
13
|
+
users: UserPayload[];
|
|
14
|
+
}
|
|
15
|
+
export type ReconciliationResponse = ZeniAPIResponse<ReconciliationPayload>;
|
|
16
|
+
export interface SaveReconciliationReviewPayload {
|
|
17
|
+
reconciliation: MatchedTransactionPayload;
|
|
18
|
+
}
|
|
19
|
+
export type SaveReconciliationReviewResponse = ZeniAPIResponse<SaveReconciliationReviewPayload>;
|
|
20
|
+
export declare function createSaveReconciliationPayloadBasedOnActionAndMethod(state: RootState, selectedPeriod: MonthYearPeriod, localData: BalancesLocalData, accountReconciliationEntity: AccountReconciliationEntity, action: SaveReconcileDetailActionPayload, method: 'PUT' | 'POST'): {
|
|
21
|
+
transactions: {
|
|
22
|
+
reconcile: MatchedTransactionPayload[];
|
|
23
|
+
review: TransactionsToReviewPayload[];
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createSaveReconciliationPayloadBasedOnActionAndMethod = createSaveReconciliationPayloadBasedOnActionAndMethod;
|
|
4
|
+
const timePeriod_1 = require("../../../commonStateTypes/timePeriod");
|
|
5
|
+
const accountReconPayload_1 = require("../../../entity/accountRecon/accountReconPayload");
|
|
6
|
+
const reconciliationTransactionPayloads_1 = require("../../../entity/transaction/payloadTypes/reconciliationTransactionPayloads");
|
|
7
|
+
function createSaveReconciliationPayloadBasedOnActionAndMethod(state, selectedPeriod, localData, accountReconciliationEntity, action, method) {
|
|
8
|
+
var _a;
|
|
9
|
+
const { balance, initialClearedBalance } = accountReconciliationEntity;
|
|
10
|
+
const { expenseAutomationReconciliationViewState: { selectedAccountId, reconTabsState: { reconcile: { localData: { selectedTransactionIds }, }, }, }, } = state;
|
|
11
|
+
const period = (0, timePeriod_1.convertToPeriod)(selectedPeriod, true);
|
|
12
|
+
let payload = {};
|
|
13
|
+
payload = Object.assign({ action: action.reconcileAction === 'save_reconcile_for_later'
|
|
14
|
+
? 'save_for_later'
|
|
15
|
+
: action.reconcileAction, account_type: 'bank', bank_balance: (_a = balance === null || balance === void 0 ? void 0 : balance.amount) !== null && _a !== void 0 ? _a : 0, cleared_balance: localData.clearedBalance.amount, variance: localData.variance.amount, currency_code: balance === null || balance === void 0 ? void 0 : balance.currencyCode }, (initialClearedBalance != null && initialClearedBalance.amount != null
|
|
16
|
+
? {
|
|
17
|
+
initial_cleared_balance: initialClearedBalance.amount,
|
|
18
|
+
}
|
|
19
|
+
: {}));
|
|
20
|
+
if (method === 'POST') {
|
|
21
|
+
payload = Object.assign(Object.assign({}, payload), { account_id: selectedAccountId, start_date: period.start, end_date: period.end });
|
|
22
|
+
}
|
|
23
|
+
if (action.reconcileAction === 'exclude') {
|
|
24
|
+
payload = Object.assign(Object.assign({}, payload), { exclude_transaction_ids: [action.excludeTransactionId] });
|
|
25
|
+
}
|
|
26
|
+
const reconciledTransactionsPayload = createReconcileTransactionPayload(selectedTransactionIds, accountReconciliationEntity);
|
|
27
|
+
const reviewTransactionsPayload = createReviewTransactionPayload(accountReconciliationEntity);
|
|
28
|
+
return Object.assign(Object.assign({}, payload), { transactions: {
|
|
29
|
+
reconcile: reconciledTransactionsPayload,
|
|
30
|
+
review: reviewTransactionsPayload,
|
|
31
|
+
} });
|
|
32
|
+
}
|
|
33
|
+
function createReconcileTransactionPayload(selectedIds, accountReconciliationEntity) {
|
|
34
|
+
const matchedTransactionsPayload = [];
|
|
35
|
+
const matchedReconcileTransactions = accountReconciliationEntity.transactionsToReconcile.map((transaction) => {
|
|
36
|
+
return Object.assign(Object.assign({}, transaction), { isTransactionChecked: selectedIds.includes(transaction.id) });
|
|
37
|
+
});
|
|
38
|
+
matchedReconcileTransactions.forEach((transaction) => {
|
|
39
|
+
const matchTransactionPayload = (0, reconciliationTransactionPayloads_1.toMatchedTransactionPayload)(transaction);
|
|
40
|
+
matchedTransactionsPayload.push(matchTransactionPayload);
|
|
41
|
+
});
|
|
42
|
+
return matchedTransactionsPayload;
|
|
43
|
+
}
|
|
44
|
+
function createReviewTransactionPayload(accountReconciliationEntity) {
|
|
45
|
+
const reviewTransactionsPayload = [];
|
|
46
|
+
accountReconciliationEntity.transactionsToReview.forEach((transaction) => {
|
|
47
|
+
const matchTransactionPayload = (0, accountReconPayload_1.toTransactionsToReviewPayload)(transaction);
|
|
48
|
+
reviewTransactionsPayload.push(matchTransactionPayload);
|
|
49
|
+
});
|
|
50
|
+
return reviewTransactionsPayload;
|
|
51
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Amount } from '../../../commonStateTypes/amount';
|
|
2
|
+
import { FetchState, ID } from '../../../commonStateTypes/common';
|
|
3
|
+
import { SortOrder } from '../../../commonStateTypes/selectorTypes/sortOrderTypes';
|
|
4
|
+
import { MonthYearPeriod } from '../../../commonStateTypes/timePeriod';
|
|
5
|
+
import { ZeniAPIStatus } from '../../../responsePayload';
|
|
6
|
+
import { ReconciliationPayload } from '../payload/reconciliationPayload';
|
|
7
|
+
import { ActionFetchStates, ReconReconcileSortKey, ReconReviewSortKey, ReconciliationReviewTabLocalData, ReconciliationTabsState, ReconciliationViewState, ReconciliationViewTabType, SaveReconcileDetailActionPayload, SaveReconciliationDetailFailurePayload, TransactionSummary } from '../types/reconciliationViewState';
|
|
8
|
+
export declare const initialReconciliationTabsState: ReconciliationTabsState;
|
|
9
|
+
export declare const initialActionFetchState: ActionFetchStates;
|
|
10
|
+
export declare const initialState: ReconciliationViewState;
|
|
11
|
+
export declare const fetchReconciliation: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[selectedPeriod: MonthYearPeriod, accountId?: string | undefined, cacheOverride?: any, refreshViewInBackground?: any], {
|
|
12
|
+
selectedPeriod: MonthYearPeriod;
|
|
13
|
+
accountId: string | undefined;
|
|
14
|
+
cacheOverride: any;
|
|
15
|
+
refreshViewInBackground: any;
|
|
16
|
+
}, "expenseAutomationReconciliationView/fetchReconciliation", never, never>, fetchReconciliationFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
17
|
+
selectedPeriod: MonthYearPeriod;
|
|
18
|
+
error: ZeniAPIStatus;
|
|
19
|
+
refreshViewInBackground: boolean;
|
|
20
|
+
accountId?: ID;
|
|
21
|
+
reconciliationId?: ID;
|
|
22
|
+
}, "expenseAutomationReconciliationView/fetchReconciliationFailure">, fetchReconciliationSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[selectedPeriod: MonthYearPeriod, reconciliation: ReconciliationPayload, refreshViewInBackground?: any, accountId?: string | undefined, reconciliationId?: string | undefined], {
|
|
23
|
+
selectedPeriod: MonthYearPeriod;
|
|
24
|
+
accountId: string | undefined;
|
|
25
|
+
refreshViewInBackground: any;
|
|
26
|
+
reconciliation: ReconciliationPayload;
|
|
27
|
+
reconciliationId: string | undefined;
|
|
28
|
+
}, "expenseAutomationReconciliationView/fetchReconciliationSuccess", never, never>, saveReconciliationDetail: import("@reduxjs/toolkit").ActionCreatorWithPayload<SaveReconcileDetailActionPayload, "expenseAutomationReconciliationView/saveReconciliationDetail">, saveReconciliationDetailFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<SaveReconciliationDetailFailurePayload, "expenseAutomationReconciliationView/saveReconciliationDetailFailure">, updateSelectedAccountId: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
29
|
+
selectedAccountId?: ID;
|
|
30
|
+
}, "expenseAutomationReconciliationView/updateSelectedAccountId">, setConnectionInProgressForAccount: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
31
|
+
accountId: ID;
|
|
32
|
+
connectionInProgress: boolean;
|
|
33
|
+
}, "expenseAutomationReconciliationView/setConnectionInProgressForAccount">, updateReconcileTabLocalData: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
34
|
+
selectedTransactionIds: ID[];
|
|
35
|
+
}, "expenseAutomationReconciliationView/updateReconcileTabLocalData">, updateReconcileTabListSortState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
36
|
+
sortKey: ReconReconcileSortKey;
|
|
37
|
+
sortOrder: SortOrder;
|
|
38
|
+
}, "expenseAutomationReconciliationView/updateReconcileTabListSortState">, updateReconcileTabListScrollState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
39
|
+
scrollYOffset: number;
|
|
40
|
+
}, "expenseAutomationReconciliationView/updateReconcileTabListScrollState">, saveReconciliationDetailSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<SaveReconcileDetailActionPayload, "expenseAutomationReconciliationView/saveReconciliationDetailSuccess">, updateSelectedTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
41
|
+
selectedTab: ReconciliationViewTabType;
|
|
42
|
+
}, "expenseAutomationReconciliationView/updateSelectedTab">, updateBalancesLocalData: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
43
|
+
clearedBalance: Amount;
|
|
44
|
+
variance: Amount;
|
|
45
|
+
variancePercentage: number;
|
|
46
|
+
payments: TransactionSummary;
|
|
47
|
+
deposits: TransactionSummary;
|
|
48
|
+
}, "expenseAutomationReconciliationView/updateBalancesLocalData">, initialiseLocalDataForSelectedAccountId: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"expenseAutomationReconciliationView/initialiseLocalDataForSelectedAccountId">, clearExpenseAutomationReconciliationView: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"expenseAutomationReconciliationView/clearExpenseAutomationReconciliationView">, updateSelectedDrawerAccountId: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
49
|
+
selectedDrawerAccountId?: ID;
|
|
50
|
+
}, "expenseAutomationReconciliationView/updateSelectedDrawerAccountId">, updateReviewTabSortState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
51
|
+
sortKey: ReconReviewSortKey;
|
|
52
|
+
sortOrder: SortOrder;
|
|
53
|
+
}, "expenseAutomationReconciliationView/updateReviewTabSortState">, initializeReconciliationReviewTabLocalData: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[localData: Record<string, ReconciliationReviewTabLocalData>], {
|
|
54
|
+
localData: Record<string, ReconciliationReviewTabLocalData>;
|
|
55
|
+
}, "expenseAutomationReconciliationView/initializeReconciliationReviewTabLocalData", never, never>, updateReviewTabLocalData: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
56
|
+
data: ReconciliationReviewTabLocalData;
|
|
57
|
+
transactionId: ID;
|
|
58
|
+
}, "expenseAutomationReconciliationView/updateReviewTabLocalData">, saveReconciliationReview: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[transactionId: string], {
|
|
59
|
+
transactionId: string;
|
|
60
|
+
}, "expenseAutomationReconciliationView/saveReconciliationReview", never, never>, updateSaveReconciliationReviewFetchStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
61
|
+
transactionId: ID;
|
|
62
|
+
fetchState: FetchState;
|
|
63
|
+
error?: ZeniAPIStatus;
|
|
64
|
+
}, "expenseAutomationReconciliationView/updateSaveReconciliationReviewFetchStatus">;
|
|
65
|
+
declare const _default: import("redux").Reducer<ReconciliationViewState>;
|
|
66
|
+
export default _default;
|