This commit is contained in:
Ahmed Bouhuolia
2025-11-12 21:34:30 +02:00
parent a0bc9db9a6
commit 2383091b6e
29 changed files with 279 additions and 78 deletions

View File

@@ -4,6 +4,7 @@ import { isEqual } from 'lodash';
import { paginationLocationQuery } from '@/store/selectors';
import { createDeepEqualSelector } from '@/utils';
import { defaultTableQuery } from './receipts.reducer';
import { createSelector } from 'reselect';
const receiptTableStateSelector = (state) => state.salesReceipts.tableState;
@@ -24,3 +25,9 @@ export const receiptsTableStateChangedFactory = () =>
createDeepEqualSelector(receiptTableStateSelector, (tableState) => {
return !isEqual(tableState, defaultTableQuery);
});
export const getReceiptsSelectedRowsFactory = () =>
createSelector(
(state) => state.salesReceipts.selectedRows,
(selectedRows) => selectedRows,
);