Make some charts currency aware for #740

This commit is contained in:
James Cole
2018-08-27 18:59:30 +02:00
parent 4fc13037d2
commit 0d82589916
21 changed files with 531 additions and 137 deletions

View File

@@ -75,6 +75,8 @@ class BudgetController extends Controller
/**
* Shows overview of a single budget.
*
* TODO this chart is not multi-currency aware.
*
* @param Budget $budget
*
* @return JsonResponse
@@ -124,6 +126,8 @@ class BudgetController extends Controller
/**
* Shows the amount left in a specific budget limit.
*
* TODO this chart is not multi-currency aware.
*
* @param Budget $budget
* @param BudgetLimit $budgetLimit
*
@@ -171,6 +175,8 @@ class BudgetController extends Controller
/**
* Shows how much is spent per asset account.
*
* TODO this chart is not multi-currency aware.
*
* @param Budget $budget
* @param BudgetLimit|null $budgetLimit
*
@@ -221,6 +227,8 @@ class BudgetController extends Controller
/**
* Shows how much is spent per category.
*
* TODO this chart is not multi-currency aware.
*
* @param Budget $budget
* @param BudgetLimit|null $budgetLimit
*
@@ -272,6 +280,8 @@ class BudgetController extends Controller
/**
* Shows how much is spent per expense account.
*
* TODO this chart is not multi-currency aware.
*
* @param Budget $budget
* @param BudgetLimit|null $budgetLimit
*
@@ -323,6 +333,8 @@ class BudgetController extends Controller
/**
* Shows a budget list with spent/left/overspent.
*
* TODO this chart is not multi-currency aware.
*
* @return JsonResponse
*
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
@@ -378,6 +390,8 @@ class BudgetController extends Controller
/**
* Shows a budget overview chart (spent and budgeted).
*
* TODO this chart is not multi-currency aware.
*
* @param Budget $budget
* @param Carbon $start
* @param Carbon $end
@@ -424,6 +438,8 @@ class BudgetController extends Controller
/**
* Shows a chart for transactions without a budget.
*
* TODO this chart is not multi-currency aware.
*
* @param Collection $accounts
* @param Carbon $start
* @param Carbon $end