Api endpoint added money format.

This commit is contained in:
Cüneyt Şentürk
2021-06-22 17:44:38 +03:00
parent e22c6f5e1f
commit f1e5ec5229
9 changed files with 12 additions and 0 deletions

View File

@ -25,7 +25,9 @@ class Item extends TransformerAbstract
'name' => $model->name,
'description' => $model->description,
'sale_price' => $model->sale_price,
'sale_price_format' => money($model->sale_price, setting('default.currency'), true)->format(),
'purchase_price' => $model->purchase_price,
'purchase_price_format' => money($model->purchase_price, setting('default.currency'), true)->format(),
'category_id' => $model->category_id,
'tax_ids' => $model->tax_ids,
'picture' => $model->picture,