From 63f525c5e3a1b0734b3c578ecd8bcb8d7ac0fa6c Mon Sep 17 00:00:00 2001 From: Francis Houle Date: Wed, 23 Nov 2016 16:32:11 +0000 Subject: [PATCH] report settings: date range: add This Year shortcut --- resources/views/reports/chart_builder.blade.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/views/reports/chart_builder.blade.php b/resources/views/reports/chart_builder.blade.php index 7b6d15bc1347..696c9ab5e2e2 100644 --- a/resources/views/reports/chart_builder.blade.php +++ b/resources/views/reports/chart_builder.blade.php @@ -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);