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

@ -28,6 +28,7 @@ class Transaction extends TransformerAbstract
'account_id' => $model->account_id,
'paid_at' => $model->paid_at->toIso8601String(),
'amount' => $model->amount,
'amount_format' => money($model->amount, $model->currency_code, true)->format(),
'currency_code' => $model->currency_code,
'currency_rate' => $model->currency_rate,
'document_id' => $model->document_id,