mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 09:22:33 +00:00
Add missing field.
This commit is contained in:
@@ -64,6 +64,7 @@ class AvailableBudgetTransformer extends AbstractTransformer
|
|||||||
'updated_at' => $availableBudget->updated_at->toAtomString(),
|
'updated_at' => $availableBudget->updated_at->toAtomString(),
|
||||||
|
|
||||||
// currencies according to 6.3.0
|
// currencies according to 6.3.0
|
||||||
|
'object_has_currency_setting' => true,
|
||||||
'currency_id' => (string) $currency->id,
|
'currency_id' => (string) $currency->id,
|
||||||
'currency_code' => $currency->code,
|
'currency_code' => $currency->code,
|
||||||
'currency_symbol' => $currency->symbol,
|
'currency_symbol' => $currency->symbol,
|
||||||
|
@@ -58,6 +58,7 @@ class BillTransformer extends AbstractTransformer
|
|||||||
'name' => $bill->name,
|
'name' => $bill->name,
|
||||||
|
|
||||||
// currencies according to 6.3.0
|
// currencies according to 6.3.0
|
||||||
|
'object_has_currency_setting' => true,
|
||||||
'currency_id' => (string) $bill->transaction_currency_id,
|
'currency_id' => (string) $bill->transaction_currency_id,
|
||||||
'currency_code' => $currency->code,
|
'currency_code' => $currency->code,
|
||||||
'currency_symbol' => $currency->symbol,
|
'currency_symbol' => $currency->symbol,
|
||||||
@@ -96,10 +97,6 @@ class BillTransformer extends AbstractTransformer
|
|||||||
'next_expected_match' => $bill->meta['nem']?->toAtomString(),
|
'next_expected_match' => $bill->meta['nem']?->toAtomString(),
|
||||||
'next_expected_match_diff' => $bill->meta['nem_diff'],
|
'next_expected_match_diff' => $bill->meta['nem_diff'],
|
||||||
|
|
||||||
// these fields need work:
|
|
||||||
// 'next_expected_match' => $nem,
|
|
||||||
// 'next_expected_match_diff' => $nemDiff,
|
|
||||||
// 'pay_dates' => $payDatesFormatted,
|
|
||||||
'links' => [
|
'links' => [
|
||||||
[
|
[
|
||||||
'rel' => 'self',
|
'rel' => 'self',
|
||||||
|
Reference in New Issue
Block a user