report settings: date range: add This Year shortcut

This commit is contained in:
Francis Houle 2016-11-23 16:32:11 +00:00
parent 856944104e
commit 63f525c5e3

View File

@ -37,7 +37,8 @@
'Last 7 Days': [moment().subtract(6, 'days'), moment()],
'Last 30 Days': [moment().subtract(29, 'days'), moment()],
'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);