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

@@ -20,7 +20,9 @@ class Account extends TransformerAbstract
'number' => $model->number,
'currency_code' => $model->currency_code,
'opening_balance' => $model->opening_balance,
'opening_balance_format' => money($model->opening_balance, $model->currency_code, true)->format(),
'current_balance' => $model->balance,
'current_balance_format' => money($model->balance, $model->currency_code, true)->format(),
'bank_name' => $model->bank_name,
'bank_phone' => $model->bank_phone,
'bank_address' => $model->bank_address,