Fix multi year report. [skip ci]

This commit is contained in:
James Cole 2016-11-06 15:09:44 +01:00
parent 43600fe6cb
commit a7d35cd1c3
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
2 changed files with 8 additions and 5 deletions

View File

@ -1,11 +1,11 @@
/* globals budgetMultiUrl, accountIds */ /* globals budgetMultiUri, accountIds */
$(function () { $(function () {
"use strict"; "use strict";
drawChart(); drawChart();
loadAjaxPartial('budgetMultiYear', budgetMultiUrl); loadAjaxPartial('budgetMultiYear', budgetMultiUri);
}); });
function drawChart() { function drawChart() {

View File

@ -118,9 +118,12 @@
var accountIds = '{{ accountIds }}'; var accountIds = '{{ accountIds }}';
<!-- some URL's --> <!-- some URL's -->
var accountReportUrl = '{{ route('reports.data.accountReport', [start.format('Ymd'), end.format('Ymd'), accountIds]) }}'; var accountReportUri = '{{ route('reports.data.accountReport', [start.format('Ymd'), end.format('Ymd'), accountIds]) }}';
var inOutReportUrl = '{{ route('reports.data.inOutReport', [start.format('Ymd'), end.format('Ymd'), accountIds]) }}'; var incomeReportUri = '{{ route('reports.data.incomeReport', [start.format('Ymd'), end.format('Ymd'), accountIds]) }}';
var budgetMultiUrl = '{{ route('reports.data.budgetMultiYear', [start.format('Ymd'), end.format('Ymd'), accountIds]) }}'; var expenseReportUri = '{{ route('reports.data.expenseReport', [start.format('Ymd'), end.format('Ymd'), accountIds]) }}';
var incExpReportUri = '{{ route('reports.data.incExpReport', [start.format('Ymd'), end.format('Ymd'), accountIds]) }}';
var budgetMultiUri = '{{ route('reports.data.budgetMultiYear', [start.format('Ymd'), end.format('Ymd'), accountIds]) }}';
</script> </script>
<script type="text/javascript" src="js/ff/reports/default/all.js"></script> <script type="text/javascript" src="js/ff/reports/default/all.js"></script>