diff --git a/src/Picqer/Financials/Exact/Model.php b/src/Picqer/Financials/Exact/Model.php index 2a913f67..8f52f226 100644 --- a/src/Picqer/Financials/Exact/Model.php +++ b/src/Picqer/Financials/Exact/Model.php @@ -241,6 +241,10 @@ public function json($options = 0, $withDeferred = false) $attributes[$attribute] = []; foreach ($collection as $value) { + if(!empty($value->deferred)) { + $value->attributes = array_merge($value->attributes, $value->deferred); + } + if (is_a($value, 'Picqer\Financials\Exact\Model')) { array_push($attributes[$attribute], $value->attributes); } else {