Add missing field.

This commit is contained in:
James Cole
2025-08-03 10:24:49 +02:00
parent d4e14dd262
commit 56f1eb03e0
2 changed files with 2 additions and 4 deletions

View File

@@ -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,

View File

@@ -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',