@zeniai/client-epic-state 4.19.86-betaRD7 → 4.19.86-betaRD9
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/esm/view/commonVendorView/vendorView/vendorViewSelector.js +2 -1
- package/lib/esm/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewSelector.js +4 -1
- package/lib/tsconfig.typecheck.tsbuildinfo +1 -1
- package/lib/view/commonVendorView/vendorView/vendorViewSelector.js +2 -1
- package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewSelector.d.ts +1 -0
- package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewSelector.js +4 -1
- package/package.json +1 -1
|
@@ -228,9 +228,10 @@ const getBasicVendorDetailsForNewVendor = (state, newVendor) => {
|
|
|
228
228
|
};
|
|
229
229
|
export const getVendorDetailPageView = (state, vendorId, entity) => {
|
|
230
230
|
const trendWithTransactions = getTrendWithTransactions(state, entity, 'EntityDetail');
|
|
231
|
+
const isAccountingClassesEnabled = getIsAccountingClassesEnabled(state);
|
|
231
232
|
const reducedFetchState = reduceAnyFetchState([
|
|
232
233
|
state.accountListState.byReportId.accountList,
|
|
233
|
-
state.classListState,
|
|
234
|
+
...(isAccountingClassesEnabled ? [state.classListState] : []),
|
|
234
235
|
state.vendorTypeListState,
|
|
235
236
|
state.ownerListState,
|
|
236
237
|
state.vendorViewState.editVendorStateById[vendorId]?.fetchStatus ?? {
|
|
@@ -3,6 +3,7 @@ import { getStartOfAndEndOfTimeframeForFY } from '../../../commonStateTypes/fisc
|
|
|
3
3
|
import { reduceAnyFetchState, reduceFetchState, } from '../../../commonStateTypes/reduceFetchState';
|
|
4
4
|
import { stringToUnion } from '../../../commonStateTypes/stringToUnion';
|
|
5
5
|
import { getAccountBase } from '../../../entity/account/accountSelector';
|
|
6
|
+
import { getIsAccountingClassesEnabled } from '../../../entity/tenant/tenantSelector';
|
|
6
7
|
import { getAddressByAddressId } from '../../../entity/address/addressSelector';
|
|
7
8
|
import { getContactsByIds } from '../../../entity/billPay/contact/contactSelector';
|
|
8
9
|
import { getClassById } from '../../../entity/class/classSelector';
|
|
@@ -20,6 +21,7 @@ const ALL_VENDOR_DETAIL_TABS_TYPES = [
|
|
|
20
21
|
export const toVendorDetailTabsType = (v) => stringToUnion(v, ALL_VENDOR_DETAIL_TABS_TYPES);
|
|
21
22
|
export const getVendorsTabVendorView = (state, vendorIdFromUrl) => {
|
|
22
23
|
const { accountListState, accountState, classListState, classState, vendorState, userState, vendorsTabVendorViewState, vendorTypeListState, addressState, addressViewState, contactState, } = state;
|
|
24
|
+
const isAccountingClassesEnabled = getIsAccountingClassesEnabled(state);
|
|
23
25
|
const accountList = getAccountList(accountState, accountListState, 'accountList');
|
|
24
26
|
const classList = getClassList(classState, classListState);
|
|
25
27
|
const ownerList = getUsersByUserIds(state.userState, state.ownerListState.ownerIds);
|
|
@@ -51,7 +53,7 @@ export const getVendorsTabVendorView = (state, vendorIdFromUrl) => {
|
|
|
51
53
|
}
|
|
52
54
|
fetchState = reduceFetchState([
|
|
53
55
|
accountList,
|
|
54
|
-
classList,
|
|
56
|
+
...(isAccountingClassesEnabled ? [classList] : []),
|
|
55
57
|
vendorTypeListState,
|
|
56
58
|
vendorsTabVendorViewState.vendorStateById[vendorIdFromUrl]?.fetchStatus ?? {
|
|
57
59
|
fetchState: 'Not-Started',
|
|
@@ -62,6 +64,7 @@ export const getVendorsTabVendorView = (state, vendorIdFromUrl) => {
|
|
|
62
64
|
return {
|
|
63
65
|
accountList: accountList,
|
|
64
66
|
classList: classList,
|
|
67
|
+
isAccountingClassesEnabled,
|
|
65
68
|
vendorTypeList: vendorTypeList,
|
|
66
69
|
accountsHierarchyList,
|
|
67
70
|
classHierarchyList,
|