Make sure transformers match API definition.

This commit is contained in:
James Cole
2018-12-19 19:02:16 +01:00
parent 03b4a50317
commit 446ff81335
18 changed files with 484 additions and 220 deletions

View File

@@ -747,10 +747,11 @@ class BudgetRepository implements BudgetRepositoryInterface
/** @var TransactionCurrency $currency */
$currency = $currencies[$code];
$return[] = [
'currency_code' => $code,
'currency_symbol' => $currency->symbol,
'currency_dp' => $currency->decimal_places,
'amount' => round($spent, $currency->decimal_places),
'currency_id' => $currency->id,
'currency_code' => $code,
'currency_symbol' => $currency->symbol,
'currency_decimal_places' => $currency->decimal_places,
'amount' => round($spent, $currency->decimal_places),
];
}