Skip to content

Commit

Permalink
Removed extra brace in assets for components
Browse files Browse the repository at this point in the history
Signed-off-by: snipe <snipe@snipe.net>
  • Loading branch information
snipe committed Oct 6, 2021
1 parent 17d4e25 commit c06a93e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Http/Transformers/AssetsTransformer.php
Expand Up @@ -142,15 +142,15 @@ public function transformAsset(Asset $asset)

foreach ($asset->components as $component) {
$array['components'][] = [
[

'id' => $component->id,
'pivot_id' => $component->pivot->id,
'name' => $component->name,
'qty' => $component->pivot->assigned_qty,
'price_cost' => $component->purchase_cost,
'purchase_total' => $component->purchase_cost * $component->pivot->assigned_qty,
'checkout_date' => Helper::getFormattedDateObject($component->pivot->created_at, 'datetime') ,
]

];
}
}
Expand Down

0 comments on commit c06a93e

Please sign in to comment.