mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Merge pull request #2802 from FELDSAM-INC/feature/schd-reports-ranges
Scheduled Reports - Add ranges with quarters
This commit is contained in:
commit
503178693f
@ -46,6 +46,14 @@ class RunReport extends Job
|
|||||||
$startDate = Carbon::now()->subMonth()->firstOfMonth()->toDateString();
|
$startDate = Carbon::now()->subMonth()->firstOfMonth()->toDateString();
|
||||||
$endDate = Carbon::now()->subMonth()->lastOfMonth()->toDateString();
|
$endDate = Carbon::now()->subMonth()->lastOfMonth()->toDateString();
|
||||||
break;
|
break;
|
||||||
|
case 'this_quarter':
|
||||||
|
$startDate = Carbon::now()->firstOfQuarter()->toDateString();
|
||||||
|
$endDate = Carbon::now()->lastOfQuarter()->toDateString();
|
||||||
|
break;
|
||||||
|
case 'last_quarter':
|
||||||
|
$startDate = Carbon::now()->subMonth(3)->firstOfQuarter()->toDateString();
|
||||||
|
$endDate = Carbon::now()->subMonth(3)->lastOfQuarter()->toDateString();
|
||||||
|
break;
|
||||||
case 'this_year':
|
case 'this_year':
|
||||||
$startDate = Carbon::now()->firstOfYear()->toDateString();
|
$startDate = Carbon::now()->firstOfYear()->toDateString();
|
||||||
$endDate = Carbon::now()->lastOfYear()->toDateString();
|
$endDate = Carbon::now()->lastOfYear()->toDateString();
|
||||||
|
@ -135,6 +135,7 @@ $LANG = array(
|
|||||||
'status' => 'Status',
|
'status' => 'Status',
|
||||||
'invoice_total' => 'Invoice Total',
|
'invoice_total' => 'Invoice Total',
|
||||||
'frequency' => 'Frequency',
|
'frequency' => 'Frequency',
|
||||||
|
'range' => 'Range',
|
||||||
'start_date' => 'Start Date',
|
'start_date' => 'Start Date',
|
||||||
'end_date' => 'End Date',
|
'end_date' => 'End Date',
|
||||||
'transaction_reference' => 'Transaction Reference',
|
'transaction_reference' => 'Transaction Reference',
|
||||||
|
@ -359,6 +359,16 @@
|
|||||||
<div id="scheduleHelp"></div>
|
<div id="scheduleHelp"></div>
|
||||||
</center>
|
</center>
|
||||||
|
|
||||||
|
{!! Former::select('range')
|
||||||
|
->addOption(trans('texts.none'), '')
|
||||||
|
->addOption(trans('texts.this_month'), 'this_month')
|
||||||
|
->addOption(trans('texts.last_month'), 'last_month')
|
||||||
|
->addOption(trans('texts.current_quarter'), 'this_quarter')
|
||||||
|
->addOption(trans('texts.last_quarter'), 'last_quarter')
|
||||||
|
->addOption(trans('texts.this_year'), 'this_year')
|
||||||
|
->addOption(trans('texts.last_year'), 'last_year')
|
||||||
|
->value('') !!}
|
||||||
|
|
||||||
{!! Former::select('frequency')
|
{!! Former::select('frequency')
|
||||||
->addOption(trans('texts.freq_daily'), REPORT_FREQUENCY_DAILY)
|
->addOption(trans('texts.freq_daily'), REPORT_FREQUENCY_DAILY)
|
||||||
->addOption(trans('texts.freq_weekly'), REPORT_FREQUENCY_WEEKLY)
|
->addOption(trans('texts.freq_weekly'), REPORT_FREQUENCY_WEEKLY)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user