@zeniai/client-epic-state 4.20.3-betaRD21 → 4.20.3-betaRD3
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/commonPayloadTypes/subAccountView/reportBySubAccountPayload.d.ts +2 -0
- package/lib/commonStateTypes/coaBalance/coaBalancesFilterProjectView.d.ts +13 -0
- package/lib/commonStateTypes/coaBalance/coaBalancesFilterProjectView.js +9 -0
- package/lib/commonStateTypes/common.d.ts +1 -1
- package/lib/commonStateTypes/projectView/projectViewParentID.d.ts +5 -0
- package/lib/commonStateTypes/projectView/projectViewParentID.js +2 -0
- package/lib/commonStateTypes/viewAndReport/reportIDHelper.d.ts +1 -0
- package/lib/commonStateTypes/viewAndReport/reportIDHelper.js +3 -1
- package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +2 -2
- package/lib/commonStateTypes/viewAndReport/viewAndReport.js +1 -1
- package/lib/entity/account/accountPayload.d.ts +0 -2
- package/lib/entity/account/accountReducer.d.ts +2 -5
- package/lib/entity/account/accountReducer.js +7 -10
- package/lib/entity/account/accountSelector.d.ts +7 -0
- package/lib/entity/account/accountSelector.js +4 -2
- package/lib/entity/account/accountState.d.ts +3 -1
- package/lib/entity/account/accountState.js +4 -1
- package/lib/entity/account/pickAndMergeForecastAccountReport.d.ts +1 -0
- package/lib/entity/account/subAccountSelector.d.ts +2 -0
- package/lib/entity/account/subAccountSelector.js +2 -0
- package/lib/entity/accountGroup/accountGroupSelector.d.ts +22 -0
- package/lib/entity/accountGroup/accountGroupState.d.ts +1 -1
- package/lib/entity/billPay/billTransaction/billTransactionState.d.ts +2 -2
- package/lib/entity/chargeCard/chargeCard.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/depositAccountTransaction/depositAccountTransaction.d.ts +1 -1
- package/lib/entity/entityApprovalStatus/entityApprovalStatusState.d.ts +2 -2
- package/lib/entity/forecast/forecastState.d.ts +1 -1
- package/lib/entity/jeSchedules/jeSchedulesTypes.d.ts +1 -1
- package/lib/entity/project/projectPayload.d.ts +13 -0
- package/lib/entity/project/projectPayload.js +30 -0
- package/lib/entity/project/projectReducer.d.ts +10 -0
- package/lib/entity/project/projectReducer.js +31 -0
- package/lib/entity/project/projectSelector.d.ts +5 -0
- package/lib/entity/project/projectSelector.js +12 -0
- package/lib/entity/project/projectState.d.ts +13 -0
- package/lib/entity/project/projectState.js +2 -0
- 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/sectionProjectView/sectionProjectView.d.ts +10 -0
- package/lib/entity/sectionProjectView/sectionProjectView.js +6 -0
- package/lib/entity/sectionProjectView/sectionProjectViewEpic.d.ts +6 -0
- package/lib/entity/sectionProjectView/sectionProjectViewEpic.js +56 -0
- package/lib/entity/sectionProjectView/sectionProjectViewHelper.d.ts +9 -0
- package/lib/entity/sectionProjectView/sectionProjectViewHelper.js +13 -0
- package/lib/entity/sectionProjectView/sectionProjectViewReducer.d.ts +15 -0
- package/lib/entity/sectionProjectView/sectionProjectViewReducer.js +50 -0
- package/lib/entity/sectionProjectView/sectionProjectViewSelector.d.ts +11 -0
- package/lib/entity/sectionProjectView/sectionProjectViewSelector.js +103 -0
- package/lib/entity/sectionProjectView/sectionProjectViewSelectorTypes.d.ts +16 -0
- package/lib/entity/sectionProjectView/sectionProjectViewSelectorTypes.js +2 -0
- package/lib/entity/sectionProjectView/sectionProjectViewState.d.ts +4 -0
- package/lib/entity/sectionProjectView/sectionProjectViewState.js +2 -0
- package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
- package/lib/entity/tenant/clearAllEpic.d.ts +5 -4
- package/lib/entity/tenant/clearAllEpic.js +6 -4
- package/lib/entity/tenant/tenantPayload.d.ts +1 -0
- package/lib/entity/tenant/tenantReducer.js +1 -0
- package/lib/entity/tenant/tenantSelector.d.ts +1 -0
- package/lib/entity/tenant/tenantSelector.js +9 -1
- package/lib/entity/tenant/tenantState.d.ts +1 -0
- package/lib/entity/transaction/payloadTypes/transactionPayload.js +0 -1
- package/lib/entity/userRole/userRoleType.d.ts +2 -2
- package/lib/epic.d.ts +4 -3
- package/lib/epic.js +4 -3
- package/lib/esm/commonStateTypes/coaBalance/coaBalancesFilterProjectView.js +5 -0
- package/lib/esm/commonStateTypes/projectView/projectViewParentID.js +1 -0
- package/lib/esm/commonStateTypes/viewAndReport/reportIDHelper.js +1 -0
- package/lib/esm/commonStateTypes/viewAndReport/viewAndReport.js +1 -1
- package/lib/esm/entity/account/accountReducer.js +6 -9
- package/lib/esm/entity/account/accountSelector.js +4 -2
- package/lib/esm/entity/account/accountState.js +4 -1
- package/lib/esm/entity/account/subAccountSelector.js +2 -0
- package/lib/esm/entity/project/projectPayload.js +26 -0
- package/lib/esm/entity/project/projectReducer.js +27 -0
- package/lib/esm/entity/project/projectSelector.js +8 -0
- package/lib/esm/entity/project/projectState.js +1 -0
- package/lib/esm/entity/sectionProjectView/sectionProjectView.js +3 -0
- package/lib/esm/entity/sectionProjectView/sectionProjectViewEpic.js +52 -0
- package/lib/esm/entity/sectionProjectView/sectionProjectViewHelper.js +9 -0
- package/lib/esm/entity/sectionProjectView/sectionProjectViewReducer.js +46 -0
- package/lib/esm/entity/sectionProjectView/sectionProjectViewSelector.js +96 -0
- package/lib/esm/entity/sectionProjectView/sectionProjectViewSelectorTypes.js +1 -0
- package/lib/esm/entity/sectionProjectView/sectionProjectViewState.js +1 -0
- package/lib/esm/entity/tenant/clearAllEpic.js +6 -4
- package/lib/esm/entity/tenant/tenantReducer.js +1 -0
- package/lib/esm/entity/tenant/tenantSelector.js +7 -0
- package/lib/esm/entity/transaction/payloadTypes/transactionPayload.js +0 -1
- package/lib/esm/epic.js +4 -3
- package/lib/esm/index.js +11 -15
- package/lib/esm/reducer.js +9 -6
- package/lib/esm/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.js +9 -4
- package/lib/esm/view/expenseAutomationView/reducers/jeSchedulesViewReducer.js +1 -5
- package/lib/esm/view/expenseAutomationView/reducers/reconciliationViewReducer.js +3 -163
- package/lib/esm/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.js +2 -1
- package/lib/esm/view/expenseAutomationView/selectors/reconciliationViewSelector.js +0 -112
- package/lib/esm/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +6 -10
- package/lib/esm/view/expenseAutomationView/types/jeSchedulesViewState.js +0 -6
- package/lib/esm/view/financeStatement/financeStatementSelector.js +12 -1
- package/lib/esm/view/profitAndLossClassesView/profitAndLossClassesByClassHorizontalSelector.js +2 -4
- package/lib/esm/view/profitAndLossProjectView/profitAndLossForTimeframeProjectViewEpic.js +45 -0
- package/lib/esm/view/profitAndLossProjectView/profitAndLossProjectViewEpic.js +30 -0
- package/lib/esm/view/profitAndLossProjectView/profitAndLossProjectViewPayload.js +1 -0
- package/lib/esm/view/profitAndLossProjectView/profitAndLossProjectViewReducer.js +113 -0
- package/lib/esm/view/profitAndLossProjectView/profitAndLossProjectViewSelector.js +66 -0
- package/lib/esm/view/profitAndLossProjectView/profitAndLossProjectViewSelectorTypes.js +1 -0
- package/lib/esm/view/profitAndLossProjectView/profitAndLossProjectViewState.js +1 -0
- package/lib/esm/view/reportsResync/reportsClassViewRefetchingEpic.js +4 -0
- package/lib/index.d.ts +14 -16
- package/lib/index.js +45 -65
- package/lib/reducer.d.ts +9 -6
- package/lib/reducer.js +9 -6
- package/lib/tsconfig.typecheck.tsbuildinfo +1 -1
- 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 +2 -1
- package/lib/view/cashBalance/cashBalanceSelector.d.ts +2 -1
- package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +1 -1
- package/lib/view/cashPosition/cashPositionSelector.d.ts +1 -1
- package/lib/view/companyView/types/cockpitTypes.d.ts +5 -6
- package/lib/view/dashboard/dashboardReducer.d.ts +2 -2
- package/lib/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.js +9 -4
- package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +1 -1
- package/lib/view/expenseAutomationView/payload/reconciliationPayload.d.ts +0 -33
- package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.js +1 -5
- package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.d.ts +4 -18
- package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.js +4 -164
- package/lib/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.d.ts +2 -6
- package/lib/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.js +2 -2
- package/lib/view/expenseAutomationView/selectors/reconciliationViewSelector.js +0 -112
- package/lib/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +5 -9
- package/lib/view/expenseAutomationView/types/jeSchedulesViewState.d.ts +0 -3
- package/lib/view/expenseAutomationView/types/jeSchedulesViewState.js +1 -8
- package/lib/view/expenseAutomationView/types/missingReceiptsViewState.d.ts +1 -1
- package/lib/view/expenseAutomationView/types/reconciliationViewState.d.ts +0 -13
- package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
- package/lib/view/financeStatement/financeStatementSelector.d.ts +2 -0
- package/lib/view/financeStatement/financeStatementSelector.js +12 -1
- package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +2 -2
- package/lib/view/onboardingView/cockpitView/types/onboardingCockpitViewTypes.d.ts +1 -1
- package/lib/view/profitAndLossClassesView/profitAndLossClassesByClassHorizontalSelector.js +2 -4
- package/lib/view/profitAndLossProjectView/profitAndLossForTimeframeProjectViewEpic.d.ts +8 -0
- package/lib/view/profitAndLossProjectView/profitAndLossForTimeframeProjectViewEpic.js +49 -0
- package/lib/view/profitAndLossProjectView/profitAndLossProjectViewEpic.d.ts +6 -0
- package/lib/view/profitAndLossProjectView/profitAndLossProjectViewEpic.js +34 -0
- package/lib/view/profitAndLossProjectView/profitAndLossProjectViewPayload.d.ts +33 -0
- package/lib/view/profitAndLossProjectView/profitAndLossProjectViewPayload.js +2 -0
- package/lib/view/profitAndLossProjectView/profitAndLossProjectViewReducer.d.ts +33 -0
- package/lib/view/profitAndLossProjectView/profitAndLossProjectViewReducer.js +117 -0
- package/lib/view/profitAndLossProjectView/profitAndLossProjectViewSelector.d.ts +9 -0
- package/lib/view/profitAndLossProjectView/profitAndLossProjectViewSelector.js +70 -0
- package/lib/view/profitAndLossProjectView/profitAndLossProjectViewSelectorTypes.d.ts +18 -0
- package/lib/view/profitAndLossProjectView/profitAndLossProjectViewSelectorTypes.js +2 -0
- package/lib/view/profitAndLossProjectView/profitAndLossProjectViewState.d.ts +22 -0
- package/lib/view/profitAndLossProjectView/profitAndLossProjectViewState.js +2 -0
- package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +1 -1
- package/lib/view/reportsResync/reportsClassViewRefetchingEpic.d.ts +2 -1
- package/lib/view/reportsResync/reportsClassViewRefetchingEpic.js +4 -0
- package/lib/view/reportsResync/reportsResyncReducer.d.ts +2 -2
- package/lib/view/reviewCompanyView/reviewCompanyViewState.d.ts +1 -1
- package/lib/view/spendManagement/billPay/billList/billListReducer.d.ts +1 -1
- package/lib/view/spendManagement/billPay/billList/billListState.d.ts +1 -1
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetail.d.ts +1 -1
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer.d.ts +4 -4
- package/lib/view/spendManagement/reimbursement/remiListView/remiListReducer.d.ts +1 -1
- package/lib/view/spendManagement/reimbursement/remiListView/remiListState.d.ts +3 -3
- package/lib/view/subscriptionView/types/subscriptionTypes.d.ts +1 -1
- package/lib/view/tasksCard/tasksCardSelector.d.ts +1 -1
- package/lib/view/topEx/topExSelector.d.ts +1 -1
- package/package.json +1 -1
- package/lib/entity/aiAccountantCustomer/aiAccountantCustomerPayload.d.ts +0 -44
- package/lib/entity/aiAccountantCustomer/aiAccountantCustomerPayload.js +0 -55
- package/lib/entity/aiAccountantCustomer/aiAccountantCustomerReducer.d.ts +0 -10
- package/lib/entity/aiAccountantCustomer/aiAccountantCustomerReducer.js +0 -51
- package/lib/entity/aiAccountantCustomer/aiAccountantCustomerSelector.d.ts +0 -48
- package/lib/entity/aiAccountantCustomer/aiAccountantCustomerSelector.js +0 -66
- package/lib/entity/aiAccountantCustomer/aiAccountantCustomerState.d.ts +0 -52
- package/lib/entity/aiAccountantCustomer/aiAccountantCustomerState.js +0 -37
- package/lib/esm/entity/aiAccountantCustomer/aiAccountantCustomerPayload.js +0 -49
- package/lib/esm/entity/aiAccountantCustomer/aiAccountantCustomerReducer.js +0 -47
- package/lib/esm/entity/aiAccountantCustomer/aiAccountantCustomerSelector.js +0 -62
- package/lib/esm/entity/aiAccountantCustomer/aiAccountantCustomerState.js +0 -31
- package/lib/esm/view/aiAccountantView/aiAccountantViewPayload.js +0 -2
- package/lib/esm/view/aiAccountantView/aiAccountantViewReducer.js +0 -149
- package/lib/esm/view/aiAccountantView/aiAccountantViewSelector.js +0 -72
- package/lib/esm/view/aiAccountantView/aiAccountantViewState.js +0 -11
- package/lib/esm/view/aiAccountantView/epics/cancelAiAccountantOnboardingEpic.js +0 -46
- package/lib/esm/view/aiAccountantView/epics/fetchAiAccountantCustomersEpic.js +0 -27
- package/lib/esm/view/aiAccountantView/epics/fetchAiAccountantJobsEpic.js +0 -47
- package/lib/esm/view/aiAccountantView/epics/triggerAiAccountantJobEpic.js +0 -52
- package/lib/esm/view/expenseAutomationView/epics/accountRecon/excludeAccountFromReconciliationEpic.js +0 -44
- package/lib/esm/view/expenseAutomationView/epics/accountRecon/includeAccountInReconciliationEpic.js +0 -44
- package/lib/view/aiAccountantView/aiAccountantViewPayload.d.ts +0 -31
- package/lib/view/aiAccountantView/aiAccountantViewPayload.js +0 -8
- package/lib/view/aiAccountantView/aiAccountantViewReducer.d.ts +0 -29
- package/lib/view/aiAccountantView/aiAccountantViewReducer.js +0 -153
- package/lib/view/aiAccountantView/aiAccountantViewSelector.d.ts +0 -14
- package/lib/view/aiAccountantView/aiAccountantViewSelector.js +0 -78
- package/lib/view/aiAccountantView/aiAccountantViewState.d.ts +0 -27
- package/lib/view/aiAccountantView/aiAccountantViewState.js +0 -13
- package/lib/view/aiAccountantView/epics/cancelAiAccountantOnboardingEpic.d.ts +0 -33
- package/lib/view/aiAccountantView/epics/cancelAiAccountantOnboardingEpic.js +0 -50
- package/lib/view/aiAccountantView/epics/fetchAiAccountantCustomersEpic.d.ts +0 -23
- package/lib/view/aiAccountantView/epics/fetchAiAccountantCustomersEpic.js +0 -31
- package/lib/view/aiAccountantView/epics/fetchAiAccountantJobsEpic.d.ts +0 -33
- package/lib/view/aiAccountantView/epics/fetchAiAccountantJobsEpic.js +0 -51
- package/lib/view/aiAccountantView/epics/triggerAiAccountantJobEpic.d.ts +0 -28
- package/lib/view/aiAccountantView/epics/triggerAiAccountantJobEpic.js +0 -56
- package/lib/view/expenseAutomationView/epics/accountRecon/excludeAccountFromReconciliationEpic.d.ts +0 -8
- package/lib/view/expenseAutomationView/epics/accountRecon/excludeAccountFromReconciliationEpic.js +0 -48
- package/lib/view/expenseAutomationView/epics/accountRecon/includeAccountInReconciliationEpic.d.ts +0 -9
- package/lib/view/expenseAutomationView/epics/accountRecon/includeAccountInReconciliationEpic.js +0 -48
|
@@ -11,7 +11,7 @@ import { Vendor } from '../../../entity/vendor/vendorState';
|
|
|
11
11
|
import { PlaidConnectionDetails } from '../../spendManagement/plaidAccount/plaidAccountViewState';
|
|
12
12
|
import { AccountReconciliationLocalData, ActionFetchStates, ReconListUIState, ReconciliationTabsState, ReconciliationViewTabType } from '../types/reconciliationViewState';
|
|
13
13
|
export declare const ALL_ACCOUNT_RECON_SECTION_IDS: readonly ["assets", "liabilities"];
|
|
14
|
-
|
|
14
|
+
declare const toAccountReconSectionID: (v: string) => "assets" | "liabilities";
|
|
15
15
|
export type AccountReconSectionID = ReturnType<typeof toAccountReconSectionID>;
|
|
16
16
|
export interface ExpenseAutomationReconciliationViewSelector {
|
|
17
17
|
accountListNestedAccountHierarchy: NestedAccountHierarchyForReport[];
|
|
@@ -24,12 +24,7 @@ export interface ExpenseAutomationReconciliationViewSelector {
|
|
|
24
24
|
classListNestedAccountHierarchy: NestedClassHierarchyForReport[];
|
|
25
25
|
completionStatus: CompletionStatusType;
|
|
26
26
|
creditCards: AccountBase[];
|
|
27
|
-
excludeAccountFetchState: FetchStateAndError;
|
|
28
|
-
excludedAccountIDs: ID[];
|
|
29
|
-
excludedAccountReconciliationByAccountID: Record<ID, AccountReconciliationByAccount>;
|
|
30
|
-
excludedAccountReconciliationBySectionID: Record<AccountReconSectionID, AccountReconciliationBySection>;
|
|
31
27
|
fetchStatus: FetchStateAndError;
|
|
32
|
-
includeAccountFetchState: FetchStateAndError;
|
|
33
28
|
monthYearPeriod: MonthYearPeriod;
|
|
34
29
|
plaidConnectionDetails: PlaidConnectionDetails;
|
|
35
30
|
reconciliationTabsState: ReconciliationTabsState;
|
|
@@ -64,3 +59,4 @@ export interface AccountReconciliationByAccount {
|
|
|
64
59
|
transactionFetchState: FetchStateAndError;
|
|
65
60
|
paymentAccountId?: ID;
|
|
66
61
|
}
|
|
62
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.ALL_ACCOUNT_RECON_SECTION_IDS = void 0;
|
|
4
4
|
const stringToUnion_1 = require("../../../commonStateTypes/stringToUnion");
|
|
5
5
|
exports.ALL_ACCOUNT_RECON_SECTION_IDS = ['assets', 'liabilities'];
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
6
7
|
const toAccountReconSectionID = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ALL_ACCOUNT_RECON_SECTION_IDS);
|
|
7
|
-
exports.toAccountReconSectionID = toAccountReconSectionID;
|
|
@@ -15,7 +15,6 @@ const accountSelector_1 = require("../../../entity/account/accountSelector");
|
|
|
15
15
|
const accountReconSelector_1 = require("../../../entity/accountRecon/accountReconSelector");
|
|
16
16
|
const tenantSelector_1 = require("../../../entity/tenant/tenantSelector");
|
|
17
17
|
const vendorSelector_1 = require("../../../entity/vendor/vendorSelector");
|
|
18
|
-
const zeniDayJS_1 = require("../../../zeniDayJS");
|
|
19
18
|
const accountListSelector_1 = require("../../accountList/accountListSelector");
|
|
20
19
|
const classListSelector_1 = require("../../classList/classListSelector");
|
|
21
20
|
const reconciliationViewReducer_1 = require("../reducers/reconciliationViewReducer");
|
|
@@ -97,30 +96,6 @@ exports.getExpenseAutomationReconciliationView = (0, toolkit_1.createSelector)((
|
|
|
97
96
|
totalVariancePercentage: undefined,
|
|
98
97
|
},
|
|
99
98
|
},
|
|
100
|
-
excludedAccountReconciliationByAccountID: {},
|
|
101
|
-
excludedAccountReconciliationBySectionID: {
|
|
102
|
-
assets: {
|
|
103
|
-
sectionId: 'assets',
|
|
104
|
-
accountIDs: [],
|
|
105
|
-
totalBankBalance: undefined,
|
|
106
|
-
totalClearedBalance: undefined,
|
|
107
|
-
totalReconciledBalance: undefined,
|
|
108
|
-
totalVariance: undefined,
|
|
109
|
-
totalVariancePercentage: undefined,
|
|
110
|
-
},
|
|
111
|
-
liabilities: {
|
|
112
|
-
sectionId: 'liabilities',
|
|
113
|
-
accountIDs: [],
|
|
114
|
-
totalBankBalance: undefined,
|
|
115
|
-
totalClearedBalance: undefined,
|
|
116
|
-
totalReconciledBalance: undefined,
|
|
117
|
-
totalVariance: undefined,
|
|
118
|
-
totalVariancePercentage: undefined,
|
|
119
|
-
},
|
|
120
|
-
},
|
|
121
|
-
excludeAccountFetchState: reconciliationViewState.actionFetchState.excludeAccountFetch,
|
|
122
|
-
includeAccountFetchState: reconciliationViewState.actionFetchState.includeAccountFetch,
|
|
123
|
-
excludedAccountIDs: reconciliationViewState.excludedAccountIDs,
|
|
124
99
|
};
|
|
125
100
|
}
|
|
126
101
|
const allAccountIDs = accountReconForMonthYearPeriod.accountIDs;
|
|
@@ -280,88 +255,6 @@ exports.getExpenseAutomationReconciliationView = (0, toolkit_1.createSelector)((
|
|
|
280
255
|
totalVariancePercentage: liabilityTotals.variancePercentage,
|
|
281
256
|
},
|
|
282
257
|
};
|
|
283
|
-
const bankAccountIdSet = new Set(uniqueBankAccounts.map((a) => a.accountId));
|
|
284
|
-
const creditCardIdSet = new Set(uniqueCreditCards.map((a) => a.accountId));
|
|
285
|
-
const excludedAssetAccountIDs = [];
|
|
286
|
-
const excludedLiabilityAccountIDs = [];
|
|
287
|
-
reconciliationViewState.excludedAccountIDs.forEach((accountID) => {
|
|
288
|
-
const isAsset = bankAccountIdSet.has(accountID);
|
|
289
|
-
const isLiability = creditCardIdSet.has(accountID);
|
|
290
|
-
if (!isAsset && !isLiability) {
|
|
291
|
-
return;
|
|
292
|
-
}
|
|
293
|
-
if (isAsset) {
|
|
294
|
-
excludedAssetAccountIDs.push(accountID);
|
|
295
|
-
}
|
|
296
|
-
else {
|
|
297
|
-
excludedLiabilityAccountIDs.push(accountID);
|
|
298
|
-
}
|
|
299
|
-
});
|
|
300
|
-
const excludedAccountReconciliationBySectionID = {
|
|
301
|
-
assets: {
|
|
302
|
-
sectionId: 'assets',
|
|
303
|
-
accountIDs: excludedAssetAccountIDs,
|
|
304
|
-
},
|
|
305
|
-
liabilities: {
|
|
306
|
-
sectionId: 'liabilities',
|
|
307
|
-
accountIDs: excludedLiabilityAccountIDs,
|
|
308
|
-
},
|
|
309
|
-
};
|
|
310
|
-
const excludedAccountReconciliationByAccountID = {};
|
|
311
|
-
const accountsInState = Object.values(accountState.accountsByKey);
|
|
312
|
-
const accountsInStateMap = new Map(accountsInState.map((a) => [a.accountId, a]));
|
|
313
|
-
reconciliationViewState.excludedAccountIDs.forEach((excludedAccountID) => {
|
|
314
|
-
const account = accountsInStateMap.get(excludedAccountID);
|
|
315
|
-
const exclusionInfo = reconciliationViewState.excludedAccountExclusionInfo[excludedAccountID];
|
|
316
|
-
if (account != null) {
|
|
317
|
-
excludedAccountReconciliationByAccountID[excludedAccountID] = {
|
|
318
|
-
refreshStatus: { fetchState: 'Not-Started' },
|
|
319
|
-
statementUpdateStatus: { fetchState: 'Not-Started' },
|
|
320
|
-
statementUploadStatus: { fetchState: 'Not-Started' },
|
|
321
|
-
statementDeleteStatus: { fetchState: 'Not-Started' },
|
|
322
|
-
localData: {},
|
|
323
|
-
connectionInProgress: false,
|
|
324
|
-
statementParseInProgress: false,
|
|
325
|
-
accountConnectionStatus: 'not_connected',
|
|
326
|
-
transactionFetchState: { fetchState: 'Not-Started' },
|
|
327
|
-
accountReconEntity: {
|
|
328
|
-
account: {
|
|
329
|
-
accountId: account.accountId,
|
|
330
|
-
accountName: account.accountName,
|
|
331
|
-
accountType: account.accountType,
|
|
332
|
-
accountSubType: account.accountSubType,
|
|
333
|
-
accountDescription: account.accountDescription,
|
|
334
|
-
qboId: account.qboId,
|
|
335
|
-
coaId: account.coaId,
|
|
336
|
-
labels: account.labels,
|
|
337
|
-
},
|
|
338
|
-
currency: {
|
|
339
|
-
currencyCode: exclusionInfo?.bankBalance?.currencyCode ??
|
|
340
|
-
exclusionInfo?.clearedBalance?.currencyCode ??
|
|
341
|
-
'USD',
|
|
342
|
-
currencySymbol: exclusionInfo?.bankBalance?.currencySymbol ??
|
|
343
|
-
exclusionInfo?.clearedBalance?.currencySymbol ??
|
|
344
|
-
'$',
|
|
345
|
-
},
|
|
346
|
-
startDate: (0, zeniDayJS_1.date)(new Date().toDateString()),
|
|
347
|
-
endDate: (0, zeniDayJS_1.date)(new Date().toDateString()),
|
|
348
|
-
statementStatus: { code: 'not_found', label: 'Not Found' },
|
|
349
|
-
transactionsToReconcile: [],
|
|
350
|
-
transactionsToReview: [],
|
|
351
|
-
balance: exclusionInfo?.bankBalance,
|
|
352
|
-
clearedBalance: exclusionInfo?.clearedBalance,
|
|
353
|
-
variance: exclusionInfo?.variance,
|
|
354
|
-
variancePercentage: exclusionInfo?.variance != null &&
|
|
355
|
-
exclusionInfo?.bankBalance != null &&
|
|
356
|
-
exclusionInfo?.bankBalance.amount !== 0
|
|
357
|
-
? Math.abs((exclusionInfo.variance.amount /
|
|
358
|
-
exclusionInfo.bankBalance.amount) *
|
|
359
|
-
100)
|
|
360
|
-
: undefined,
|
|
361
|
-
},
|
|
362
|
-
};
|
|
363
|
-
}
|
|
364
|
-
});
|
|
365
258
|
const accountListNestedAccountHierarchy = (0, accountListSelector_1.getNestedAccountListHierarchy)(accountListState, 'accountList');
|
|
366
259
|
const classListNestedAccountHierarchy = (0, classListSelector_1.getNestedClassListHierarchy)(classListState);
|
|
367
260
|
const accountsList = (0, accountListSelector_1.getAccountList)(accountState, accountListState, 'accountList');
|
|
@@ -422,11 +315,6 @@ exports.getExpenseAutomationReconciliationView = (0, toolkit_1.createSelector)((
|
|
|
422
315
|
allClassList: allClasses,
|
|
423
316
|
reviewTabSelectedVendorByTransactionId,
|
|
424
317
|
reconListUIState: reconciliationViewState.reconListUIState,
|
|
425
|
-
excludedAccountReconciliationBySectionID,
|
|
426
|
-
excludedAccountReconciliationByAccountID,
|
|
427
|
-
excludeAccountFetchState: reconciliationViewState.actionFetchState.excludeAccountFetch,
|
|
428
|
-
includeAccountFetchState: reconciliationViewState.actionFetchState.includeAccountFetch,
|
|
429
|
-
excludedAccountIDs: reconciliationViewState.excludedAccountIDs,
|
|
430
318
|
};
|
|
431
319
|
});
|
|
432
320
|
const isAccountReconReport = (reportId) => {
|
|
@@ -50,16 +50,12 @@ function getExpenseAutomationTransactionView(state) {
|
|
|
50
50
|
const monthEndFetchState = monthYearPeriodId != null
|
|
51
51
|
? (monthEndCloseChecksViewState.monthEndCloseChecksViewByTenantId[currentTenant.tenantId]?.[monthYearPeriodId] ?? { fetchState: 'Not-Started', error: undefined })
|
|
52
52
|
: { fetchState: 'Not-Started', error: undefined };
|
|
53
|
-
const isAccountingClassesEnabled = (0, tenantSelector_1.getIsAccountingClassesEnabled)(state);
|
|
54
|
-
const allFetchStateList = [
|
|
55
|
-
accountList,
|
|
56
|
-
expenseAutomationTransactionsViewState.transactionCategorizationView[selectedTransactionCategorizationTab],
|
|
57
|
-
];
|
|
58
|
-
if (isAccountingClassesEnabled) {
|
|
59
|
-
allFetchStateList.push(classList);
|
|
60
|
-
}
|
|
61
53
|
const fetchStatus = (0, reduceFetchState_1.reduceAnyFetchState)([
|
|
62
|
-
(0, reduceFetchState_1.reduceAllFetchState)(
|
|
54
|
+
(0, reduceFetchState_1.reduceAllFetchState)([
|
|
55
|
+
accountList,
|
|
56
|
+
classList,
|
|
57
|
+
expenseAutomationTransactionsViewState.transactionCategorizationView[selectedTransactionCategorizationTab],
|
|
58
|
+
]),
|
|
63
59
|
monthEndFetchState,
|
|
64
60
|
]);
|
|
65
61
|
const totalCountByReview = expenseAutomationTransactionsViewState.transactionCategorizationView.review
|
|
@@ -8,15 +8,12 @@ import { JEScheduleTransactionKey, ScheduleTypes } from '../../../entity/jeSched
|
|
|
8
8
|
import { VendorBase } from '../../../entity/vendor/vendorState';
|
|
9
9
|
export declare const toJEScheduleSortKey: (v: string) => "vendor" | "type" | "category" | "class" | "memo" | "transactionDate" | "totalAmount" | "runningBalance" | "depCategory" | "scheduleCategory" | "startMonth" | "amortizationPeriod" | "jePostingDate" | "remainingMonths";
|
|
10
10
|
export type JEScheduleSortKey = ReturnType<typeof toJEScheduleSortKey>;
|
|
11
|
-
export declare const toJEScheduleMainTab: (v: string) => "completed" | "pending_review" | "ongoing";
|
|
12
|
-
export type JEScheduleMainTab = ReturnType<typeof toJEScheduleMainTab>;
|
|
13
11
|
export interface JESchedulesViewUIState {
|
|
14
12
|
scrollPosition: {
|
|
15
13
|
scrollTop: number;
|
|
16
14
|
scrollLeft?: number;
|
|
17
15
|
} | undefined;
|
|
18
16
|
searchString: string;
|
|
19
|
-
selectedMainTab: JEScheduleMainTab;
|
|
20
17
|
sortKey: JEScheduleSortKey;
|
|
21
18
|
sortOrder: SortOrder;
|
|
22
19
|
totalCount: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.toJEScheduleSortKey = void 0;
|
|
4
4
|
const stringToUnion_1 = require("../../../commonStateTypes/stringToUnion");
|
|
5
5
|
const JE_SCHEDULE_SORT_KEYS = [
|
|
6
6
|
'vendor',
|
|
@@ -20,10 +20,3 @@ const JE_SCHEDULE_SORT_KEYS = [
|
|
|
20
20
|
];
|
|
21
21
|
const toJEScheduleSortKey = (v) => (0, stringToUnion_1.stringToUnion)(v, JE_SCHEDULE_SORT_KEYS);
|
|
22
22
|
exports.toJEScheduleSortKey = toJEScheduleSortKey;
|
|
23
|
-
const JE_SCHEDULE_MAIN_TABS = [
|
|
24
|
-
'pending_review',
|
|
25
|
-
'ongoing',
|
|
26
|
-
'completed',
|
|
27
|
-
];
|
|
28
|
-
const toJEScheduleMainTab = (v) => (0, stringToUnion_1.stringToUnion)(v, JE_SCHEDULE_MAIN_TABS);
|
|
29
|
-
exports.toJEScheduleMainTab = toJEScheduleMainTab;
|
|
@@ -17,7 +17,7 @@ export interface MissingReceiptsViewUIState {
|
|
|
17
17
|
* Kept in sync with `ManualSearchInput` in web-components (fires search only when length ≥ this).
|
|
18
18
|
*/
|
|
19
19
|
export declare const MIN_MANUAL_TRANSACTION_SEARCH_LENGTH = 2;
|
|
20
|
-
export declare const toBatchStatusValue: (v: string) => "pending" | "
|
|
20
|
+
export declare const toBatchStatusValue: (v: string) => "pending" | "processing" | "completed";
|
|
21
21
|
export type BatchStatusValue = ReturnType<typeof toBatchStatusValue>;
|
|
22
22
|
/** Canonical batch file statuses (API ingress may use aliases; see `parseBatchFileStatus`). */
|
|
23
23
|
export declare const BATCH_FILE_STATUSES: readonly ["exact_match", "possible_matches", "no_match", "failed"];
|
|
@@ -74,24 +74,13 @@ export interface ReconciliationReviewTabLocalData {
|
|
|
74
74
|
matchedTransactionId?: ID;
|
|
75
75
|
vendor?: VendorBase;
|
|
76
76
|
}
|
|
77
|
-
export interface ExcludeAccountFromReconciliationPayload {
|
|
78
|
-
accountId: ID;
|
|
79
|
-
}
|
|
80
|
-
export interface ExclusionInfo {
|
|
81
|
-
bankBalance: Amount | undefined;
|
|
82
|
-
clearedBalance: Amount | undefined;
|
|
83
|
-
variance: Amount | undefined;
|
|
84
|
-
}
|
|
85
77
|
export interface ActionFetchStates {
|
|
86
|
-
excludeAccountFetch: FetchStateAndError;
|
|
87
78
|
excludeFetchById: Record<ID, FetchStateAndError>;
|
|
88
|
-
includeAccountFetch: FetchStateAndError;
|
|
89
79
|
reconcileFetch: FetchStateAndError;
|
|
90
80
|
saveForLaterFetch: FetchStateAndError;
|
|
91
81
|
saveReconciliationReviewFetch: Record<ID, FetchStateAndError>;
|
|
92
82
|
}
|
|
93
83
|
export interface ReconListUIState {
|
|
94
|
-
nodeCollapseState: Record<ID, boolean>;
|
|
95
84
|
scrollPosition: {
|
|
96
85
|
scrollTop: number;
|
|
97
86
|
scrollLeft?: number;
|
|
@@ -101,8 +90,6 @@ export interface ReconciliationViewState extends FetchStateAndError {
|
|
|
101
90
|
accountConnectionStatusByAccountID: Record<ID, BankConnectionStatus>;
|
|
102
91
|
accountReconciliationRecordsBySelectedPeriod: Record<MonthYearPeriodId, AccountReconciliationRecords>;
|
|
103
92
|
actionFetchState: ActionFetchStates;
|
|
104
|
-
excludedAccountExclusionInfo: Record<ID, ExclusionInfo>;
|
|
105
|
-
excludedAccountIDs: ID[];
|
|
106
93
|
reconListUIState: ReconListUIState;
|
|
107
94
|
reconTabsState: ReconciliationTabsState;
|
|
108
95
|
refreshStatus: FetchStateAndError;
|
|
@@ -17,7 +17,7 @@ export declare const fetchFinanceStatement: import("@reduxjs/toolkit").ActionCre
|
|
|
17
17
|
firstMonthOfFY: Month;
|
|
18
18
|
maxNumOfPeriodsToHighlight: number;
|
|
19
19
|
thisPeriod: TimeframeTick;
|
|
20
|
-
}, "financeStatement/updateFinanceStatementThisPeriod">, updateCOABalancesRange: import("@reduxjs/toolkit").ActionCreatorWithPayload<COABalancesRange, "financeStatement/updateCOABalancesRange">, updateSelectedReportId: import("@reduxjs/toolkit").ActionCreatorWithPayload<"cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "zeni_treasury" | "charge_cards" | "other_connection" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation" | "zeni_credit_promo_card" | "treasury_promo_card"
|
|
20
|
+
}, "financeStatement/updateFinanceStatementThisPeriod">, updateCOABalancesRange: import("@reduxjs/toolkit").ActionCreatorWithPayload<COABalancesRange, "financeStatement/updateCOABalancesRange">, updateSelectedReportId: import("@reduxjs/toolkit").ActionCreatorWithPayload<"cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "profit_and_loss_by_projects" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "zeni_treasury" | "charge_cards" | "other_connection" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation" | "zeni_credit_promo_card" | "treasury_promo_card", "financeStatement/updateSelectedReportId">, updateFinanceStatementAdditionalBalancesSelection: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
21
21
|
additionalBalances: COABalanceType[];
|
|
22
22
|
coaBalances: COABalance[];
|
|
23
23
|
firstMonthOfFY: Month;
|
|
@@ -10,6 +10,7 @@ import { CashFlowReport } from '../cashFlow/cashFlowSelectorTypes';
|
|
|
10
10
|
import { ProfitAndLossReport } from '../profitAndLoss/profitAndLossSelector';
|
|
11
11
|
import { ProfitAndLossByClassHorizontalReport } from '../profitAndLossClassesView/profitAndLossClassesByClassHorizontalSelectorTypes';
|
|
12
12
|
import { ProfitAndLossClassesViewReport } from '../profitAndLossClassesView/profitAndLossClassesViewSelectorTypes';
|
|
13
|
+
import { ProfitAndLossProjectViewReport } from '../profitAndLossProjectView/profitAndLossProjectViewSelectorTypes';
|
|
13
14
|
export interface FinanceStatementReport extends SelectorReport {
|
|
14
15
|
allTimeframeTicks: TimeframeTickWithMetaData[];
|
|
15
16
|
balanceSheetReport: BalanceSheetReport;
|
|
@@ -21,6 +22,7 @@ export interface FinanceStatementReport extends SelectorReport {
|
|
|
21
22
|
isCompareModeOn: boolean;
|
|
22
23
|
profitAndLossByClassHorizontalReport: ProfitAndLossByClassHorizontalReport;
|
|
23
24
|
profitAndLossByClassReport: ProfitAndLossClassesViewReport;
|
|
25
|
+
profitAndLossByProjectReport: ProfitAndLossProjectViewReport;
|
|
24
26
|
profitAndLossReport: ProfitAndLossReport;
|
|
25
27
|
reportFormat: ReportFormat;
|
|
26
28
|
selectedReportAndTimeframeFetchState: FetchStateAndError;
|
|
@@ -12,8 +12,10 @@ const thisPeriodHelpers_1 = require("../../commonStateTypes/viewAndReport/thisPe
|
|
|
12
12
|
const balanceSheetSelector_1 = require("../balanceSheet/balanceSheetSelector");
|
|
13
13
|
const cashFlowSelector_1 = require("../cashFlow/cashFlowSelector");
|
|
14
14
|
const profitAndLossSelector_1 = require("../profitAndLoss/profitAndLossSelector");
|
|
15
|
+
const coaBalancesFilterProjectView_1 = require("../../commonStateTypes/coaBalance/coaBalancesFilterProjectView");
|
|
15
16
|
const profitAndLossClassesByClassHorizontalSelector_1 = require("../profitAndLossClassesView/profitAndLossClassesByClassHorizontalSelector");
|
|
16
17
|
const profitAndLossClassesViewSelector_1 = require("../profitAndLossClassesView/profitAndLossClassesViewSelector");
|
|
18
|
+
const profitAndLossProjectViewSelector_1 = require("../profitAndLossProjectView/profitAndLossProjectViewSelector");
|
|
17
19
|
function getDateRangeForFinanceReports(profitAndLossState, balanceSheetState, cashFlowState) {
|
|
18
20
|
const datesSorted = [
|
|
19
21
|
profitAndLossState.dataAvailable?.startDate,
|
|
@@ -38,7 +40,7 @@ function getFirstMonthOfFY(profitAndLossState, balanceSheetState, cashFlowState)
|
|
|
38
40
|
cashFlowState.firstMonthOfFY ??
|
|
39
41
|
1);
|
|
40
42
|
}
|
|
41
|
-
exports.getFinanceStatement = (0, toolkit_1.createSelector)((state) => state.accountState, (state) => state.accountGroupState, (state) => state.classState, (state) => state.sectionClassesViewStateV2, (state) => state.profitAndLossState, (state) => state.profitAndLossClassesViewState, (state) => state.balanceSheetState, (state) => state.cashFlowState, (state) => state.financeStatementState, (state) => state.sectionAccountsViewState, (state) => state.forecastState, (accountState, accountGroupState, classState, sectionsState, profitAndLossState, profitAndLossClassesViewState, balanceSheetState, cashFlowState, financeStatementState, sectionAccountsViewState, forecastState) => {
|
|
43
|
+
exports.getFinanceStatement = (0, toolkit_1.createSelector)((state) => state.accountState, (state) => state.accountGroupState, (state) => state.classState, (state) => state.sectionClassesViewStateV2, (state) => state.profitAndLossState, (state) => state.profitAndLossClassesViewState, (state) => state.projectState, (state) => state.sectionProjectViewState, (state) => state.profitAndLossProjectViewState, (state) => state.balanceSheetState, (state) => state.cashFlowState, (state) => state.financeStatementState, (state) => state.sectionAccountsViewState, (state) => state.forecastState, (accountState, accountGroupState, classState, sectionsState, profitAndLossState, profitAndLossClassesViewState, projectState, sectionProjectViewState, profitAndLossProjectViewState, balanceSheetState, cashFlowState, financeStatementState, sectionAccountsViewState, forecastState) => {
|
|
42
44
|
// to get min and max dates across three reports
|
|
43
45
|
let allTimeframeTicks = [];
|
|
44
46
|
let balancesInTimeframe = [];
|
|
@@ -72,6 +74,8 @@ exports.getFinanceStatement = (0, toolkit_1.createSelector)((state) => state.acc
|
|
|
72
74
|
const profitAndLossReport = (0, profitAndLossSelector_1.getProfitAndLossReport)(filter, undefined, accountState, accountGroupState, sectionAccountsViewState, profitAndLossState, forecastState);
|
|
73
75
|
const classFilter = (0, coaBalancesFilterClassesView_1.newBalancesFilterClassesView)(filter.firstMonthOfFY, filter.timeframe, filter.balancesRange.numberOfPeriods, filter.balancesRange.thisPeriod, filter.balancesRange.orderBy, filter.additionalBalances, profitAndLossClassesViewState.uiState.classesToFilterOut);
|
|
74
76
|
const profitAndLossByClassReport = (0, profitAndLossClassesViewSelector_1.getProfitAndLossClassesView)(classFilter, accountState, classState, sectionsState, profitAndLossClassesViewState);
|
|
77
|
+
const projectFilter = (0, coaBalancesFilterProjectView_1.newBalancesFilterProjectView)(filter.firstMonthOfFY, filter.timeframe, filter.balancesRange.numberOfPeriods, filter.balancesRange.thisPeriod, filter.balancesRange.orderBy, filter.additionalBalances, profitAndLossProjectViewState.uiState.projectsToFilterOut);
|
|
78
|
+
const profitAndLossByProjectReport = (0, profitAndLossProjectViewSelector_1.getProfitAndLossProjectView)(projectFilter, accountState, projectState, sectionProjectViewState, profitAndLossProjectViewState);
|
|
75
79
|
const profitAndLossByClassHorizontalReport = (0, profitAndLossClassesByClassHorizontalSelector_1.getProfitAndLossClassesHorizontalView)(classFilter, accountState, classState, sectionsState, profitAndLossClassesViewState, profitAndLossClassesViewState.uiState.classViewLayout === 'horizontal'
|
|
76
80
|
? thisPeriod
|
|
77
81
|
: undefined);
|
|
@@ -92,6 +96,12 @@ exports.getFinanceStatement = (0, toolkit_1.createSelector)((state) => state.acc
|
|
|
92
96
|
error: profitAndLossReport.error,
|
|
93
97
|
};
|
|
94
98
|
break;
|
|
99
|
+
case 'profit_and_loss_by_projects':
|
|
100
|
+
selectedReportAndTimeframeFetchState = {
|
|
101
|
+
fetchState: profitAndLossByProjectReport.fetchState,
|
|
102
|
+
error: profitAndLossByProjectReport.error,
|
|
103
|
+
};
|
|
104
|
+
break;
|
|
95
105
|
case 'balance_sheet':
|
|
96
106
|
selectedReportAndTimeframeFetchState = {
|
|
97
107
|
fetchState: balanceSheetReport.fetchState,
|
|
@@ -122,6 +132,7 @@ exports.getFinanceStatement = (0, toolkit_1.createSelector)((state) => state.acc
|
|
|
122
132
|
dataAvailable,
|
|
123
133
|
profitAndLossReport,
|
|
124
134
|
profitAndLossByClassReport,
|
|
135
|
+
profitAndLossByProjectReport,
|
|
125
136
|
profitAndLossByClassHorizontalReport,
|
|
126
137
|
balanceSheetReport,
|
|
127
138
|
cashFlowReport,
|
|
@@ -3,9 +3,9 @@ import { ZeniAPIStatus } from '../../responsePayload';
|
|
|
3
3
|
import { VendorReviewViewAllRecommendationsPayload } from '../vendorReviewView/common/payload/commonTypes';
|
|
4
4
|
import { GlobalMerchantViewState, GlobalRecommendationFetchSource, NewGlobalMerchantCurrentSelection } from './globalMerchantViewState';
|
|
5
5
|
export declare const initialState: GlobalMerchantViewState;
|
|
6
|
-
export declare const createGlobalMerchant: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[merchantId?: string | undefined, context?: "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "zeni_treasury" | "charge_cards" | "other_connection" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation" | "zeni_credit_promo_card" | "treasury_promo_card" |
|
|
6
|
+
export declare const createGlobalMerchant: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[merchantId?: string | undefined, context?: "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "profit_and_loss_by_projects" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "zeni_treasury" | "charge_cards" | "other_connection" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation" | "zeni_credit_promo_card" | "treasury_promo_card" | undefined], {
|
|
7
7
|
merchantId: string | undefined;
|
|
8
|
-
context: "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "zeni_treasury" | "charge_cards" | "other_connection" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation" | "zeni_credit_promo_card" | "treasury_promo_card" |
|
|
8
|
+
context: "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "profit_and_loss_by_projects" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "zeni_treasury" | "charge_cards" | "other_connection" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation" | "zeni_credit_promo_card" | "treasury_promo_card" | undefined;
|
|
9
9
|
}, "globalMerchantView/createGlobalMerchant", never, never>, createGlobalMerchantSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
10
10
|
merchantId: ID;
|
|
11
11
|
}, "globalMerchantView/createGlobalMerchantSuccess">, createGlobalMerchantFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
@@ -3,7 +3,7 @@ import { CompanyWithSchema } from '../../../../entity/company/companySelector';
|
|
|
3
3
|
import { OnboardingCustomerInfo } from '../../../../entity/onboardingCustomer/onboardingCustomerState';
|
|
4
4
|
import { Tenant } from '../../../../entity/tenant/tenantState';
|
|
5
5
|
import { CompanyDetailsLocalData, PrimaryContactLocalData } from '../../../spendManagement/commonSetup/setupViewState';
|
|
6
|
-
declare const toProductGroupType: (v: string) => "
|
|
6
|
+
declare const toProductGroupType: (v: string) => "cards" | "other" | "bookkeeping" | "banking" | "spend_management";
|
|
7
7
|
export type ProductGroupType = ReturnType<typeof toProductGroupType>;
|
|
8
8
|
export declare const toProductType: (v: string) => "zeni_treasury" | "other" | "bookkeeping" | "zeni_checking" | "zeni_bill_pay" | "zeni_reimbursements" | "zeni_cards" | "zeni_payroll" | "zeni_cfo" | "zeni_tax";
|
|
9
9
|
export declare const toProductTypeStrict: (v: string) => "zeni_treasury" | "other" | "bookkeeping" | "zeni_checking" | "zeni_bill_pay" | "zeni_reimbursements" | "zeni_cards" | "zeni_payroll" | "zeni_cfo" | "zeni_tax" | undefined;
|
|
@@ -126,12 +126,10 @@ function buildClassColumns(classHierarchy, classesToFilterOut) {
|
|
|
126
126
|
qboId: c.qboId,
|
|
127
127
|
}))
|
|
128
128
|
.sort((a, b) => {
|
|
129
|
-
|
|
130
|
-
const bIsNotSpecified = b.classId === exports.NOT_SPECIFIED_CLASS_ID;
|
|
131
|
-
if (aIsNotSpecified && !bIsNotSpecified) {
|
|
129
|
+
if (a.classId === exports.NOT_SPECIFIED_CLASS_ID) {
|
|
132
130
|
return 1;
|
|
133
131
|
}
|
|
134
|
-
if (
|
|
132
|
+
if (b.classId === exports.NOT_SPECIFIED_CLASS_ID) {
|
|
135
133
|
return -1;
|
|
136
134
|
}
|
|
137
135
|
return a.className.localeCompare(b.className, [], {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { updateSectionProjectView } from '../../entity/sectionProjectView/sectionProjectViewReducer';
|
|
4
|
+
import { RootState } from '../../reducer';
|
|
5
|
+
import { ZeniAPI } from '../../zeniAPI';
|
|
6
|
+
import { fetchProfitAndLossForTimeframeProjectView, updateProfitAndLossForTimeframeProjectView, updateProfitAndLossForTimeframeProjectViewFailure } from './profitAndLossProjectViewReducer';
|
|
7
|
+
export type ActionType = ReturnType<typeof fetchProfitAndLossForTimeframeProjectView> | ReturnType<typeof updateProfitAndLossForTimeframeProjectView> | ReturnType<typeof updateProfitAndLossForTimeframeProjectViewFailure> | ReturnType<typeof updateSectionProjectView>;
|
|
8
|
+
export declare const fetchProfitAndLossForTimeframeProjectViewEpic: (actions$: ActionsObservable<ActionType>, _: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fetchProfitAndLossForTimeframeProjectViewEpic = void 0;
|
|
4
|
+
const rxjs_1 = require("rxjs");
|
|
5
|
+
const operators_1 = require("rxjs/operators");
|
|
6
|
+
const sectionProjectViewReducer_1 = require("../../entity/sectionProjectView/sectionProjectViewReducer");
|
|
7
|
+
const responsePayload_1 = require("../../responsePayload");
|
|
8
|
+
const profitAndLossProjectViewReducer_1 = require("./profitAndLossProjectViewReducer");
|
|
9
|
+
const fetchProfitAndLossForTimeframeProjectViewEpic = (actions$, _, zeniAPI) => actions$.pipe((0, operators_1.filter)(profitAndLossProjectViewReducer_1.fetchProfitAndLossForTimeframeProjectView.match), (0, operators_1.mergeMap)((action) => {
|
|
10
|
+
const getTimeSeriesGroup = (timeframe) => {
|
|
11
|
+
switch (timeframe) {
|
|
12
|
+
case 'month':
|
|
13
|
+
return 'months';
|
|
14
|
+
case 'quarter':
|
|
15
|
+
return 'quarters';
|
|
16
|
+
case 'year':
|
|
17
|
+
return 'years';
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
const queryValue = {
|
|
21
|
+
is_full_response: action.payload.fetchFullReport,
|
|
22
|
+
time_series_groups: [getTimeSeriesGroup(action.payload.timeframe)],
|
|
23
|
+
is_group_by_project: true,
|
|
24
|
+
};
|
|
25
|
+
return zeniAPI
|
|
26
|
+
.getJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/2.0/reports/profit_and_loss?query=${encodeURIComponent(JSON.stringify(queryValue))}`)
|
|
27
|
+
.pipe((0, operators_1.mergeMap)((response) => {
|
|
28
|
+
if (response.data != null && (0, responsePayload_1.isSuccessResponse)(response)) {
|
|
29
|
+
const actions = [];
|
|
30
|
+
const report = response.data.report;
|
|
31
|
+
const currency = report.currency;
|
|
32
|
+
actions.push((0, sectionProjectViewReducer_1.updateSectionProjectView)(action.payload.timeframe, 'cogs', 'profit_and_loss_by_projects', report.cogs, report.accounts, currency));
|
|
33
|
+
actions.push((0, sectionProjectViewReducer_1.updateSectionProjectView)(action.payload.timeframe, 'expenses', 'profit_and_loss_by_projects', report.expenses, report.accounts, currency));
|
|
34
|
+
actions.push((0, sectionProjectViewReducer_1.updateSectionProjectView)(action.payload.timeframe, 'income', 'profit_and_loss_by_projects', report.income, report.accounts, currency));
|
|
35
|
+
actions.push((0, sectionProjectViewReducer_1.updateSectionProjectView)(action.payload.timeframe, 'otherExpenses', 'profit_and_loss_by_projects', report.other_expenses, report.accounts, currency));
|
|
36
|
+
actions.push((0, sectionProjectViewReducer_1.updateSectionProjectView)(action.payload.timeframe, 'otherIncome', 'profit_and_loss_by_projects', report.other_income, report.accounts, currency));
|
|
37
|
+
actions.push((0, profitAndLossProjectViewReducer_1.updateProfitAndLossForTimeframeProjectView)({
|
|
38
|
+
timeframe: action.payload.timeframe,
|
|
39
|
+
report: response.data,
|
|
40
|
+
}));
|
|
41
|
+
return (0, rxjs_1.from)(actions);
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
return (0, rxjs_1.of)((0, profitAndLossProjectViewReducer_1.updateProfitAndLossForTimeframeProjectViewFailure)(response.status, action.payload.timeframe));
|
|
45
|
+
}
|
|
46
|
+
}), (0, operators_1.catchError)((error) => (0, rxjs_1.of)((0, profitAndLossProjectViewReducer_1.updateProfitAndLossForTimeframeProjectViewFailure)((0, responsePayload_1.createZeniAPIStatus)('Unexpected Error', 'P&L by Projects REST API call errored out' +
|
|
47
|
+
JSON.stringify(error)), action.payload.timeframe))));
|
|
48
|
+
}));
|
|
49
|
+
exports.fetchProfitAndLossForTimeframeProjectViewEpic = fetchProfitAndLossForTimeframeProjectViewEpic;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { RootState } from '../../reducer';
|
|
4
|
+
import { fetchProfitAndLossForTimeframeProjectView, fetchProfitAndLossProjectView } from './profitAndLossProjectViewReducer';
|
|
5
|
+
export type ActionType = ReturnType<typeof fetchProfitAndLossProjectView> | ReturnType<typeof fetchProfitAndLossForTimeframeProjectView>;
|
|
6
|
+
export declare const fetchProfitAndLossProjectViewEpic: (actions$: ActionsObservable<ActionType>, state: StateObservable<RootState>) => Observable<ActionType>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fetchProfitAndLossProjectViewEpic = void 0;
|
|
4
|
+
const rxjs_1 = require("rxjs");
|
|
5
|
+
const operators_1 = require("rxjs/operators");
|
|
6
|
+
const profitAndLossProjectViewReducer_1 = require("./profitAndLossProjectViewReducer");
|
|
7
|
+
const fetchProfitAndLossProjectViewEpic = (actions$, state) => actions$.pipe((0, operators_1.filter)(profitAndLossProjectViewReducer_1.fetchProfitAndLossProjectView.match), (0, operators_1.switchMap)((action) => {
|
|
8
|
+
const { cacheOverride } = action.payload;
|
|
9
|
+
if (cacheOverride === true) {
|
|
10
|
+
return (0, rxjs_1.from)([
|
|
11
|
+
(0, profitAndLossProjectViewReducer_1.fetchProfitAndLossForTimeframeProjectView)('month'),
|
|
12
|
+
(0, profitAndLossProjectViewReducer_1.fetchProfitAndLossForTimeframeProjectView)('quarter'),
|
|
13
|
+
(0, profitAndLossProjectViewReducer_1.fetchProfitAndLossForTimeframeProjectView)('year'),
|
|
14
|
+
]);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
const fetchActions = [];
|
|
18
|
+
const projectFetchState = state.value.profitAndLossProjectViewState.fetchState;
|
|
19
|
+
if (projectFetchState['month'].fetchState !== 'In-Progress' &&
|
|
20
|
+
projectFetchState['month'].fetchState !== 'Completed') {
|
|
21
|
+
fetchActions.push((0, profitAndLossProjectViewReducer_1.fetchProfitAndLossForTimeframeProjectView)('month'));
|
|
22
|
+
}
|
|
23
|
+
if (projectFetchState['quarter'].fetchState !== 'In-Progress' &&
|
|
24
|
+
projectFetchState['quarter'].fetchState !== 'Completed') {
|
|
25
|
+
fetchActions.push((0, profitAndLossProjectViewReducer_1.fetchProfitAndLossForTimeframeProjectView)('quarter'));
|
|
26
|
+
}
|
|
27
|
+
if (projectFetchState['year'].fetchState !== 'In-Progress' &&
|
|
28
|
+
projectFetchState['year'].fetchState !== 'Completed') {
|
|
29
|
+
fetchActions.push((0, profitAndLossProjectViewReducer_1.fetchProfitAndLossForTimeframeProjectView)('year'));
|
|
30
|
+
}
|
|
31
|
+
return (0, rxjs_1.from)(fetchActions);
|
|
32
|
+
}
|
|
33
|
+
}));
|
|
34
|
+
exports.fetchProfitAndLossProjectViewEpic = fetchProfitAndLossProjectViewEpic;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { AccountCOABalanceGroupedPayloadByAccountId } from '../../commonPayloadTypes/subAccountView/reportBySubAccountPayload';
|
|
2
|
+
import { COABalanceGroupedPayloadV2 } from '../../commonPayloadTypes/v2/coaBalancePayload';
|
|
3
|
+
import { ReportPayloadV2 } from '../../commonPayloadTypes/v2/viewAndReportPayloadv2';
|
|
4
|
+
import { AccountMetadataPayload } from '../../entity/account/accountPayload';
|
|
5
|
+
import { ProjectMetadataPayload } from '../../entity/project/projectPayload';
|
|
6
|
+
import { ZeniReportResponse } from '../../responsePayload';
|
|
7
|
+
export interface ReportByProjectMetadataPayloadV2 extends ReportPayloadV2 {
|
|
8
|
+
accounts: AccountMetadataPayload[];
|
|
9
|
+
projects: ProjectMetadataPayload[];
|
|
10
|
+
}
|
|
11
|
+
export interface ProjectCOABalanceGroupedPayloadV2 extends COABalanceGroupedPayloadV2 {
|
|
12
|
+
accounts: AccountCOABalanceGroupedPayloadByAccountId;
|
|
13
|
+
}
|
|
14
|
+
interface ProjectCOABalanceGroupedPayloadByProjectIdV2 {
|
|
15
|
+
[project_Id: string]: ProjectCOABalanceGroupedPayloadV2;
|
|
16
|
+
}
|
|
17
|
+
export interface SectionByProjectCOABalanceGroupedPayloadV2 extends COABalanceGroupedPayloadV2 {
|
|
18
|
+
projects: ProjectCOABalanceGroupedPayloadByProjectIdV2;
|
|
19
|
+
}
|
|
20
|
+
export interface ProfitAndLossProjectViewPayload extends ReportByProjectMetadataPayloadV2 {
|
|
21
|
+
cogs: SectionByProjectCOABalanceGroupedPayloadV2;
|
|
22
|
+
earnings_before_interest_and_tax: COABalanceGroupedPayloadV2;
|
|
23
|
+
expenses: SectionByProjectCOABalanceGroupedPayloadV2;
|
|
24
|
+
gross_profit: COABalanceGroupedPayloadV2;
|
|
25
|
+
income: SectionByProjectCOABalanceGroupedPayloadV2;
|
|
26
|
+
net_income: COABalanceGroupedPayloadV2;
|
|
27
|
+
net_operating_income: COABalanceGroupedPayloadV2;
|
|
28
|
+
net_other_income: COABalanceGroupedPayloadV2;
|
|
29
|
+
other_expenses: SectionByProjectCOABalanceGroupedPayloadV2;
|
|
30
|
+
other_income: SectionByProjectCOABalanceGroupedPayloadV2;
|
|
31
|
+
}
|
|
32
|
+
export type ProfitAndLossReportProjectViewResponse = ZeniReportResponse<ProfitAndLossProjectViewPayload>;
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { AccountViewMode, ID } from '../../commonStateTypes/common';
|
|
2
|
+
import { ZeniAPIStatus, ZeniReportData } from '../../responsePayload';
|
|
3
|
+
import { ProfitAndLossProjectViewPayload } from './profitAndLossProjectViewPayload';
|
|
4
|
+
import { ProfitAndLossProjectViewState } from './profitAndLossProjectViewState';
|
|
5
|
+
export declare const initialState: ProfitAndLossProjectViewState;
|
|
6
|
+
export declare const fetchProfitAndLossProjectView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[cacheOverride?: boolean | undefined], {
|
|
7
|
+
cacheOverride: boolean;
|
|
8
|
+
}, "profitAndLossProjectView/fetchProfitAndLossProjectView", never, never>, fetchProfitAndLossForTimeframeProjectView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[timeframe: "month" | "year" | "quarter", fetchFullReport?: boolean | undefined, cacheOverride?: boolean | undefined], {
|
|
9
|
+
timeframe: "month" | "year" | "quarter";
|
|
10
|
+
fetchFullReport: boolean;
|
|
11
|
+
cacheOverride: boolean;
|
|
12
|
+
}, "profitAndLossProjectView/fetchProfitAndLossForTimeframeProjectView", never, never>, updateProfitAndLossForTimeframeProjectView: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
13
|
+
report: ZeniReportData<ProfitAndLossProjectViewPayload>;
|
|
14
|
+
timeframe: "month" | "quarter" | "year";
|
|
15
|
+
}, "profitAndLossProjectView/updateProfitAndLossForTimeframeProjectView">, updateProfitAndLossForTimeframeProjectViewFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ZeniAPIStatus<Record<string, unknown>>, timeframe: "month" | "year" | "quarter"], {
|
|
16
|
+
error: ZeniAPIStatus<Record<string, unknown>>;
|
|
17
|
+
timeframe: "month" | "year" | "quarter";
|
|
18
|
+
}, "profitAndLossProjectView/updateProfitAndLossForTimeframeProjectViewFailure", never, never>, updateProjectsToFilterOut: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
19
|
+
projectsToFilterOut: ID[];
|
|
20
|
+
}, "profitAndLossProjectView/updateProjectsToFilterOut">, updateProfitAndLossProjectViewUIState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
21
|
+
nodeCollapseState?: {
|
|
22
|
+
isCollapsed: boolean;
|
|
23
|
+
nodeId: ID;
|
|
24
|
+
};
|
|
25
|
+
scrollPosition?: {
|
|
26
|
+
scrollTop: number;
|
|
27
|
+
scrollLeft?: number;
|
|
28
|
+
};
|
|
29
|
+
}, "profitAndLossProjectView/updateProfitAndLossProjectViewUIState">, updateProjectViewAccountViewMode: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
30
|
+
viewMode: AccountViewMode;
|
|
31
|
+
}, "profitAndLossProjectView/updateProjectViewAccountViewMode">, resetProfitAndLossProjectNodeCollapseState: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"profitAndLossProjectView/resetProfitAndLossProjectNodeCollapseState">, clearProfitAndLossProjectView: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"profitAndLossProjectView/clearProfitAndLossProjectView">;
|
|
32
|
+
declare const _default: import("redux").Reducer<ProfitAndLossProjectViewState>;
|
|
33
|
+
export default _default;
|