fix(webapp): change the default from/to date values of reports

This commit is contained in:
Ahmed Bouhuolia
2023-08-27 16:00:54 +02:00
parent c7a3bac44c
commit 4df63561cf
17 changed files with 30 additions and 32 deletions

View File

@@ -28,8 +28,8 @@ export const filterAccountsOptions = [
* Retrieves the default general ledger query.
*/
export const getDefaultGeneralLedgerQuery = () => ({
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',
filterByOption: 'with-transactions',
branchesIds: [],