mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
fix(webapp): change the default from/to date values of reports
This commit is contained in:
@@ -11,17 +11,16 @@ import { transformToForm } from '@/utils';
|
||||
*/
|
||||
export const getDefaultJournalQuery = () => {
|
||||
return {
|
||||
fromDate: moment().startOf('year').format('YYYY-MM-DD'),
|
||||
toDate: moment().endOf('year').format('YYYY-MM-DD'),
|
||||
fromDate: moment().startOf('month').format('YYYY-MM-DD'),
|
||||
toDate: moment().format('YYYY-MM-DD'),
|
||||
basis: 'accrual',
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Parses balance sheet query.
|
||||
*/
|
||||
const parseJournalQuery = (locationQuery) => {
|
||||
const parseJournalQuery = (locationQuery) => {
|
||||
const defaultQuery = getDefaultJournalQuery();
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user