mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Working on scheduled reports
This commit is contained in:
parent
5a17953c76
commit
92936246aa
@ -134,10 +134,19 @@ class SendReminders extends Command
|
|||||||
|
|
||||||
private function sendScheduledReports()
|
private function sendScheduledReports()
|
||||||
{
|
{
|
||||||
$scheduledReports = ScheduledReport::where('send_date', '<=', date('Y-m-d'))->get();
|
$scheduledReports = ScheduledReport::where('send_date', '<=', date('Y-m-d'))
|
||||||
|
->with('user', 'account.company')
|
||||||
|
->get();
|
||||||
$this->info(count($scheduledReports) . ' scheduled reports');
|
$this->info(count($scheduledReports) . ' scheduled reports');
|
||||||
|
|
||||||
foreach ($scheduledReports as $scheduledReport) {
|
foreach ($scheduledReports as $scheduledReport) {
|
||||||
|
$user = $scheduledReport->user;
|
||||||
|
$account = $scheduledReport->account;
|
||||||
|
|
||||||
|
if (! $account->hasFeature(FEATURE_REPORTS)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$config = (array) json_decode($scheduledReport->config);
|
$config = (array) json_decode($scheduledReport->config);
|
||||||
$reportType = $config['report_type'];
|
$reportType = $config['report_type'];
|
||||||
|
|
||||||
|
@ -1917,6 +1917,7 @@ $LANG = array(
|
|||||||
'enterprise_upgrade_feature1' => 'Set permissions for multiple-users',
|
'enterprise_upgrade_feature1' => 'Set permissions for multiple-users',
|
||||||
'enterprise_upgrade_feature2' => 'Attach 3rd party files to invoices & expenses',
|
'enterprise_upgrade_feature2' => 'Attach 3rd party files to invoices & expenses',
|
||||||
'much_more' => 'Much More!',
|
'much_more' => 'Much More!',
|
||||||
|
'all_pro_fetaures' => 'Plus all pro features!',
|
||||||
|
|
||||||
'currency_symbol' => 'Symbol',
|
'currency_symbol' => 'Symbol',
|
||||||
'currency_code' => 'Code',
|
'currency_code' => 'Code',
|
||||||
|
@ -53,7 +53,7 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li>{{ trans('texts.enterprise_upgrade_feature1') }}</li>
|
<li>{{ trans('texts.enterprise_upgrade_feature1') }}</li>
|
||||||
<li>{{ trans('texts.enterprise_upgrade_feature2') }}</li>
|
<li>{{ trans('texts.enterprise_upgrade_feature2') }}</li>
|
||||||
<li>{{ trans('texts.much_more') }}</li>
|
<li>{{ trans('texts.all_pro_fetaures') }}</li>
|
||||||
</ul>
|
</ul>
|
||||||
{!! Button::success(trans('texts.go_enterprise'))->withAttributes(['onclick' => 'submitUpgradeForm("enterprise")'])->large() !!}
|
{!! Button::success(trans('texts.go_enterprise'))->withAttributes(['onclick' => 'submitUpgradeForm("enterprise")'])->large() !!}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user