mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 17:44:32 -04:00
Working on scheduled reports
This commit is contained in:
parent
92936246aa
commit
415bab8cf4
@ -78,7 +78,7 @@ class RunReport extends Job
|
|||||||
'endDate' => $endDate,
|
'endDate' => $endDate,
|
||||||
'report' => $report,
|
'report' => $report,
|
||||||
];
|
];
|
||||||
|
|
||||||
$report->exportParams = array_merge($params, $report->results());
|
$report->exportParams = array_merge($params, $report->results());
|
||||||
|
|
||||||
return $report;
|
return $report;
|
||||||
|
@ -436,6 +436,7 @@
|
|||||||
|
|
||||||
$('#format').change(function() {
|
$('#format').change(function() {
|
||||||
var val = $('#format').val();
|
var val = $('#format').val();
|
||||||
|
$('#scheduleButton').prop('disabled', val == 'zip');
|
||||||
if (isStorageSupported() && val != 'zip') {
|
if (isStorageSupported() && val != 'zip') {
|
||||||
localStorage.setItem('last:report_format', val);
|
localStorage.setItem('last:report_format', val);
|
||||||
}
|
}
|
||||||
@ -446,6 +447,7 @@
|
|||||||
setFiltersShown();
|
setFiltersShown();
|
||||||
setDocumentZipShown();
|
setDocumentZipShown();
|
||||||
setScheduleButton();
|
setScheduleButton();
|
||||||
|
$('#scheduleButton').prop('disabled', $('#format').val() == 'zip');
|
||||||
if (isStorageSupported()) {
|
if (isStorageSupported()) {
|
||||||
localStorage.setItem('last:report_type', val);
|
localStorage.setItem('last:report_type', val);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user