Skip to content

Commit

Permalink
Add description when fetch document item
Browse files Browse the repository at this point in the history
The endpoint GET /api/documents/{id} return a list of items but the item
haven't the description. With this update will return the description of
a item.

Signed-off-by: Vitor Mattos <vitor@php.rio>
  • Loading branch information
vitormattos committed Jul 3, 2023
1 parent f2fd540 commit 8a46abc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Http/Resources/Document/DocumentItem.php
Expand Up @@ -22,6 +22,7 @@ public function toArray($request)
'document_id' => $this->document_id,
'item_id' => $this->item_id,
'name' => $this->name,
'description' => $this->description,
'price' => $this->price,
'price_formatted' => money($this->price, $this->document->currency_code, true)->format(),
'total' => $this->total,
Expand Down

0 comments on commit 8a46abc

Please sign in to comment.