mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 22:00:31 +00:00
BIG-3: refactoring financial reports filtering.
This commit is contained in:
@@ -27,6 +27,7 @@ function PurchasesByItems({
|
||||
const [filter, setFilter] = useState({
|
||||
fromDate: moment().startOf('year').format('YYYY-MM-DD'),
|
||||
toDate: moment().endOf('year').format('YYYY-MM-DD'),
|
||||
filterByOption: 'with-transactions',
|
||||
});
|
||||
|
||||
// Handle filter form submit.
|
||||
|
||||
@@ -10,7 +10,7 @@ import {
|
||||
import classNames from 'classnames';
|
||||
import FinancialStatementDateRange from 'containers/FinancialStatements/FinancialStatementDateRange';
|
||||
import FinancialStatementsFilter from '../FinancialStatementsFilter';
|
||||
import { filterItemsOptions } from '../common';
|
||||
import { filterItemsOptions } from '../constants';
|
||||
|
||||
import {
|
||||
PurchasesByItemsGeneralPanelProvider,
|
||||
@@ -40,7 +40,7 @@ function PurchasesByItemsGeneralPanelContent() {
|
||||
<FinancialStatementsFilter
|
||||
items={filterItemsOptions}
|
||||
label={<T id={'items.label_filter_items'} />}
|
||||
initialSelectedItem={'all-items'}
|
||||
initialSelectedItem={'with-transactions'}
|
||||
/>
|
||||
|
||||
<Row>
|
||||
|
||||
Reference in New Issue
Block a user