From bf99bda616bf1ccba692ac894f264e569620192b Mon Sep 17 00:00:00 2001 From: elforjani13 <39470382+elforjani13@users.noreply.github.com> Date: Sat, 4 Dec 2021 22:16:36 +0200 Subject: [PATCH] fix: credit & vendor reducer. --- .../VendorsCreditNoteActionsBar.js | 7 ++++- .../CreditNotesLanding/withVendorActions.js | 13 ++++++++ .../withVendorsCreditNotes.js | 11 +++---- .../withVendorsCreditNotesActions.js | 12 +++---- .../CreditNotesLanding/withCreditNotes.js | 10 +++--- .../withCreditNotesActions.js | 10 +++--- src/hooks/query/creditNote.js | 28 ++--------------- src/hooks/query/vendorCredit.js | 2 +- .../creditNote.actions.js} | 6 ++-- .../creditNote.reducer.js} | 2 +- src/store/CreditNote/creditNote.selector.js | 29 +++++++++++++++++ .../creditNote.type.js} | 2 +- src/store/CreditNotes/creditNotes.selector.js | 29 ----------------- .../VendorCredit.reducer.js} | 4 +-- .../VendorCredit/vendorCredit.actions.js | 16 ++++++++++ .../VendorCredit/vendorCredit.selector.js | 31 +++++++++++++++++++ src/store/VendorCredit/vendorCredit.type.js | 4 +++ src/store/reducers.js | 14 ++++----- src/store/types.js | 8 ++--- .../vendorsCreditNotes.actions.js | 14 --------- .../vendorsCreditNotes.selector.js | 24 -------------- .../vendorsCreditNotes.type.js | 5 --- 22 files changed, 142 insertions(+), 139 deletions(-) create mode 100644 src/containers/Purchases/CreditNotes/CreditNotesLanding/withVendorActions.js rename src/store/{CreditNotes/creditNotes.actions.js => CreditNote/creditNote.actions.js} (54%) rename src/store/{CreditNotes/creditNotes.reducer.js => CreditNote/creditNote.reducer.js} (94%) create mode 100644 src/store/CreditNote/creditNote.selector.js rename src/store/{CreditNotes/creditNotes.type.js => CreditNote/creditNote.type.js} (57%) delete mode 100644 src/store/CreditNotes/creditNotes.selector.js rename src/store/{vendorsCreditNotes/vendorsCreditNotes.reducer.js => VendorCredit/VendorCredit.reducer.js} (84%) create mode 100644 src/store/VendorCredit/vendorCredit.actions.js create mode 100644 src/store/VendorCredit/vendorCredit.selector.js create mode 100644 src/store/VendorCredit/vendorCredit.type.js delete mode 100644 src/store/vendorsCreditNotes/vendorsCreditNotes.actions.js delete mode 100644 src/store/vendorsCreditNotes/vendorsCreditNotes.selector.js delete mode 100644 src/store/vendorsCreditNotes/vendorsCreditNotes.type.js diff --git a/src/containers/Purchases/CreditNotes/CreditNotesLanding/VendorsCreditNoteActionsBar.js b/src/containers/Purchases/CreditNotes/CreditNotesLanding/VendorsCreditNoteActionsBar.js index 681b5da68..1757f6863 100644 --- a/src/containers/Purchases/CreditNotes/CreditNotesLanding/VendorsCreditNoteActionsBar.js +++ b/src/containers/Purchases/CreditNotes/CreditNotesLanding/VendorsCreditNoteActionsBar.js @@ -25,12 +25,16 @@ import withVendorsCreditNotesActions from './withVendorsCreditNotesActions'; import withSettings from '../../../Settings/withSettings'; import withSettingsActions from '../../../Settings/withSettingsActions'; +import withVendorActions from './withVendorActions'; + import { compose } from 'utils'; /** * Vendors Credit note table actions bar. */ function VendorsCreditNoteActionsBar({ + setVendorCreditsTableState, + // #withVendorsCreditNotes vendorCreditFilterRoles, @@ -56,7 +60,7 @@ function VendorsCreditNoteActionsBar({ // Handle view tab change. const handleTabChange = (view) => { - setVendorsCreditNoteTableState({ viewSlug: view ? view.slug : null }); + setVendorCreditsTableState({ viewSlug: view ? view.slug : null }); }; // Handle click a refresh credit note. @@ -136,6 +140,7 @@ function VendorsCreditNoteActionsBar({ export default compose( withVendorsCreditNotesActions, + withVendorActions, withSettingsActions, withVendorsCreditNotes(({ vendorsCreditNoteTableState }) => ({ vendorCreditFilterRoles: vendorsCreditNoteTableState.filterRoles, diff --git a/src/containers/Purchases/CreditNotes/CreditNotesLanding/withVendorActions.js b/src/containers/Purchases/CreditNotes/CreditNotesLanding/withVendorActions.js new file mode 100644 index 000000000..fc9a533e1 --- /dev/null +++ b/src/containers/Purchases/CreditNotes/CreditNotesLanding/withVendorActions.js @@ -0,0 +1,13 @@ +import { connect } from 'react-redux'; +import { + setVendorCreditTableState, + resetVendorCreditTableState, +} from '../../../../store/VendorCredit/vendorCredit.actions'; + +const mapDipatchToProps = (dispatch) => ({ + setVendorCreditsTableState: (queries) => + dispatch(setVendorCreditTableState(queries)), + resetVendorCreditsTableState: () => dispatch(resetVendorCreditTableState()), +}); + +export default connect(null, mapDipatchToProps); diff --git a/src/containers/Purchases/CreditNotes/CreditNotesLanding/withVendorsCreditNotes.js b/src/containers/Purchases/CreditNotes/CreditNotesLanding/withVendorsCreditNotes.js index 935983957..1b3544513 100644 --- a/src/containers/Purchases/CreditNotes/CreditNotesLanding/withVendorsCreditNotes.js +++ b/src/containers/Purchases/CreditNotes/CreditNotesLanding/withVendorsCreditNotes.js @@ -1,14 +1,13 @@ import { connect } from 'react-redux'; import { - getVendorsCreditNoteTableStateFactory, - isVendorsCreditNoteTableStateChangedFactory, -} from '../../../../store/vendorsCreditNotes/vendorsCreditNotes.selector'; + getVendorCreditTableStateFactory, + isVendorCreditTableStateChangedFactory, +} from '../../../../store/VendorCredit/vendorCredit.selector'; export default (mapState) => { - const getVendorsCreditNoteTableState = - getVendorsCreditNoteTableStateFactory(); + const getVendorsCreditNoteTableState = getVendorCreditTableStateFactory(); const isVendorsCreditNoteTableChanged = - isVendorsCreditNoteTableStateChangedFactory(); + isVendorCreditTableStateChangedFactory(); const mapStateToProps = (state, props) => { const mapped = { diff --git a/src/containers/Purchases/CreditNotes/CreditNotesLanding/withVendorsCreditNotesActions.js b/src/containers/Purchases/CreditNotes/CreditNotesLanding/withVendorsCreditNotesActions.js index 9f1ff19b2..d397cd1ac 100644 --- a/src/containers/Purchases/CreditNotes/CreditNotesLanding/withVendorsCreditNotesActions.js +++ b/src/containers/Purchases/CreditNotes/CreditNotesLanding/withVendorsCreditNotesActions.js @@ -1,14 +1,14 @@ import { connect } from 'react-redux'; import { - setVendorsCreditNoteTableState, - resetVendorsCreditNoteTableState, -} from '../../../../store/vendorsCreditNotes/vendorsCreditNotes.actions'; + setVendorCreditTableState, + resetVendorCreditTableState, +} from '../../../../store/VendorCredit/vendorCredit.actions'; const mapDispatchToProps = (dispatch) => ({ - setVendorsCreditNoteTableState: (state) => - dispatch(setVendorsCreditNoteTableState(state)), + setVendorsCreditNoteTableState: (queries) => + dispatch(setVendorCreditTableState(queries)), resetVendorsCreditNoteTableState: () => - dispatch(resetVendorsCreditNoteTableState()), + dispatch(resetVendorCreditTableState()), }); export default connect(null, mapDispatchToProps); diff --git a/src/containers/Sales/CreditNotes/CreditNotesLanding/withCreditNotes.js b/src/containers/Sales/CreditNotes/CreditNotesLanding/withCreditNotes.js index 5f6aafdbe..f9c8b0b9a 100644 --- a/src/containers/Sales/CreditNotes/CreditNotesLanding/withCreditNotes.js +++ b/src/containers/Sales/CreditNotes/CreditNotesLanding/withCreditNotes.js @@ -1,12 +1,12 @@ import { connect } from 'react-redux'; import { - getCreditNoteTableStateFactory, - isCreditNoteTableStateChangedFactory, -} from '../../../../store/CreditNotes/creditNotes.selector'; + getCreditNotesTableStateFactory, + isCreditNotesTableStateChangedFactory, +} from '../../../../store/CreditNote/creditNote.selector'; export default (mapState) => { - const getCreditNoteTableState = getCreditNoteTableStateFactory(); - const isCreditNoteTableChanged = isCreditNoteTableStateChangedFactory(); + const getCreditNoteTableState = getCreditNotesTableStateFactory(); + const isCreditNoteTableChanged = isCreditNotesTableStateChangedFactory(); const mapStateToProps = (state, props) => { const mapped = { diff --git a/src/containers/Sales/CreditNotes/CreditNotesLanding/withCreditNotesActions.js b/src/containers/Sales/CreditNotes/CreditNotesLanding/withCreditNotesActions.js index 994a498f4..cedc9dbd4 100644 --- a/src/containers/Sales/CreditNotes/CreditNotesLanding/withCreditNotesActions.js +++ b/src/containers/Sales/CreditNotes/CreditNotesLanding/withCreditNotesActions.js @@ -1,13 +1,13 @@ import { connect } from 'react-redux'; import { - setCreditNotesTableState, - resetCreditNotesTableState, -} from '../../../../store/CreditNotes/creditNotes.actions'; + setCreditNoteTableState, + resetCreditNoteTableState, +} from '../../../../store/CreditNote/creditNote.actions'; const mapDipatchToProps = (dispatch) => ({ setCreditNotesTableState: (queries) => - dispatch(setCreditNotesTableState(queries)), - resetCreditNotesTableState: () => dispatch(resetCreditNotesTableState()), + dispatch(setCreditNoteTableState(queries)), + resetCreditNotesTableState: () => dispatch(resetCreditNoteTableState()), }); export default connect(null, mapDipatchToProps); diff --git a/src/hooks/query/creditNote.js b/src/hooks/query/creditNote.js index 3095f53c7..ee3f8f61e 100644 --- a/src/hooks/query/creditNote.js +++ b/src/hooks/query/creditNote.js @@ -88,7 +88,7 @@ export function useDeleteCreditNote(props) { }); } -const transformInvoices = (res) => ({ +const transformCreditNotes = (res) => ({ creditNotes: res.data.credit_notes, pagination: transformPagination(res.data.pagination), filterMeta: res.data.filter_meta, @@ -102,7 +102,7 @@ export function useCreditNotes(query, props) { [t.CREDIT_NOTES, query], { method: 'get', url: 'sales/credit_notes', params: query }, { - select: transformInvoices, + select: transformCreditNotes, defaultData: { creditNotes: [], pagination: { @@ -117,30 +117,6 @@ export function useCreditNotes(query, props) { ); } -// export function useCreditNotes(query, props) { -// return useRequestQuery( -// [t.CREDIT_NOTES], -// { -// method: 'get', -// url: 'sales/credit_notes', -// params: query, -// }, -// { -// select: transformVendorCreditsResponse, -// defaultData: { -// credit_notes: {}, -// pagination: { -// page: 1, -// page_size: 12, -// total: 0, -// }, -// filterMeta: {}, -// }, -// ...props, -// }, -// ); -// } - /** * Retrieve credit note detail of the given id. * @param {number} id diff --git a/src/hooks/query/vendorCredit.js b/src/hooks/query/vendorCredit.js index 272d30ab7..d4b5206f6 100644 --- a/src/hooks/query/vendorCredit.js +++ b/src/hooks/query/vendorCredit.js @@ -102,7 +102,7 @@ const transformVendorCreditsResponse = (response) => ({ */ export function useVendorCredits(query, props) { return useRequestQuery( - [t.VENDOR_CREDITS], + [t.VENDOR_CREDITS, query], { method: 'get', url: 'purchases/vendor-credit', diff --git a/src/store/CreditNotes/creditNotes.actions.js b/src/store/CreditNote/creditNote.actions.js similarity index 54% rename from src/store/CreditNotes/creditNotes.actions.js rename to src/store/CreditNote/creditNote.actions.js index 3215979ba..2592bfe54 100644 --- a/src/store/CreditNotes/creditNotes.actions.js +++ b/src/store/CreditNote/creditNote.actions.js @@ -1,14 +1,16 @@ import t from 'store/types'; -export const setCreditNotesTableState = (queries) => { +export const setCreditNoteTableState = (queries) => { return { type: t.CREDIT_NOTES_TABLE_STATE_SET, payload: { queries }, }; }; -export const resetCreditNotesTableState = () => { +export const resetCreditNoteTableState = () => { return { type: t.CREDIT_NOTES_TABLE_STATE_RESET, }; }; + +export const setSelectedRowsItems = () => {}; diff --git a/src/store/CreditNotes/creditNotes.reducer.js b/src/store/CreditNote/creditNote.reducer.js similarity index 94% rename from src/store/CreditNotes/creditNotes.reducer.js rename to src/store/CreditNote/creditNote.reducer.js index 58c3c1340..8a543fabc 100644 --- a/src/store/CreditNotes/creditNotes.reducer.js +++ b/src/store/CreditNote/creditNote.reducer.js @@ -15,7 +15,7 @@ const initialState = { tableState: defaultTableQuery, }; -const STORAGE_KEY = 'bigcapital:creditNotes'; +const STORAGE_KEY = 'bigcapital:credit_notes'; const CONFIG = { key: STORAGE_KEY, diff --git a/src/store/CreditNote/creditNote.selector.js b/src/store/CreditNote/creditNote.selector.js new file mode 100644 index 000000000..77f761260 --- /dev/null +++ b/src/store/CreditNote/creditNote.selector.js @@ -0,0 +1,29 @@ +import { isEqual } from 'lodash'; +import { paginationLocationQuery } from 'store/selectors'; +import { createDeepEqualSelector } from 'utils'; +import { defaultTableQuery } from './creditNote.reducer'; + +const creditsTableStateSelector = (state) => state.creditNotes.tableState; + +/** + * Retrieve credit notes table state. + */ +export const getCreditNotesTableStateFactory = () => + createDeepEqualSelector( + paginationLocationQuery, + creditsTableStateSelector, + (locationQuery, tableState) => { + return { + ...locationQuery, + ...tableState, + }; + }, + ); + +/** + * Retrieve credit notes table state. + */ +export const isCreditNotesTableStateChangedFactory = () => + createDeepEqualSelector(creditsTableStateSelector, (tableState) => { + return !isEqual(tableState, defaultTableQuery); + }); diff --git a/src/store/CreditNotes/creditNotes.type.js b/src/store/CreditNote/creditNote.type.js similarity index 57% rename from src/store/CreditNotes/creditNotes.type.js rename to src/store/CreditNote/creditNote.type.js index 8fee4fcfc..85585381a 100644 --- a/src/store/CreditNotes/creditNotes.type.js +++ b/src/store/CreditNote/creditNote.type.js @@ -1,4 +1,4 @@ export default { - CREDIT_NOTES_TABLE_STATE_SET: 'CREDIT_NOTE/TABLE_STATE_SET', + CREDIT_NOTES_TABLE_STATE_SET: 'CREDIT_NOTES/TABLE_STATE_SET', CREDIT_NOTES_TABLE_STATE_RESET: 'CREDIT_NOTE/TABLE_STATE_RESET', }; diff --git a/src/store/CreditNotes/creditNotes.selector.js b/src/store/CreditNotes/creditNotes.selector.js deleted file mode 100644 index 54bedeedf..000000000 --- a/src/store/CreditNotes/creditNotes.selector.js +++ /dev/null @@ -1,29 +0,0 @@ -import { isEqual } from 'lodash'; -import { paginationLocationQuery } from 'store/selectors'; -import { createDeepEqualSelector } from 'utils'; -import { defaultTableQuery } from './creditNotes.reducer'; - -const creditNotesTableStateSelector = (state) => state.creditNotes.tableState; - -/** - * Retrieve credit note table state. - */ -export const getCreditNoteTableStateFactory = () => - createDeepEqualSelector( - paginationLocationQuery, - creditNotesTableStateSelector, - (locationQuery, tableState) => { - return { - ...locationQuery, - ...tableState, - }; - }, - ); - -/** - * Retrieve Credit note table state. - */ -export const isCreditNoteTableStateChangedFactory = () => - createDeepEqualSelector(creditNotesTableStateSelector, (tableState) => { - return !isEqual(tableState, defaultTableQuery); - }); diff --git a/src/store/vendorsCreditNotes/vendorsCreditNotes.reducer.js b/src/store/VendorCredit/VendorCredit.reducer.js similarity index 84% rename from src/store/vendorsCreditNotes/vendorsCreditNotes.reducer.js rename to src/store/VendorCredit/VendorCredit.reducer.js index c1709dec7..ac35b0e2b 100644 --- a/src/store/vendorsCreditNotes/vendorsCreditNotes.reducer.js +++ b/src/store/VendorCredit/VendorCredit.reducer.js @@ -15,7 +15,7 @@ const initialState = { tableState: defaultTableQuery, }; -const STORAGE_KEY = 'bigcapital:vendorsCreditNotes'; +const STORAGE_KEY = 'bigcapital:vendor_credits'; const CONFIG = { key: STORAGE_KEY, @@ -24,7 +24,7 @@ const CONFIG = { }; const reducerInstance = createReducer(initialState, { - ...createTableStateReducers('VENDORS_CREDIT_NOTES', defaultTableQuery), + ...createTableStateReducers('VENDOR_CREDITS', defaultTableQuery), [t.RESET]: () => { purgeStoredState(CONFIG); diff --git a/src/store/VendorCredit/vendorCredit.actions.js b/src/store/VendorCredit/vendorCredit.actions.js new file mode 100644 index 000000000..423d9df76 --- /dev/null +++ b/src/store/VendorCredit/vendorCredit.actions.js @@ -0,0 +1,16 @@ +import t from 'store/types'; + +export const setVendorCreditTableState = (queries) => { + return { + type: t.VENDOR_CREDITS_TABLE_STATE_SET, + payload: { queries }, + }; +}; + +export const resetVendorCreditTableState = () => { + return { + type: t.VENDOR_CREDITS_NOTES_TABLE_STATE_RESET, + }; +}; + +export const setSelectedRowsItems = () => {}; diff --git a/src/store/VendorCredit/vendorCredit.selector.js b/src/store/VendorCredit/vendorCredit.selector.js new file mode 100644 index 000000000..e66ffdd77 --- /dev/null +++ b/src/store/VendorCredit/vendorCredit.selector.js @@ -0,0 +1,31 @@ +import { isEqual } from 'lodash'; +import { paginationLocationQuery } from 'store/selectors'; +import { createDeepEqualSelector } from 'utils'; +import { defaultTableQuery } from './VendorCredit.reducer'; + +const vendorCreditsTableStateSelector = (state) => { + return state.vendorCredit.tableState; +}; + +/** + * Retrieve vendor credit table state. + */ +export const getVendorCreditTableStateFactory = () => + createDeepEqualSelector( + paginationLocationQuery, + vendorCreditsTableStateSelector, + (locationQuery, tableState) => { + return { + ...locationQuery, + ...tableState, + }; + }, + ); + +/** + * Retrieve vendor credit table state. + */ +export const isVendorCreditTableStateChangedFactory = () => + createDeepEqualSelector(vendorCreditsTableStateSelector, (tableState) => { + return !isEqual(tableState, defaultTableQuery); + }); diff --git a/src/store/VendorCredit/vendorCredit.type.js b/src/store/VendorCredit/vendorCredit.type.js new file mode 100644 index 000000000..b68fcad28 --- /dev/null +++ b/src/store/VendorCredit/vendorCredit.type.js @@ -0,0 +1,4 @@ +export default { + VENDOR_CREDITS_TABLE_STATE_SET: 'VENDOR_CREDITS/TABLE_STATE_SET', + VENDOR_CREDITS_NOTES_TABLE_STATE_RESET: 'VENDOR_CREDITS/TABLE_STATE_RESET', +}; diff --git a/src/store/reducers.js b/src/store/reducers.js index d31620314..ad28a32e6 100644 --- a/src/store/reducers.js +++ b/src/store/reducers.js @@ -31,9 +31,9 @@ import paymentMades from './PaymentMades/paymentMades.reducer'; import organizations from './organizations/organizations.reducers'; import subscriptions from './subscription/subscription.reducer'; import inventoryAdjustments from './inventoryAdjustments/inventoryAdjustment.reducer'; -import creditNotes from './CreditNotes/creditNotes.reducer' -import vendorsCreditNotes from './vendorsCreditNotes/vendorsCreditNotes.reducer' import plans from './plans/plans.reducer'; +import creditNotes from './CreditNote/creditNote.reducer'; +import vendorCredit from './VendorCredit/VendorCredit.reducer'; const appReducer = combineReducers({ authentication, @@ -65,9 +65,9 @@ const appReducer = combineReducers({ paymentReceives, paymentMades, inventoryAdjustments, + plans, creditNotes, - vendorsCreditNotes, - plans + vendorCredit, }); // Reset the state of a redux store @@ -75,7 +75,7 @@ const rootReducer = (state, action) => { if (action.type === types.RESET) { state = undefined; } - return appReducer(state, action) -} + return appReducer(state, action); +}; -export default rootReducer; \ No newline at end of file +export default rootReducer; diff --git a/src/store/types.js b/src/store/types.js index 5617f8f59..3e509142f 100644 --- a/src/store/types.js +++ b/src/store/types.js @@ -28,8 +28,8 @@ import paymentMades from './PaymentMades/paymentMades.type'; import organizations from './organizations/organizations.types'; import subscription from './subscription/subscription.types'; import inventoryAdjustments from './inventoryAdjustments/inventoryAdjustment.type'; -import creditNotes from './CreditNotes/creditNotes.type'; -import vendorsCreditNotes from './vendorsCreditNotes/vendorsCreditNotes.type'; +import creditNote from './CreditNote/creditNote.type'; +import vendorCredit from './VendorCredit/vendorCredit.type'; import plans from './plans/plans.types'; export default { @@ -63,7 +63,7 @@ export default { ...organizations, ...subscription, ...inventoryAdjustments, - ...creditNotes, - ...vendorsCreditNotes, ...plans, + ...creditNote, + ...vendorCredit }; diff --git a/src/store/vendorsCreditNotes/vendorsCreditNotes.actions.js b/src/store/vendorsCreditNotes/vendorsCreditNotes.actions.js deleted file mode 100644 index 6c05d9fbd..000000000 --- a/src/store/vendorsCreditNotes/vendorsCreditNotes.actions.js +++ /dev/null @@ -1,14 +0,0 @@ -import t from 'store/types'; - -export const setVendorsCreditNoteTableState = (queries) => { - return { - type: t.VENDORS_CREDIT_NOTE_TABLE_STATE_SET, - payload: { queries }, - }; -}; - -export const resetVendorsCreditNoteTableState = () => { - return { - type: t.VENDORS_CREDIT_NOTE_TABLE_STATE_RESET, - }; -}; diff --git a/src/store/vendorsCreditNotes/vendorsCreditNotes.selector.js b/src/store/vendorsCreditNotes/vendorsCreditNotes.selector.js deleted file mode 100644 index dc5f242fe..000000000 --- a/src/store/vendorsCreditNotes/vendorsCreditNotes.selector.js +++ /dev/null @@ -1,24 +0,0 @@ -import { isEqual } from 'lodash'; -import { paginationLocationQuery } from 'store/selectors'; -import { createDeepEqualSelector } from 'utils'; -import { defaultTableQuery } from './vendorsCreditNotes.reducer'; - -const VendorsCreditNoteTableStateSelector = (state) => - state.vendorsCreditNotes.tableState; - -export const getVendorsCreditNoteTableStateFactory = () => - createDeepEqualSelector( - paginationLocationQuery, - VendorsCreditNoteTableStateSelector, - (locationQuery, tableState) => { - return { - ...locationQuery, - ...tableState, - }; - }, - ); - -export const isVendorsCreditNoteTableStateChangedFactory = () => - createDeepEqualSelector(VendorsCreditNoteTableStateSelector, (tableState) => { - return !isEqual(tableState, defaultTableQuery); - }); diff --git a/src/store/vendorsCreditNotes/vendorsCreditNotes.type.js b/src/store/vendorsCreditNotes/vendorsCreditNotes.type.js deleted file mode 100644 index 91453205b..000000000 --- a/src/store/vendorsCreditNotes/vendorsCreditNotes.type.js +++ /dev/null @@ -1,5 +0,0 @@ -export default { - VENDORS_CREDIT_NOTE_TABLE_STATE_SET: 'VENDORS_CREDIT_NOTE/TABLES_STATE_SET', - VENDORS_CREDIT_NOTE_TABLE_STATE_RESET: - 'VENDORS_CREDIT_NOTE/TABLE_STATE/RESET', -};