mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 04:10:32 +00:00
30 lines
740 B
JavaScript
30 lines
740 B
JavaScript
import intl from 'react-intl-universal';
|
|
import moment from 'moment';
|
|
|
|
export const filterAccountsOptions = [
|
|
{
|
|
key: 'all-accounts',
|
|
name: intl.get('all_accounts'),
|
|
hint: intl.get('all_accounts_including_with_zero_balance'),
|
|
},
|
|
{
|
|
key: 'with-transactions',
|
|
name: intl.get('accounts_with_transactions'),
|
|
hint: intl.get(
|
|
'include_accounts_once_has_transactions_on_given_date_period',
|
|
),
|
|
},
|
|
];
|
|
|
|
/**
|
|
* Retrieves the default general ledger query.
|
|
*/
|
|
export const getDefaultGeneralLedgerQuery = () => {
|
|
return {
|
|
fromDate: moment().startOf('year').format('YYYY-MM-DD'),
|
|
toDate: moment().endOf('year').format('YYYY-MM-DD'),
|
|
basis: 'accural',
|
|
filterByOption: 'with-transactions',
|
|
};
|
|
};
|