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 () {
"use strict";
drawChart();
loadAjaxPartial('budgetMultiYear', budgetMultiUrl);
loadAjaxPartial('budgetMultiYear', budgetMultiUri);
});
function drawChart() {

View File

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