@zeniai/client-epic-state 4.19.86-betaRD7 → 4.19.86-betaRD8
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.
Potentially problematic release.
This version of @zeniai/client-epic-state might be problematic. Click here for more details.
- package/lib/esm/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewSelector.js +4 -1
- package/lib/tsconfig.typecheck.tsbuildinfo +1 -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
|
@@ -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,
|