mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Make report budget charts multi-currency
This commit is contained in:
3
public/v1/js/ff/reports/all.js
vendored
3
public/v1/js/ff/reports/all.js
vendored
@@ -147,9 +147,10 @@ function clickBudgetChart(e) {
|
||||
"use strict";
|
||||
var link = $(e.target);
|
||||
var budgetId = link.data('budget');
|
||||
var currencyId = parseInt(link.data('currency'));
|
||||
$('#budget_help').remove();
|
||||
|
||||
var URL = 'chart/budget/period/' + budgetId + '/' + accountIds + '/' + startDate + '/' + endDate;
|
||||
var URL = 'chart/budget/period/' + budgetId + '/' + currencyId + '/' + accountIds + '/' + startDate + '/' + endDate;
|
||||
var container = 'budget_chart';
|
||||
columnChart(URL, container);
|
||||
return false;
|
||||
|
@@ -18,13 +18,12 @@
|
||||
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/** global: budgetPeriodReportUri, categoryExpenseUri, categoryIncomeUri, netWorthUri, opChartUri, sumChartUri */
|
||||
/** global: budgetPeriodReportUri, categoryExpenseUri, categoryIncomeUri, netWorthUri, opChartUri */
|
||||
|
||||
$(function () {
|
||||
"use strict";
|
||||
lineChart(netWorthUri, 'net-worth');
|
||||
columnChartCustomColours(opChartUri, 'income-expenses-chart');
|
||||
columnChartCustomColours(sumChartUri, 'income-expenses-sum-chart');
|
||||
|
||||
loadAjaxPartial('budgetPeriodReport', budgetPeriodReportUri);
|
||||
loadAjaxPartial('categoryExpense', categoryExpenseUri);
|
||||
|
3
public/v1/js/ff/reports/default/year.js
vendored
3
public/v1/js/ff/reports/default/year.js
vendored
@@ -18,13 +18,12 @@
|
||||
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/** global: budgetPeriodReportUri, categoryExpenseUri, categoryIncomeUri, netWorthUri, opChartUri, sumChartUri */
|
||||
/** global: budgetPeriodReportUri, categoryExpenseUri, categoryIncomeUri, netWorthUri, opChartUri */
|
||||
|
||||
$(function () {
|
||||
"use strict";
|
||||
lineChart(netWorthUri, 'net-worth');
|
||||
columnChartCustomColours(opChartUri, 'income-expenses-chart');
|
||||
columnChartCustomColours(sumChartUri, 'income-expenses-sum-chart');
|
||||
|
||||
loadAjaxPartial('budgetPeriodReport', budgetPeriodReportUri);
|
||||
loadAjaxPartial('categoryExpense', categoryExpenseUri);
|
||||
|
Reference in New Issue
Block a user