Merge pull request #2996 from vitormattos/feature/add-description-when-fetch-document-item

Add description when fetch document item
This commit is contained in:
Cüneyt Şentürk 2023-07-03 09:17:15 +03:00 committed by GitHub
commit a2777077ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,6 +22,7 @@ class DocumentItem extends JsonResource
'document_id' => $this->document_id, 'document_id' => $this->document_id,
'item_id' => $this->item_id, 'item_id' => $this->item_id,
'name' => $this->name, 'name' => $this->name,
'description' => $this->description,
'price' => $this->price, 'price' => $this->price,
'price_formatted' => money($this->price, $this->document->currency_code, true)->format(), 'price_formatted' => money($this->price, $this->document->currency_code, true)->format(),
'total' => $this->total, 'total' => $this->total,