API: add missing fields

This commit is contained in:
James Cole 2021-09-19 08:28:18 +02:00
parent eae0cc17a4
commit 18fad5f115
No known key found for this signature in database
GPG Key ID: BDE6667570EADBD5
2 changed files with 2 additions and 0 deletions

View File

@ -93,6 +93,7 @@ class BudgetTransformer extends AbstractTransformer
'updated_at' => $budget->updated_at->toAtomString(),
'active' => $budget->active,
'name' => $budget->name,
'order' => $budget->order,
'auto_budget_type' => $abType,
'auto_budget_period' => $abPeriod,
'auto_budget_currency_id' => $abCurrencyId,

View File

@ -64,6 +64,7 @@ class RuleTransformer extends AbstractTransformer
'created_at' => $rule->created_at->toAtomString(),
'updated_at' => $rule->updated_at->toAtomString(),
'rule_group_id' => (string)$rule->rule_group_id,
'rule_group_title' => (string)$rule->ruleGroup->title,
'title' => $rule->title,
'description' => $rule->description,
'order' => (int)$rule->order,