mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-04 12:29:47 +00:00
Add object group to various items.
This commit is contained in:
@@ -108,7 +108,9 @@ class AccountTransformer extends AbstractTransformer
|
||||
'type' => strtolower($accountType),
|
||||
'account_role' => $accountRole,
|
||||
|
||||
// TODO object group
|
||||
'object_group_id' => $account->meta['object_group_id'],
|
||||
'object_group_order' => $account->meta['object_group_order'],
|
||||
'object_group_title' => $account->meta['object_group_title'],
|
||||
|
||||
// currency information, structured for 6.3.0.
|
||||
'object_has_currency_setting' => $hasCurrencySettings,
|
||||
|
||||
@@ -55,7 +55,6 @@ class AttachmentTransformer extends AbstractTransformer
|
||||
'updated_at' => $attachment->updated_at->toAtomString(),
|
||||
'attachable_id' => (string) $attachment->attachable_id,
|
||||
'attachable_type' => str_replace('FireflyIII\Models\\', '', $attachment->attachable_type),
|
||||
'md5' => $attachment->md5,
|
||||
'hash' => $attachment->md5,
|
||||
'filename' => $attachment->filename,
|
||||
'download_url' => route('api.v1.attachments.download', [$attachment->id]),
|
||||
|
||||
@@ -93,7 +93,6 @@ class BillTransformer extends AbstractTransformer
|
||||
'object_group_order' => $bill->meta['object_group_order'],
|
||||
'object_group_title' => $bill->meta['object_group_title'],
|
||||
|
||||
|
||||
'paid_dates' => $bill->meta['paid_dates'],
|
||||
'pay_dates' => $bill->meta['pay_dates'],
|
||||
'next_expected_match' => $bill->meta['nem']?->toAtomString(),
|
||||
|
||||
@@ -76,6 +76,8 @@ class BudgetLimitTransformer extends AbstractTransformer
|
||||
if ($this->convertToPrimary && $currency->id !== $this->primaryCurrency->id) {
|
||||
$pcAmount = Steam::bcround($budgetLimit->native_amount, $this->primaryCurrency->decimal_places);
|
||||
}
|
||||
// TODO fix currency collection.
|
||||
// TODO fix documentation.a
|
||||
|
||||
return [
|
||||
'id' => (string)$budgetLimit->id,
|
||||
|
||||
@@ -86,8 +86,9 @@ class BudgetTransformer extends AbstractTransformer
|
||||
'notes' => $budget->meta['notes'],
|
||||
'auto_budget_type' => $abType,
|
||||
'auto_budget_period' => $abPeriod,
|
||||
|
||||
// TODO object group
|
||||
'object_group_id' => $budget->meta['object_group_id'],
|
||||
'object_group_order' => $budget->meta['object_group_order'],
|
||||
'object_group_title' => $budget->meta['object_group_title'],
|
||||
|
||||
// new currency settings.
|
||||
'object_has_currency_setting' => null !== $budget->meta['currency'],
|
||||
|
||||
Reference in New Issue
Block a user