Merge pull request #1168 from FR6/develop

Report settings: Date Range: Added "This Year" to the list of shortcuts
This commit is contained in:
Hillel Coren 2016-11-23 19:55:32 +02:00 committed by GitHub
commit f9f7217b86

View File

@ -37,7 +37,8 @@
'Last 7 Days': [moment().subtract(6, 'days'), moment()], 'Last 7 Days': [moment().subtract(6, 'days'), moment()],
'Last 30 Days': [moment().subtract(29, 'days'), moment()], 'Last 30 Days': [moment().subtract(29, 'days'), moment()],
'This Month': [moment().startOf('month'), moment().endOf('month')], 'This Month': [moment().startOf('month'), moment().endOf('month')],
'Last Month': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')] 'Last Month': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')],
'This Year': [moment().startOf('year'), moment().endOf('month')]
} }
}, cb); }, cb);