mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
BIG-3: refactoring financial reports filtering.
This commit is contained in:
@@ -30,6 +30,7 @@ function CustomersTransactions({
|
||||
const [filter, setFilter] = useState({
|
||||
fromDate: moment().startOf('year').format('YYYY-MM-DD'),
|
||||
toDate: moment().endOf('year').format('YYYY-MM-DD'),
|
||||
filterByOption: 'with-transactions',
|
||||
});
|
||||
|
||||
const handleFilterSubmit = (filter) => {
|
||||
|
||||
@@ -10,7 +10,7 @@ import {
|
||||
ContactsMultiSelect,
|
||||
FormattedMessage as T,
|
||||
} from '../../../components';
|
||||
import { filterCustomersOptions } from '../common';
|
||||
import { filterCustomersOptions } from '../constants';
|
||||
|
||||
import {
|
||||
CustomersTransactionsGeneralPanelProvider,
|
||||
@@ -40,7 +40,7 @@ function CustomersTransactionsHeaderGeneralPanelContent() {
|
||||
<FinancialStatementsFilter
|
||||
items={filterCustomersOptions}
|
||||
label={<T id={'customers.label_filter_customers'} />}
|
||||
initialSelectedItem={'all-customers'}
|
||||
initialSelectedItem={'with-transactions'}
|
||||
/>
|
||||
<Row>
|
||||
<Col xs={5}>
|
||||
|
||||
Reference in New Issue
Block a user